Difference between revisions of "Template:T"

From EVE University Wiki
Jump to: navigation, search
(Fixing up template documentation system)
 
m
 
Line 1: Line 1:
<nowiki>{{</nowiki>{{#if:{{{prefix|}}}|{{{prefix}}}:}}[[Template:{{{1}}}|{{{1}}}]]<!--
+
<includeonly><nowiki>{{</nowiki>{{#if:{{{prefix|}}}|{{{prefix}}}:}}[[Template:{{{1}}}|{{{1}}}]]<!--
 
-->{{#if:{{{2|}}}|&#124;<span style="color:gray;">''&lt;{{{2}}}&gt;''</span>}}<!--
 
-->{{#if:{{{2|}}}|&#124;<span style="color:gray;">''&lt;{{{2}}}&gt;''</span>}}<!--
 
-->{{#if:{{{3|}}}|&#124;<span style="color:gray;">''&lt;{{{3}}}&gt;''</span>}}<!--
 
-->{{#if:{{{3|}}}|&#124;<span style="color:gray;">''&lt;{{{3}}}&gt;''</span>}}<!--
Line 20: Line 20:
 
-->{{#if:{{{20|}}}|&#124;<span style="color:gray;">''&lt;{{{20}}}&gt;''</span>}}<!--
 
-->{{#if:{{{20|}}}|&#124;<span style="color:gray;">''&lt;{{{20}}}&gt;''</span>}}<!--
 
-->{{#if:{{{21|}}}|&#124;<span style="color:gray;">''&lt;{{{21}}}&gt;''</span>}}<!--
 
-->{{#if:{{{21|}}}|&#124;<span style="color:gray;">''&lt;{{{21}}}&gt;''</span>}}<!--
--><nowiki>}}</nowiki><noinclude>
+
--><nowiki>}}</nowiki></includeonly><noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 19:10, 22 April 2017

Template documentation (for the above template, sometimes hidden or invisible)
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|skill}} gives...
{{skill}}
{{t|skill|Item1|Item2|Item3|Item4|Item5|...}} gives...
{{skill|<Item1>|<Item2>|<Item3>|<Item4>|<Item5>|<...>}}
{{t|skill|2=param1=Item1}} gives...
{{skill|<param1=Item1>}}
{{t|skill|prefix=subst}} gives...
{{subst:skill}}
See also
Visit Template:T/doc to edit this text! (How does this work?) (Refresh this text - why?)