Template:Tmpl/doc/cs

From mediawiki.org
warning Warning:This page is shared between multiple wikis.
All changes to this page will be automatically copied to all wikis listed in the left side bar.

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$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[edit]

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

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.

Template parameters

ParameterDescriptionTypeStatus
Template Content0

Text with replacements, which are specified using “$n”, where “n” is a positive integer matching the parameter names.

Contentrequired
Replacement 11

The replacement string for “$1”.

Contentoptional
Replacement 22

The replacement string for “$2”.

Contentoptional
Replacement 33

The replacement string for “$3”.

Contentoptional
Replacement 44

The replacement string for “$4”.

Contentoptional
Replacement 55

The replacement string for “$5”.

Contentoptional
Replacement 66

The replacement string for “$6”.

Contentoptional
Replacement 77

The replacement string for “$7”.

Contentoptional
Replacement 88

The replacement string for “$8”.

Contentoptional
Replacement 99

The replacement string for “$9”.

Contentoptional

Edit parameter translations

Příklady[edit]

  • {{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>