Template:Tmpl/doc: Difference between revisions
Template page
More actions
Create documentation subpage for {{tmpl}} |
Use main {{TemplateBox}} |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Shared Template Warning|Template:Tmpl}} | |||
<!-- 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 --> | ||
{{TemplateBox | |||
| mbox = | |||
{{Lua|Module:Tmpl}} | {{Lua|Module:Tmpl}} | ||
| name = | | 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. | |||
| namespace = all | | namespace = all | ||
| usergroup = all | | usergroup = all | ||
| example = < | | example-source = <syntaxhighlight lang="html">{{tmpl|0= <$1 name=$3>$2</$1> |tag|content|value}}</syntaxhighlight> | ||
| example-value = {{tmpl|0= <$1 name=$3>$2</$1> |tag|content|value}} | | example-value = {{tmpl|0= <$1 name=$3>$2</$1> |tag|content|value}} | ||
| relieson = [[Module:Tmpl]] | | relieson = | ||
* [[Module:Tmpl]] | |||
| i18n-method = - | | i18n-method = - | ||
| Line 25: | Line 30: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| useTemplateData = | | useTemplateData = TNT:tmpl | ||
| 1 = 0 | | 1 = 0 | ||
| 1stat = required | | 1stat = required | ||
}} | }} | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category: | [[Category:Commons utility templates]] | ||
}}</includeonly> | }}</includeonly> | ||