From WikiTemp, the GBAtemp wiki
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOEDITSECTION__
+
{|style="background:#ECFCF4;width:100%;border:1px gray solid;"
{|style="background:#ECFCF4;width:100%;border:1px gray solid;" class="collapsible"
+
!style="font-size:20px;background:#DBEBE3;height:40px;padding-left:5px;text-align:left;"|&uarr; {{NAMESPACE}} Documentation &darr; <span style="float:right;font-size:12px;">&#91;{{#ifexist:{{{1|{{FULLPAGENAME}}/doc}}}|[{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit}} <span title="Edit Documentation">Edit</span>]|[{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:NewDoc&summary=Added%20Documentation}} <span title="Add New Documentation">Create</span>]}} &bull; [{{fullurl:{{FULLPAGENAME}}|action=purge}} <span title="Purge Documentation">Reload</span>]&#93;</span>
!style="font-size:20px;background:#DBEBE3;height:40px;padding-left:5px;"|Template Documentation <span class="plainlinks">({{#ifexist:{{{1|{{FULLPAGENAMEE}}/doc}}}|[http://wiki.gbatemp.net/w/index.php?title={{{1|{{FULLPAGENAMEE}}/doc}}}&action=edit Edit]|[http://wiki.gbatemp.net/w/index.php?title={{FULLPAGENAMEE}}/doc&action=edit&preload=Template:NewDoc&summary=Added%20Documentation Add]}})</span>
+
 
|-
 
|-
|style="padding-left:5px;"|<br />{{#ifexist:{{{1|{{FULLPAGENAMEE}}/doc}}}|{{:{{{1|{{FULLPAGENAMEE}}/doc}}}}}| '''No documentation available.<br /><span class="plainlinks">[http://wiki.gbatemp.net/w/index.php?title={{FULLPAGENAMEE}}/doc&action=edit&preload=Template:NewDoc Add new documentation]</span>.'''}}
+
|style="padding-left:5px;"|<br />{{#ifexist:{{{1|{{FULLPAGENAMEE}}/doc}}}|
 +
{{:{{{1|{{FULLPAGENAMEE}}/doc}}}}}
 +
| '''No documentation available.<br /><span class="plainlinks">[{{fullurl:{{{1|{{FULLPAGENAMEE}}/doc}}}|action=edit&preload=Template:NewDoc&summary=Added%20Documentation}} <span title="Add New Documentation">Add new documentation</span>]</span>.'''}}
 
<br />
 
<br />
 
|-
 
|-
|style="background:#DBEBE3;border:2px solid #DBEBE3"|<span style="float:right">{{#ifexist:{{{1|{{FULLPAGENAMEE}}/doc}}}|The above documentation was [[Help:Transclusion and Substitution#Transclusion|Transcluded]] from {{#ifeq:{{{1|{{FULLPAGENAMEE}}/doc}}}|{{FULLPAGENAMEE}}/doc|the [[{{FULLPAGENAME}}/doc|/doc subpage]]|[[{{{1}}}]]}}|The Template documentation will automatically appear in this box after the documentation page was created.}}</span>
+
|style="background:#DBEBE3;border:2px solid #DBEBE3"|<span style="float:right">{{#ifexist:{{{1|{{FULLPAGENAME}}/doc}}}|The above documentation was [[Help:Transclusion and Substitution#Transclusion|Transcluded]] from {{#ifeq:{{{1|{{FULLPAGENAME}}/doc}}}|{{FULLPAGENAME}}/doc|the [[{{FULLPAGENAME}}/doc|/doc subpage]]|[[{{{1}}}]]}}|The {{NAMESPACE}} documentation will automatically appear in this box after the documentation page is created.}}</span>
|}
+
|}__NOEDITSECTION__
 
<noinclude>[[Category:Documentation Templates|{{PAGENAME}}]]</noinclude>
 
<noinclude>[[Category:Documentation Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 13:27, 7 February 2015

↑ Template Documentation ↓ [EditReload]

This template has to be placed on all template pages, in between <noinclude></noinclude> tags.

eg:

<noinclude>{{documentation}}</noinclude>

For troublesome pages (pages where the doc exists, but it doesn't show after Purging the page), add an extra parameter with the correct doc page:

<noinclude>{{documentation|Template:Whatever/doc}}</noinclude>

This can also be used to put the doc on a different page.

Parameters

1: Alternate Documentation page (if the documentation is not on /doc)


The above documentation was Transcluded from the /doc subpage