Template:Tmpl/doc/cs
warning Warning: | Do not edit. This page is maintained by an automated tool. All edits should be done at mediawiki.org. (translate this warning) |
File:OOjs UI icon book-ltr.svg | This is a documentation subpage for Template:Tmpl/doc/cs. It contains usage information, categories and other content that is not part of the original Template page. |
File:Lua-logo-nolabel.svg | Uses Lua: |
Tato šablona nahrazuje číselné proměnné (podobné těm, které se používají ve zprávách MediaWiki a přeložitelných stránkách) v řetězci. Na rozdíl od přeložitelných stránek podporuje pouze číselné proměnné $1 až $9. Jedna proměnná se může objevit vícekrát, takže v případě přeložitelných stránek není potřeba překládat stejný text více než jednou.
TemplateData
Tato sekce obsahuje strukturovaný popis parametrů šablony využívající rozšíření TemplateData, který umožňuje snadnější používání této šablony v prostředí VisualEditoru.
Tmpl/doc/cs
<templatedata>{"paramOrder":["0","1","2","3","4","5","6","7","8","9"],"description":"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.","params":{"0":{"description":"Text with replacements, which are specified using “$n”, where “n” is a positive integer matching the parameter names.","type":"content","required":true,"label":"Template Content"},"1":{"description":"The replacement string for “$1”.","type":"content","required":false,"label":"Replacement 1"},"2":{"description":"The replacement string for “$2”.","type":"content","required":false,"label":"Replacement 2"},"3":{"description":"The replacement string for “$3”.","type":"content","required":false,"label":"Replacement 3"},"4":{"description":"The replacement string for “$4”.","type":"content","required":false,"label":"Replacement 4"},"5":{"description":"The replacement string for “$5”.","type":"content","required":false,"label":"Replacement 5"},"6":{"description":"The replacement string for “$6”.","type":"content","required":false,"label":"Replacement 6"},"7":{"description":"The replacement string for “$7”.","type":"content","required":false,"label":"Replacement 7"},"8":{"description":"The replacement string for “$8”.","type":"content","required":false,"label":"Replacement 8"},"9":{"description":"The replacement string for “$9”.","type":"content","required":false,"label":"Replacement 9"}}}</templatedata>Edit parameter translations
Příklady
- {{tmpl|0=Text s $1 uprostřed.|replacement}}
Text s replacement uprostřed.
- {{tmpl|0= <$1 name=$3>$2</$1>|tag|content|value}}
<tag name=value>content</tag>