ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Template:Tl/doc: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m 桂月August moved page Template:T/doc to Template:Tl/doc: Replace Template:T by a new Template
No edit summary
Line 1: Line 1:
;Description
This template can be used to create a link with braces to any template, so that users can copy or view the introduction about the template it links to.
:A template link with a variable number of example parameters (0-20), which can be used to show example inputs.
;Syntax:
:Utilises [[Template:T/piece]].
{|
;Syntax
|
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}}
<pre>{{Tl|Name of the template}}</pre>
;Sample code
|}
:<code><nowiki>{{t|News}}</nowiki></code> gives...
:{{t|News}}
:<code><nowiki>{{t|News|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives...
:{{t|News|Item1|Item2|Item3|Item4|Item5|...}}


<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
{| class="wikitable" style="text-align: center; background-color: #FFFFFF00;"
! colspan="2" | Example
|-
! width="25%" | Code
! width="25%" | Result
|-
|
<pre>{{Tl|UnitBox}}</pre>
|{{Tl|UnitBox}}
|}

Revision as of 08:05, 23 August 2021

This template can be used to create a link with braces to any template, so that users can copy or view the introduction about the template it links to.

Syntax:
{{Tl|Name of the template}}
Example
Code Result
{{Tl|UnitBox}}
{{UnitBox}}