Template:Tmpl/doc
Jump to navigation
Jump to search
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>