Template:Tl/doc: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
GBot (talk | contribs)
initial docs
 
Goraf (talk | contribs)
doc improved; TD added
 
Line 1: Line 1:
{{Documentation subpage}}{{Improve documentation}}
{{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 .
It contains usage information, categories and other content that is not part of the original template page.

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
template name1

the template name without the namespace prefix “Template:”, which is added automatically

Linerequired

See also

  • {{C}} - creates a link to a category