Template:Tmpl/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:Tmpl. It contains usage information, categories, and other content that is not part of the original template page. |
![]() | This template uses Lua: |
This template is forked from MediaWiki, the original author is User:Shirayuki. 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.
Parameters
|0=
Text with replacements, which are specified using "$n", whose "n" is a positive integer matching the parameter names.|1=
Replacement for "$1".|2=
Replacement for "$2".|3=
Replacement for "$3".|4=
Replacement for "$4".|5=
Replacement for "$5".|6=
Replacement for "$6".|7=
Replacement for "$7".|8=
Replacement for "$8".|9=
Replacement for "$9"..
Example
{{tmpl|0=This is a $1, this is a $2 and this is a [[$3]].|text|replacement|link}}
This is a text, this is a replacement and this is a link.