Template:Vocabulary/doc
提供: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. |
機能
Interprete given string into user's preference language, according to the site standard or an user specific dictionary.
使用方法
{{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 }}
パラメータ
| – | Original text normally in English. If there is no translation for user's preference language, this text will be shown. |
| – | (オプション) 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. |
| – | (オプション) 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. 既定値: Value of {{int:Lang}} (the preferred language of the visitor viewing the page).
|
| – | (オプション) Output case modifier. |
| – | (オプション) Produce the English anchor for section toc. |
使用例
Consult the standard dictionary
ソースコード | Return value | 説明 |
---|---|---|
{{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
参考情報
- 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] |