Difference between revisions of "Template:Template/doc"

From LCARS
Jump to: navigation, search
m (moved Template:/doc to Template:Template/doc: Sorry, got a kitten on me.)
m
 
Line 18: Line 18:
 
|-
 
|-
 
|}
 
|}
<noinclude>[[Category:Template documentation]]</noinclude>
+
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 04:11, 13 September 2012

Documentation

Purpose

To easily display the usage of a template, especially those using parameters.

{{Template|template name}}
displays a template call with no parameters, with the template name linked to the template
{{Template|template name|Parameter 1|...|Parameter 8}}
displays a template call with 1 to 8 unnamed parameters
{{Template|template name|1=Parameter 1|...|8=Parameter 8}}
displays a template call with 1 to 8 named or unnamed parameters
{{Template|template name|1=Parameter 1{{!}}Parameter2{{!}}...}}</nowiki>
displays a template call with an arbitrary number of parameters


Examples

Wikicode Display
{{Template|last update}}
{{last update}}
{{Template|Delete|reason|signature}}
{{Delete| reason | signature}}