Template:T: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
No edit summary
m (Reverted edits by JadenStar10 (talk) to last revision by Bobogoobo)
Tag: Rollback
 
Line 1: Line 1:
<includeonly><!--t-->{{{1|pqr}}}</includeonly><noinclude><nowiki>{{{1|pqr}}}</nowiki>
<includeonly><code><nowiki>{{</nowiki>[[Template:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|{{!}}{{{2}}}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}{{#if:{{{4|}}}|{{!}}{{{4}}}}}{{#if:{{{5|}}}|{{!}}{{{5}}}}}<nowiki>}}</nowiki></code></includeonly><noinclude>{{documentation}}</noinclude>
 
== Examples ==
{| class="wikitable"
! Code
! Result
|- style="vertical-align:top;"
| <pre>
{{T}}
</pre>
||{{T}}
|- style="vertical-align:top;"
| <pre>
{{T|}}
</pre>
||{{T|}}
|- style="vertical-align:top;"
| <pre>
{{T|abc}}
</pre>
||{{T|abc}}
|- style="vertical-align:top;"
| <pre>
{{T|abc|def}}
</pre>
||{{T|abc|def}}
|- style="vertical-align:top;"
| <pre>
{{T|1=abc|1=def}}
</pre>
||{{T|1=abc|1=def}}
|- style="vertical-align:top;"
| <pre>
{{T|abc|1=def}}
</pre>
||{{T|abc|1=def}}
|- style="vertical-align:top;"
| <pre>
{{T|1=abc|def}}
</pre>
||{{T|1=abc|def}}
|- style="vertical-align:top;"
| <pre>
{{T|{{T}}}}
</pre>
||{{T|{{T}}}}
|- style="vertical-align:top;"
| <pre>
{{T|{{T|{{T}}}}}}
</pre>
||{{T|{{T|{{T}}}}}}
|- style="vertical-align:top;"
| <pre>
{{T|{{T|{{T|{{T}}}}}}}}
</pre>
||{{T|{{T|{{T|{{T}}}}}}}}
|- style="vertical-align:top;"
| <pre>
{{T|a{{t|b}}}}
</pre>
||{{T|a{{t|b}}}}
|- style="vertical-align:top;"
| <pre>
{{T|{{T|a<nowiki>=</nowiki>b}}}}
</pre>
||{{T|{{T|a=b}}}}
|- style="vertical-align:top;"
| <pre>
{{T|<nowiki>a=b</nowiki>}}
</pre>
||{{T|a=b}}
|- style="vertical-align:top;"
| <pre>
{{T|1<nowiki>=a=b</nowiki>}}
</pre>
||{{T|1=a=b}}
|}
[[Category:Utility templates|T]]
</noinclude>

Latest revision as of 08:05, 9 July 2021

Documentation [edit]

This template is used to link to a template while displaying the wikitext syntax.

Parameters

  • First unnamed parameter: the template name. As with links, the first character is not case sensitive, and will be displayed as specified.
  • Second through fifth unnamed parameters: additional parameter values to display. To display a named parameter, you must either use {{=}} or "name" the number of the unnamed parameter you are using.

Examples

  • {{t|gov}} produces: {{gov}}
  • {{t|CN|Lord of Darkness}} produces: {{CN|Lord of Darkness}}
  • {{t|gamepage|game{{=}}NationStates}} produces: {{gamepage|game=NationStates}}
  • {{t|gamepage|2=game=Cyber Nations}} produces: {{gamepage|game=Cyber Nations}}

The above documentation is transcluded from Template:T/doc.