Tremor Mod Wiki
(Replaced content with "{{#invoke: documentation | page }}")
(Undo revision 17063 by Suntearless (talk))
 
Line 1: Line 1:
  +
<onlyinclude><includeonly>{{-}}
{{#invoke: documentation | page }}
 
  +
<div style="margin: 0em auto 1em; background-color: #EAF4F9; border: 1px solid #AAAAAA; padding: 1em;">
  +
<div style="padding-bottom: 3px; border-bottom: 1px solid #AAAAAA; margin-bottom: 1ex;"><!--
  +
-->[[File:Template-info.png|50px]] <span style="font-weight: bold; font-size: 125%; margin-right:10px;">Documentation</span> {{#ifeq: {{SUBPAGENAME}} | doc |<!-- nothing -->|<!--
  +
-->{{#ifexist:{{FULLPAGENAME}}/doc|<span style="font-size:90%">''The documentation below is transcluded from [[{{FULLPAGENAME}}/doc]]. ({{fullurl|{{FULLPAGENAMEE}}/doc|action{{=}}edit|text=edit}} {{!}} {{fullurl|{{FULLPAGENAMEE}}/doc|action{{=}}history|text=history}})''</span>|<!-- nothing -->}} }}<!--
  +
<!--
  +
--><div style="float: right; margin-left: 5px">[{{fullurl|{{FULLPAGENAMEE}}|action{{=}}purge|text=purge}}]</div></div>
  +
{{#ifexist: {{FULLPAGENAME}}/doc|{{/doc}}|No documentation subpage exists yet for this template. [http://tremormod.gamepedia.com/index.php?title={{FULLPAGENAMEE}}/doc&action=edit&preload=Template:Documentation/preload Create one now].[[Category:Templates with no documentation]]}}
  +
<div style="margin: 15px 0 0 0">
  +
{{#ifeq: {{SUBPAGENAME}} | doc |<!--
  +
-->This is the documentation page, it should be transcluded into the main template page. See [[Template:Doc]] for more information. [[Category:Documentation templates|{{BASEPAGENAME}}]][[Category:Templates with bad documentation]]}}<!--
  +
--></div></div></includeonly></onlyinclude>
  +
== Description ==
  +
Use this template within template pages to transclude their documentation.
  +
  +
== Usage ==
  +
Place this at the end of the template code:
  +
* <code><nowiki><noinclude>{{doc}}</noinclude></nowiki></code>
  +
  +
[[Category:Template documentation‎|*]]

Latest revision as of 11:58, 18 June 2017

Description

Use this template within template pages to transclude their documentation.

Usage

Place this at the end of the template code:

  • <noinclude>{{doc}}</noinclude>