Template:Tls/doc: Difference between revisions
More actions
←Created page with '{{TemplateBox |1 = 1 |1label = template name |1d-en = Name of the template to link for |1aliases = <!-- List of aliases, separated by / (a s...' |
Add {{Tl‑nav}} |
||
| Line 1: | Line 1: | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | |||
{{TemplateBox | {{TemplateBox | ||
|1 = 1 | |1 = 1 | ||
| Line 20: | Line 21: | ||
|shorthand = | |shorthand = | ||
|setscats = | |setscats = | ||
|type = | |type = | ||
|i18n-method = - | |i18n-method = - | ||
| Line 28: | Line 28: | ||
|print = | |print = | ||
|useTemplateData = only | |useTemplateData = only | ||
}}<includeonly> | }} | ||
{{Tl-nav}} | |||
<includeonly>{{Sandbox other|| | |||
<!-- Categories below this line; interwikis at Wikidata --> | |||
[[Category:Internal link templates]] | [[Category:Internal link templates]] | ||
[[Category:Typing-aid templates]]</includeonly> | [[Category:Typing-aid templates]] | ||
}}</includeonly> | |||
Latest revision as of 20:09, 9 June 2021
Similar to {{tl}} but with "subst:".
Usage
{{tls |1= }}
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
Similar to {{tl}} but with "subst:".
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| template name | 1 | Name of the template to link for | Template | required |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Example
{{tls|template}}
renders as:
{{subst:template}}
Localization
This template is not intended to be localized.