Template:T: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 47: Line 47:
|-
|-
| colspan="2" style="background-color:white; 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>
| colspan="2" style="background-color:white; 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>
<pre>{{t|Example|name&#38;#61;INPUT|date&#38;#61;INPUT|location&#38;#61;INPUT}}</pre>
<div style="width: 80%; margin: 0 auto;"><pre>{{t|Example|name&#38;#61;INPUT|date&#38;#61;INPUT|location&#38;#61;INPUT}}</pre></div>
|-
|-
| colspan="2" style="background-color:white; text-align: center;"|<span style="display: block; text-align: left;">2. Surround the parameters in a <code>&lt;nowiki&gt;</code> tag:</span>
| colspan="2" style="background-color:white; text-align: center;"|<span style="display: block; text-align: left;">2. Surround the parameters in a <code>&lt;nowiki&gt;</code> tag:</span>
<pre>{{t|Example&lt;nowiki&gt;|name=INPUT|date=INPUT|location=INPUT&lt;/nowiki&gt;}}</pre>
<div style="width: 80%; margin: 0 auto;"><pre>{{t|Example&lt;nowiki&gt;|name=INPUT|date=INPUT|location=INPUT&lt;/nowiki&gt;}}</pre></div>
|-
|-
| colspan="2" style="background-color:white; text-align: center;"|<span style="display: block; text-align: left;">3. Use correctly numbered parameters:</span>
| colspan="2" style="background-color:white; text-align: center;"|<span style="display: block; text-align: left;">3. Use correctly numbered parameters:</span>
<pre>{{t|Example|2=name=INPUT|3=date=INPUT|4=location=INPUT}}</pre>
<div style="width: 80%; 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

Revision as of 02:17, 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'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 using =.
You can pass named parameters in one of three ways:
You Type
1. Use a unicode equals sign (&#61;) instead of =:
{{t|Example|name&#61;INPUT|date&#61;INPUT|location&#61;INPUT}}
2. Surround the parameters in a <nowiki> tag:
{{t|Example<nowiki>|name=INPUT|date=INPUT|location=INPUT</nowiki>}}
3. Use correctly numbered parameters:
{{t|Example|2=name=INPUT|3=date=INPUT|4=location=INPUT}}
You Get

{{Example|name=INPUT|date=INPUT|location=INPUT}}

Pages using Template