Template:Vocabulary
From open-support.info
(Difference between revisions)
Dick6809 (Talk | contribs)
(ページの作成:「<onlyinclude>{{#ifeq:{{int:Lang}}|simple |[[Vocabulary:{{#if:{{{dict|}}}|{{{dict}}}|Common}}{{#if:{{{1|}}} |/{{{1}}}{{#switch:THEN |{{#if:{{{term|}}}|THEN}}=/en/{{{term...」)
(ページの作成:「<onlyinclude>{{#ifeq:{{int:Lang}}|simple |[[Vocabulary:{{#if:{{{dict|}}}|{{{dict}}}|Common}}{{#if:{{{1|}}} |/{{{1}}}{{#switch:THEN |{{#if:{{{term|}}}|THEN}}=/en/{{{term...」)
Latest revision as of 01:44, 15 April 2011
[edit] [ ] Template documentation
Template:Vocabulary – No description.
Function
Interprete given string into user's preference language, according to the site standard or an user specific dictionary.
Usage
{{Vocabulary | 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
The above documentation is transcluded from Template:Vocabulary/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |