Template:Tl/doc: Difference between revisions
Jump to navigation
Jump to search
(initial docs) |
(doc improved; TD added) |
||
Line 1: | Line 1: | ||
{{Documentation subpage | {{Documentation subpage}} | ||
Displays a template name as a link surrounded by braces. | Displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. | ||
== Usage == | == Usage == | ||
A short example is: | |||
::<code><nowiki>{{Tl|Purge}}</nowiki></code> | |||
:which generates | |||
::{{Tl|Purge}} | |||
{{TemplateDataHeader|noheader=1}} | |||
<templatedata> | |||
{ | |||
"description": "This template displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.", | |||
"params": { | |||
"1": { | |||
"label": "template name", | |||
"description": "the template name without the namespace prefix “Template:”, which is added automatically", | |||
"type": "line", | |||
"required": true | |||
} | |||
} | |||
} | |||
</templatedata> | |||
== See also == | == See also == |
Latest revision as of 20:36, 31 July 2016
This is a documentation subpage for Template:Tl . |
Displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.
Usage
A short example is:
{{Tl|Purge}}
- which generates
- {{Purge}}
TemplateData for Tl
This template displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.
Parameter | Description | Type | Status | |
---|---|---|---|---|
template name | 1 | the template name without the namespace prefix “Template:”, which is added automatically | Line | required |
See also
- {{C}} - creates a link to a category