Difference between revisions of "Template:Tl"
From Paragon Wiki Archive
Zombie Man (Talk | contribs) m (Moved within heirarchy of categories) |
|||
Line 1: | Line 1: | ||
− | {{[[Template:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|{{!}}{{{2}}} }}{{#if:{{{3|}}}|{{!}}{{{3}}} }}{{#if:{{{4|}}}|{{!}}{{{4}}} }}{{#if:{{{5|}}}|{{!}}{{{5}}} }}{{#if:{{{6|}}}|{{!}}{{{6}}} }}{{#if:{{{7|}}}|{{!}}{{{7}}} }}{{#if:{{{8|}}}|{{!}}{{{8}}} }}{{#if:{{{9|}}}|{{!}}{{{9}}} }}}}<noinclude> | + | {{[[{{{ns|Template:}}}{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|{{!}}{{{2}}} }}{{#if:{{{3|}}}|{{!}}{{{3}}} }}{{#if:{{{4|}}}|{{!}}{{{4}}} }}{{#if:{{{5|}}}|{{!}}{{{5}}} }}{{#if:{{{6|}}}|{{!}}{{{6}}} }}{{#if:{{{7|}}}|{{!}}{{{7}}} }}{{#if:{{{8|}}}|{{!}}{{{8}}} }}{{#if:{{{9|}}}|{{!}}{{{9}}} }}}}<noinclude> |
<!-- | <!-- | ||
The #if statements are used to prevent the extra pipe "|" from displaying if the parameter is not specified. | The #if statements are used to prevent the extra pipe "|" from displaying if the parameter is not specified. | ||
Line 10: | Line 10: | ||
;NOTE: The equals sign ("=") cannot be included directly because templates use equal signs to delimit named parameters. Replace any equal signs with their HTML entity representation: '''&#61;'''. | ;NOTE: The equals sign ("=") cannot be included directly because templates use equal signs to delimit named parameters. Replace any equal signs with their HTML entity representation: '''&#61;'''. | ||
+ | |||
+ | Optionally, the parameter ''ns='' can be specified to indicate which namespace the template is in. By default this is ''ns=Template:''. Note that the colon must be included. If your template is in the main namespace, or if your template already has a namespace prefix, use ''ns=:''. | ||
== Usage == | == Usage == |
Revision as of 02:18, 29 June 2012
{{[[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 given.
- NOTE
- The equals sign ("=") cannot be included directly because templates use equal signs to delimit named parameters. Replace any equal signs with their HTML entity representation: =.
Optionally, the parameter ns= can be specified to indicate which namespace the template is in. By default this is ns=Template:. Note that the colon must be included. If your template is in the main namespace, or if your template already has a namespace prefix, use ns=:.
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}} |
{{tl|SlashCommand|command=bind|options=key commands}}
|
{{SlashCommand|command=bind|options=key commands}} |