Template:T: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 18: Line 18:
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Default Usage</span><br><span style="font-weight: normal;">To simply create a link to a template, pass the template name.</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Default Usage</span><br><span style="font-weight: normal;">To simply create a link to a template, pass the template name.</span>
|-
|-
! width=30%|You Type
! width=25%|You Type
!You Get
!You Get
|-
|-
Line 26: Line 26:
| style="background-color: white; text-align: center;" |{{t|TEMPLATENAME}}
| style="background-color: white; text-align: center;" |{{t|TEMPLATENAME}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Count Parameter</span><br><span style="font-weight: normal;">You can specify the number of columns in the output through use of the <code>count=</code> parameter.</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Unnamed Parameter</span><br><span style="font-weight: normal;">To demonstrate unnamed parameters, simply pass the input.</span>
|-
|-
! width=25%|You Type
! width=25%|You Type
Line 32: Line 32:
|-
|-
| style="text-align: left; background-color: white;" |<pre>
| style="text-align: left; background-color: white;" |<pre>
{{t
|TEMPLATENAME
|PARAMETER1
|PARAMETER2
|PARAMETER3
}}
</pre>
| style="background-color: white; text-align: center;" |{{t|TEMPLATENAME|PARAMETER1|PARAMETER2|PARAMETER3}}
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Named Parameter</span><br><span style="font-weight: normal;">Named parameters will not appear in the output if passed using <code>=</code>.</span>
|-
! colspan="2" style="text-align: center;" |You Type
|-
| colspan="2" style="text-align: center; background-color: white;" |<pre>
{{t|TEMPLATENAME|PARAMETER1|PARAMETER2}}
{{t|TEMPLATENAME|PARAMETER1|PARAMETER2}}
</pre>
</pre>
| style="background-color: white;" |{{t|TEMPLATENAME}}
|-
! colspan="2" style="text-align: center;" |You Get
|-
| colspan="2" style="background-color: white; text-align: center;" |{{t|TEMPLATENAME|PARAMETER1|PARAMETER2||PARAMETER3}}
|}
|}
{{t|t|template name|first parameter|second parameter}}.
 


To pass named parameters, you can  
To pass named parameters, you can  
Line 43: Line 60:
* use correctly numbered parameters.
* use correctly numbered parameters.


{{t|Columns|count&#61;3|* Item 1* Item 2}}
{{t|Character|2=name=INPUT}}


== Pages using Template ==
== Pages using Template ==

Revision as of 01:11, 18 April 2025

Description

This template is used to provide stylized formatting to template displays without actually using the template itself. It will provide a link to that template's page in the Template namespace. Most commonly, this template is used for demonstrative or linking purposes in the Help Guide or on a Template's Description page.

Usage

Default Usage
To simply create a link to a template, pass the template name.
You Type You Get
{{t|TEMPLATENAME}}
{{TEMPLATENAME}}
Unnamed Parameter
To demonstrate unnamed parameters, simply pass the input.
You Type You Get
{{t
|TEMPLATENAME
|PARAMETER1
|PARAMETER2
|PARAMETER3
}}
{{TEMPLATENAME|PARAMETER1|PARAMETER2|PARAMETER3}}
Named Parameter
Named parameters will not appear in the output if passed using =.
You Type
{{t|TEMPLATENAME|PARAMETER1|PARAMETER2}}
You Get
{{TEMPLATENAME|PARAMETER1|PARAMETER2|PARAMETER3}}


To pass named parameters, you can

  • use name &#61; value{{t|Rosharan numeric date|year &#61; 1172|month &#61; 5|week &#61; 10|day &#61; 6}};
  • surround it in <nowiki /> tags — {{t|Rosharan numeric date|<nowiki>year=1172|month=5|week=1|day=6</nowiki>}}; or
  • use correctly numbered parameters.

{{Character|name=INPUT}}

Pages using Template