Template:T: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Trimoon (talk | contribs)
copy-over from latest version on http://templates.wikia.com/wiki/Template:T
 
Donni Iris (talk | contribs)
m typo
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{{style|}}}|code|<code>}}<nowiki>{{</nowiki>{{#if:{{{prefix|}}}|{{{prefix}}}:}}[[Template:{{{1}}}|{{{1}}}]]<!--
<includeonly><!--
-->{{#ifeq:{{{style|}}}|code|<code>}}<nowiki>{{</nowiki>{{#if:{{{prefix|}}}|{{{prefix}}}:}}[[Template:{{{1}}}|{{{1}}}]]<!--
-->{{#if:{{{2|}}}|&#124;<span style="color:gray;">''{{{2}}}''</span>}}<!--
-->{{#if:{{{2|}}}|&#124;<span style="color:gray;">''{{{2}}}''</span>}}<!--
-->{{#if:{{{3|}}}|&#124;<span style="color:gray;">''{{{3}}}''</span>}}<!--
-->{{#if:{{{3|}}}|&#124;<span style="color:gray;">''{{{3}}}''</span>}}<!--
Line 20: Line 21:
-->{{#if:{{{20|}}}|&#124;<span style="color:gray;">''{{{20}}}''</span>}}<!--
-->{{#if:{{{20|}}}|&#124;<span style="color:gray;">''{{{20}}}''</span>}}<!--
-->{{#if:{{{21|}}}|&#124;<span style="color:gray;">''{{{21}}}''</span>}}<!--
-->{{#if:{{{21|}}}|&#124;<span style="color:gray;">''{{{21}}}''</span>}}<!--
--><nowiki>}}</nowiki>{{#ifeq:{{{style|}}}|code|</code>}}<noinclude>
--><nowiki>}}</nowiki>{{#ifeq:{{{style|}}}|code|</code>}}</includeonly><!--
{{documentation}}</noinclude>
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 03:21, 13 April 2026

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Description
A template link with a variable number of example parameters (0-20), which can be used to show example inputs.
Syntax
{{t|parameter1|parameter2|parameter3|parameter4|...|parameter20|prefix=...}}
Sample code
{{t|welcome}} gives...
{{welcome}}
{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}} gives...
{{welcome|Item1|Item2|Item3|Item4|Item5|...}}
{{t|welcome|2=param1=Item1}} gives...
{{welcome|param1=Item1}}
{{t|welcome|prefix=subst}} gives...
{{subst:welcome}}
{{t|welcome|style=code}} gives...
{{welcome}}
See also
The above text is transcluded from Template:T/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:T/doc. (View all subpages of this page.)