Template:T/doc: Difference between revisions
Jump to navigation
Jump to search
create |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
==Parameters== | ==Parameters== | ||
*First unnamed parameter: the template name. As with | *First unnamed parameter: the template name. As with links, the first character is not case sensitive, and will be displayed as specified. | ||
*Second through fifth unnamed parameters: additional parameter values to display. To display a named parameter, you must "name" the number of the unnamed parameter you are using. | *Second through fifth unnamed parameters: additional parameter values to display. To display a named parameter, you must either use <code><nowiki>{{=}}</nowiki></code> or "name" the number of the unnamed parameter you are using. | ||
==Examples== | ==Examples== | ||
*<code><nowiki>{{t| | *<code><nowiki>{{t|gov}}</nowiki></code> produces: {{t|gov}} | ||
*<code><nowiki>{{t|CN|Lord of Darkness}}</nowiki></code> produces: {{t|CN|Lord of Darkness}} | *<code><nowiki>{{t|CN|Lord of Darkness}}</nowiki></code> produces: {{t|CN|Lord of Darkness}} | ||
*<code><nowiki>{{t|gamepage|game{{=}}NationStates}}</nowiki></code> produces: {{t|gamepage|game{{=}}NationStates}} | |||
*<code><nowiki>{{t|gamepage|2=game=Cyber Nations}}</nowiki></code> produces: {{t|gamepage|2=game=Cyber Nations}} | *<code><nowiki>{{t|gamepage|2=game=Cyber Nations}}</nowiki></code> produces: {{t|gamepage|2=game=Cyber Nations}} | ||
<includeonly>[[Category:Formatting templates]][[Category:Internal link templates]]</includeonly> | |||
Latest revision as of 01:37, 27 May 2025
This page contains the documentation for Template:T. It includes information about the template, such as usage and categories, and is not displayed when using the template itself.
This template is used to link to a template while displaying the wikitext syntax.
Parameters
- First unnamed parameter: the template name. As with links, the first character is not case sensitive, and will be displayed as specified.
- Second through fifth unnamed parameters: additional parameter values to display. To display a named parameter, you must either use
{{=}}or "name" the number of the unnamed parameter you are using.
Examples
{{t|gov}}produces:{{gov}}{{t|CN|Lord of Darkness}}produces:{{CN|Lord of Darkness}}{{t|gamepage|game{{=}}NationStates}}produces:{{gamepage|game=NationStates}}{{t|gamepage|2=game=Cyber Nations}}produces:{{gamepage|game=Cyber Nations}}