From WikiTemp, the GBAtemp wiki
m (Forgot some)
m
Line 6: Line 6:
 
<br />
 
<br />
 
|-
 
|-
|style="background:#DBEBE3;border:2px solid #DBEBE3"|<span style="float:right">The above documentation page was [[Help:Transclusion and Substitution#Transclusion|Transcluded]] from the [[{{FULLPAGENAME}}/doc|/doc subpage]]</span>
+
|style="background:#DBEBE3;border:2px solid #DBEBE3"|<span style="float:right">{{#ifexist:{{FULLPAGENAMEE}}/doc|The above documentation page was [[Help:Transclusion and Substitution#Transclusion|Transcluded]] from the [[{{FULLPAGENAME}}/doc|/doc subpage]]|Click create above to add documentation for this template.}}</span>
 
|}
 
|}
 
<noinclude>[[Category:Documentation Templates|{{PAGENAME}}]]</noinclude>
 
<noinclude>[[Category:Documentation Templates|{{PAGENAME}}]]</noinclude>

Revision as of 13:45, 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