Template:Vocabulary/doc

From open-support.info

< Template:Vocabulary
Revision as of 01:45, 15 April 2011 by Dick6809 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Function

Interprete given string into user's preference language, according to the site standard or an user specific dictionary.

Usage

{{Vocabulary/doc
| string
| dict = dictionary_name
| case = uc / lc / ucfirst / uf / lcfirst / lf
| xx   = synonym_id (Note: "xx" is the language code, e.g. de, fr, etc.)
| term / conj / decl / infl / syno / alt
       = synonym_id
| lang = language_code
| anchor
}}

Parameters

  • 1 (string) 
–  Original text normally in English. If there is no translation for user's preference language, this text will be shown.
  • dict 
–  (Optional)  Dictionary name. See Project:Vocabulary for detailed information. If this parameter is blank, System messages in MediaWiki: namespace will be used instead of articles in Vocabulary: namespace.
  • lang 
–  (Optional)  Language code (only needs to be provided if the language displayed is to be fixed and independent of the user’s preferences). This option is usually only used for template debugging.
Default value: Value of {{int:Lang}} (the preferred language of the visitor viewing the page).
  • case 
–  (Optional)  Output case modifier.
  • anchor 
–  (Optional)  Produce the English anchor for section toc.

Examples

Consult the standard dictionary

Code Return value Description
{{message|parameter}} parameter Interprete with the common dictionary.
{{message|parameter|dict=demo}} parameter Interprete with the dictionary named "demo."
{{message|Parameter}} Parameter Convert first character to upper case after interpretation.
{{message|parameter|case=uc}} PARAMETER Convert to upper case after interpretation.
{{message|parameters}} parameter Specify a homograph in German only.
{{message|parameter|en=pl}} parameter define language specific homograph.
{{message|parameter|en=pl}} parameter You may specify a homograph in English too.
{{message|parameter|decl=pl}} parameter Specify homographs in all languages.
{{message|parameter|conj=pl}} parameter You may use conj (= conjugation) option instead of decl (= declension) option.

Translate messages in articles or templates

See also


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox