From WikiTemp, the GBAtemp wiki
m
(Implementing Preload)
Line 1: Line 1:
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
{|style="background:#ECFCF4;width:100%;border:1px gray solid;"
 
{|style="background:#ECFCF4;width:100%;border:1px gray solid;"
!style="font-size:20px;background:#DBEBE3;height:40px;"|&nbsp;Template Documentation (<span class="plainlinks">[http://wiki.gbatemp.net/w/index.php?title={{FULLPAGENAME}}/doc&action=edit edit]</span>)
+
!style="font-size:20px;background:#DBEBE3;height:40px;"|&nbsp;Template Documentation <span class="plainlinks">({{#ifexist:{{FULLPAGENAME}}/doc|[http://wiki.gbatemp.net/w/index.php?title={{FULLPAGENAME}}/doc&action=edit edit]|[http://wiki.gbatemp.net/w/index.php?title={{FULLPAGENAME}}/doc&action=edit&preload=Template:NewDoc create]}})</span>
 
|-
 
|-
 
|<br />{{#ifexist:{{FULLPAGENAME}}/doc|{{:{{FULLPAGENAME}}/doc}}| '''No documentation available.'''}}
 
|<br />{{#ifexist:{{FULLPAGENAME}}/doc|{{:{{FULLPAGENAME}}/doc}}| '''No documentation available.'''}}

Revision as of 11:10, 5 December 2010

 Template Documentation (edit)

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 page was Transcluded from the /doc subpage