Template:T/doc: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
(cats)
No edit summary
 
Line 4: Line 4:


==Parameters==
==Parameters==
*First unnamed parameter: the template name. As with page names, the first character is not case sensitive.
*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 {{t|{{=}}}} or "name" the number of the unnamed parameter you are using.


==Examples==
==Examples==
*<code><nowiki>{{t|!}}</nowiki></code> produces: {{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>
<includeonly>[[Category:Formatting templates]][[Category:Internal link templates]]</includeonly>

Latest revision as of 11:12, 14 July 2021

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}}