Template:T: Difference between revisions
m →Usage |
m Removed background color to allow dynamic color shift in dark mode. |
||
| Line 21: | Line 21: | ||
!You Get | !You Get | ||
|- | |- | ||
| style="text-align: center | | style="text-align: center;" |<pre> | ||
{{t|Example}} | {{t|Example}} | ||
</pre> | </pre> | ||
| style=" | | style="text-align: center;" |{{t|Example}} | ||
|- | |- | ||
! 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> | ! 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> | ||
| Line 31: | Line 31: | ||
!You Get | !You Get | ||
|- | |- | ||
| style="text-align: left | | style="text-align: left;" |<pre> | ||
{{t | {{t | ||
|Example | |Example | ||
| Line 39: | Line 39: | ||
}} | }} | ||
</pre> | </pre> | ||
| style=" | | style="text-align: center;" |{{t|Example|PARAMETER1|PARAMETER2|PARAMETER3}} | ||
|- | |- | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Named Parameter</span><span style="font-weight: normal;"><br>Named parameters will not appear in the output if passed only using <code>=</code>.<br>You can pass named parameters in one of three ways:</span> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Named Parameter</span><span style="font-weight: normal;"><br>Named parameters will not appear in the output if passed only using <code>=</code>.<br>You can pass named parameters in one of three ways:</span> | ||
| Line 46: | Line 46: | ||
|- | |- | ||
| colspan="2" style=" | | colspan="2" style="text-align: center;"|<span style="display: block; text-align: left;">1. Use a unicode equals sign (<code>&#<span>61</span>;</code>) instead of <code>=</code>:</span> | ||
<div style="width: 65%; margin: 0 auto;"><pre>{{t|Example|name&#61;INPUT|date&#61;INPUT|location&#61;INPUT}}</pre></div> | <div style="width: 65%; margin: 0 auto;"><pre>{{t|Example|name&#61;INPUT|date&#61;INPUT|location&#61;INPUT}}</pre></div> | ||
|- | |- | ||
| colspan="2" style=" | | colspan="2" style="text-align: center;"|<span style="display: block; text-align: left;">2. Surround the parameters in a <code><nowiki></code> tag:</span> | ||
<div style="width: 65%; margin: 0 auto;"><pre>{{t|Example<nowiki>|name=INPUT|date=INPUT|location=INPUT</nowiki>}}</pre></div> | <div style="width: 65%; margin: 0 auto;"><pre>{{t|Example<nowiki>|name=INPUT|date=INPUT|location=INPUT</nowiki>}}</pre></div> | ||
|- | |- | ||
| colspan="2" style=" | | colspan="2" style="text-align: center;"|<span style="display: block; text-align: left;">3. Use correctly numbered parameters, i.e., <code>2=</code>, <code>3=</code>, etc.:</span> | ||
<div style="width: 65%; margin: 0 auto;"><pre>{{t|Example|2=name=INPUT|3=date=INPUT|4=location=INPUT}}</pre></div> | <div style="width: 65%; margin: 0 auto;"><pre>{{t|Example|2=name=INPUT|3=date=INPUT|4=location=INPUT}}</pre></div> | ||
|- | |- | ||
! colspan="2" | You Get | ! colspan="2" | You Get | ||
|- | |- | ||
| colspan="2" style=" | | colspan="2" style="text-align: center;"|<div> | ||
{{t|Example|name=INPUT|date=INPUT|location=INPUT}} | {{t|Example|name=INPUT|date=INPUT|location=INPUT}} | ||
</div> | </div> | ||
Latest revision as of 22:34, 27 May 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
| Template Link To simply create a link to a template, pass the template's name. | |
|---|---|
| You Type | You Get |
{{t|Example}}
|
{{Example}}
|
| Unnamed Parameter To demonstrate unnamed parameters, simply pass the input. | |
| You Type | You Get |
{{t
|Example
|PARAMETER1
|PARAMETER2
|PARAMETER3
}}
|
{{Example|PARAMETER1|PARAMETER2|PARAMETER3}}
|
| Named Parameter Named parameters will not appear in the output if passed only using =.You can pass named parameters in one of three ways: | |
| You Type | |
1. Use a unicode equals sign (=) instead of =:
{{t|Example|name=INPUT|date=INPUT|location=INPUT}} | |
2. Surround the parameters in a <nowiki> tag:
{{t|Example<nowiki>|name=INPUT|date=INPUT|location=INPUT</nowiki>}} | |
3. Use correctly numbered parameters, i.e., 2=, 3=, etc.:
{{t|Example|2=name=INPUT|3=date=INPUT|4=location=INPUT}} | |
| You Get | |
| |
Pages using Template
- File:Quill-red.png (transclusion) (← links | edit)
- File:Lion-icon.png (transclusion) (← links | edit)
- Template:T (transclusion) (← links | edit)
- Template:Book ref (transclusion) (← links | edit)
- Template:Emma ref (transclusion) (← links | edit)
- Template:Ref (transclusion) (← links | edit)
- Template:Image (transclusion) (← links | edit)
- Template:Partial (transclusion) (← links | edit)
- Template:Quote (transclusion) (← links | edit)
- Template:Stub (transclusion) (← links | edit)
- Template:Test (transclusion) (← links | edit)
- Template:Art (transclusion) (← links | edit)
- Template:C (transclusion) (← links | edit)
- Help:References (transclusion) (← links | edit)
- Help:Images (transclusion) (← links | edit)
- Help:Categories (transclusion) (← links | edit)
- Help:Templates (transclusion) (← links | edit)
- Category:Partially Complete Articles (transclusion) (← links | edit)
- Category:Articles Nearing Completion (transclusion) (← links | edit)
- Category:Complete Articles (transclusion) (← links | edit)
- Category:Article Statuses (transclusion) (← links | edit)
- Category:Stubs (transclusion) (← links | edit)
- Category:Articles in Need of Attention (transclusion) (← links | edit)
- Category:Articles with Spoilers (transclusion) (← links | edit)
- Category:Excellent Articles (transclusion) (← links | edit)
- Category:Articles in Need of Citations (transclusion) (← links | edit)
- Category:Articles in Need of Clarification (transclusion) (← links | edit)
- Category:Articles with Disputed Content (transclusion) (← links | edit)
- Category:Articles Missing Information (transclusion) (← links | edit)
- Category:Articles to Delete (transclusion) (← links | edit)
- Category:Articles with Theories (transclusion) (← links | edit)
- Category:Articles to Be Renamed (transclusion) (← links | edit)
- Category:Locked Articles (transclusion) (← links | edit)
- Category:Articles in Need of Updates (transclusion) (← links | edit)