Difference between revisions of "Template:Tl"
From Paragon Wiki Archive
m (+notes) |
(putting in Category:Templates for now, to help people find it) |
||
Line 24: | Line 24: | ||
| <code><nowiki>{{tl|Userbox Server|Heroes|Freedom}}</nowiki></code> | | <code><nowiki>{{tl|Userbox Server|Heroes|Freedom}}</nowiki></code> | ||
| {{tl|Userbox Server|Heroes|Freedom}} | | {{tl|Userbox Server|Heroes|Freedom}} | ||
− | |}</noinclude> | + | |} |
+ | [[Category:Templates]]</noinclude> |
Revision as of 19:50, 9 May 2007
{{[[Template:{{{1}}}|{{{1}}}]]}}
Purpose
{{Tl}} is used to display a template name as a link. Tl stands for Template link.
Tl can currently handle 8 additional parameters that are simply displayed as shown. There are limits, you can't display and equals sign "=" normally because templates interpret equals signs as thingys that say it's a particular parameter rather than the first or second or third parameter.
note
The use of #if statements is the need for the extra pipe "|" displayed if the parameter is specified, otherwise it displays nothing.
Usage
{{subst:Tl|template name to display}} {{tl|template name to display}}
Example
Code | Result |
---|---|
{{subst:Tl|Center}}
|
{{Center}} |
{{tl|Userbox Server|Heroes|Freedom}}
|
{{Userbox Server|Heroes|Freedom}} |