A Year's in review of the independent DanTDM Wiki Learn More >, Thank you!

Template:T: Difference between revisions

From DanTDM Wiki
Jump to navigation Jump to search
imported>Default
m 1 revision
 
imported>AStranger195
No edit summary
 
Line 1: Line 1:
<nowiki>{{</nowiki>[[Template:{{{1}}}|{{{1}}}]]{{t/piece|{{{2|---}}}}}{{t/piece|{{{3|---}}}}}{{t/piece|{{{4|---}}}}}{{t/piece|{{{5|---}}}}}{{t/piece|{{{6|---}}}}}{{t/piece|{{{7|---}}}}}{{t/piece|{{{8|---}}}}}{{t/piece|{{{9|---}}}}}{{t/piece|{{{10|---}}}}}{{t/piece|{{{11|---}}}}}{{t/piece|{{{12|---}}}}}{{t/piece|{{{13|---}}}}}{{t/piece|{{{14|---}}}}}{{t/piece|{{{15|---}}}}}{{t/piece|{{{16|---}}}}}{{t/piece|{{{17|---}}}}}{{t/piece|{{{18|---}}}}}{{t/piece|{{{19|---}}}}}{{t/piece|{{{20|---}}}}}{{t/piece|{{{21|---}}}}}<nowiki>}}</nowiki><noinclude>
{{#ifeq:{{{style|}}}|code|<code>}}<nowiki>{{</nowiki>{{#if:{{{prefix|}}}|{{{prefix}}}:}}[[Template:{{{1}}}|{{{1}}}]]<!--
-->{{#if:{{{2|}}}|&#124;<span style="color:gray;">''&lt;{{{2}}}&gt;''</span>}}<!--
-->{{#if:{{{3|}}}|&#124;<span style="color:gray;">''&lt;{{{3}}}&gt;''</span>}}<!--
-->{{#if:{{{4|}}}|&#124;<span style="color:gray;">''&lt;{{{4}}}&gt;''</span>}}<!--
-->{{#if:{{{5|}}}|&#124;<span style="color:gray;">''&lt;{{{5}}}&gt;''</span>}}<!--
-->{{#if:{{{6|}}}|&#124;<span style="color:gray;">''&lt;{{{6}}}&gt;''</span>}}<!--
-->{{#if:{{{7|}}}|&#124;<span style="color:gray;">''&lt;{{{7}}}&gt;''</span>}}<!--
-->{{#if:{{{8|}}}|&#124;<span style="color:gray;">''&lt;{{{8}}}&gt;''</span>}}<!--
-->{{#if:{{{9|}}}|&#124;<span style="color:gray;">''&lt;{{{9}}}&gt;''</span>}}<!--
-->{{#if:{{{10|}}}|&#124;<span style="color:gray;">''&lt;{{{10}}}&gt;''</span>}}<!--
-->{{#if:{{{11|}}}|&#124;<span style="color:gray;">''&lt;{{{11}}}&gt;''</span>}}<!--
-->{{#if:{{{12|}}}|&#124;<span style="color:gray;">''&lt;{{{12}}}&gt;''</span>}}<!--
-->{{#if:{{{13|}}}|&#124;<span style="color:gray;">''&lt;{{{13}}}&gt;''</span>}}<!--
-->{{#if:{{{14|}}}|&#124;<span style="color:gray;">''&lt;{{{14}}}&gt;''</span>}}<!--
-->{{#if:{{{15|}}}|&#124;<span style="color:gray;">''&lt;{{{15}}}&gt;''</span>}}<!--
-->{{#if:{{{16|}}}|&#124;<span style="color:gray;">''&lt;{{{16}}}&gt;''</span>}}<!--
-->{{#if:{{{17|}}}|&#124;<span style="color:gray;">''&lt;{{{17}}}&gt;''</span>}}<!--
-->{{#if:{{{18|}}}|&#124;<span style="color:gray;">''&lt;{{{18}}}&gt;''</span>}}<!--
-->{{#if:{{{19|}}}|&#124;<span style="color:gray;">''&lt;{{{19}}}&gt;''</span>}}<!--
-->{{#if:{{{20|}}}|&#124;<span style="color:gray;">''&lt;{{{20}}}&gt;''</span>}}<!--
-->{{#if:{{{21|}}}|&#124;<span style="color:gray;">''&lt;{{{21}}}&gt;''</span>}}<!--
--><nowiki>}}</nowiki>{{#ifeq:{{{style|}}}|code|</code>}}<noinclude>
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Latest revision as of 10:47, 1 August 2015

{{[[Template:{{{1}}}|{{{1}}}]]}}

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. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to Template:T/doc. (View all subpages of this page.)