Template:Tmpl/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Shared Template Warning|Template:Tmpl}} {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Lua|Module:Tmpl}} 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,...") |
No edit summary |
||
Line 7: | Line 7: | ||
== TemplateData == | == TemplateData == | ||
{{TemplateData header}} | {{TemplateData header}} | ||
== Examples == | == Examples == |
Latest revision as of 13:06, 2 November 2023
Template:Shared Template Warning
![]() | This is a documentation subpage for Template:Tmpl. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
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 $1 to $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.
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.
TemplateData for Tmpl
Examples
- {{tmpl|0=Text with $1 in the middle.|replacement}}
Text with replacement in the middle.
- {{tmpl|0= <$1 name=$3>$2</$1>|tag|content|value}}
<tag name=value>content</tag>