Template: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. It is useful to avoid nested translate tags.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
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>
Editors can experiment in this template’s sandbox (create | mirror) and testcases (edit) pages.
Please add categories to the /doc subpage. Subpages of this template.