Template:Tmpl/doc: Difference between revisions
Template page
More actions
Add `desc` parameter to {{TemplateBox}} |
Set the `useTemplateData` parameter of {{TemplateBox}} to `TNT` (use c:Data:Templatedata/tmpl.tab) |
||
| Line 1: | Line 1: | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
{{Lua|Module:Tmpl}} | {{Lua|Module:Tmpl}} | ||
{{TemplateBox | {{TemplateBox/sandbox | ||
| name = tmpl | | name = tmpl | ||
| desc-en = This template replaces numeric variables (similar to those used in MediaWiki messages and translatable pages) in a string. In contrast to translatable pages, it supports only numeric variables {{mono|$1}} to {{mono|$9}}. One variable can appear several times, so in case of translatable pages, there’s no need to translate the same text more than once. | | desc-en = This template replaces numeric variables (similar to those used in MediaWiki messages and translatable pages) in a string. In contrast to translatable pages, it supports only numeric variables {{mono|$1}} to {{mono|$9}}. One variable can appear several times, so in case of translatable pages, there’s no need to translate the same text more than once. | ||
| namespace = all | | namespace = all | ||
| Line 27: | Line 26: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| useTemplateData = | | useTemplateData = TNT:tmpl | ||
| 1 = 0 | | 1 = 0 | ||
| 1stat = required | | 1stat = required | ||
}} | }} | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||