Template:Tmpl
Warning: | Do not edit. This page is maintained by an automated tool. All edits should be done at mediawiki.org. (translate this warning) |
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
TemplateData for 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 $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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template Content | 0 | Text with replacements, which are specified using “$n”, where “n” is a positive integer matching the parameter names. | Content | required |
Replacement 1 | 1 | The replacement string for “$1”. | Content | optional |
Replacement 2 | 2 | The replacement string for “$2”. | Content | optional |
Replacement 3 | 3 | The replacement string for “$3”. | Content | optional |
Replacement 4 | 4 | The replacement string for “$4”. | Content | optional |
Replacement 5 | 5 | The replacement string for “$5”. | Content | optional |
Replacement 6 | 6 | The replacement string for “$6”. | Content | optional |
Replacement 7 | 7 | The replacement string for “$7”. | Content | optional |
Replacement 8 | 8 | The replacement string for “$8”. | Content | optional |
Replacement 9 | 9 | The replacement string for “$9”. | Content | optional |
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>