Template:Vocabulary/doc
From open-support.info
This is a documentation subpage for Template:Vocabulary (see that page for the template itself). It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
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
| – | Original text normally in English. If there is no translation for user's preference language, this text will be shown. |
| – | (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. |
| – | (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).
|
| – | (Optional) Output case modifier. |
| – | (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
- Project:Vocabulary
- Template:Vocabulary/core
- Template:Vocabulary/anchor
- Template:Vocabulary/doc
- Template:Vocabulary/form
- Form:Vocabulary
- Category:Documentation translate template subpages
Check this page in: Deutsch | English | Español | Français | Italiano | 日本語 | 中文(简体) | [debug] [purge] |