Template:Vocabulary/doc

提供:open-support.info

移動: 案内, 検索

機能

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
}}

パラメータ

  • 1 (string) 
–  Original text normally in English. If there is no translation for user's preference language, this text will be shown.
  • dict 
–  (オプション)  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 
–  (オプション)  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).
  • case 
–  (オプション)  Output case modifier.
  • anchor 
–  (オプション)  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

参考情報


個人用ツール
名前空間
変種
操作
案内
ツールボックス