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

Difference between revisions of "Template:Tl/doc"

From ModEnc
Jump to: navigation, search
m (桂月August moved page Template:T/doc to Template:Tl/doc: Replace Template:T by a new Template)
m
 
(2 intermediate revisions by the same user not shown)
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:<code><nowiki>{{Tl|Name of the template}}</nowiki></code>
:Utilises [[Template:T/piece]].
 
;Syntax
 
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}}
 
;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|Sandbox}}</pre>
 +
|{{Tl|Sandbox}}
 +
|}

Latest revision as of 10:08, 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|Sandbox}}
{{Sandbox}}