Template:Lang
このテンプレートは 荒らしを防止するために編集保護されています。 トークページで変更を議論するか、保護解除を依頼してください。 |
This template is used in system messages. Changes to it can cause immediate changes to the Wikimedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
(説明文のこの部分は一部の言語のみで利用できます。)
This template is for example called from autotranslatable templates and is used to apply the "lang" and "xml:lang" attributes to the span tag containing the text. It also adds CSS classes, that for example allow CSS highlighting text that is in a specific language. For a list of language codes to use for parameter 1 see en:List of ISO 639-1 codes.
使用法
{{Lang |1= |2= }}
(説明文のこの部分は一部の言語のみで利用できます。)
For a variant to use in running text ("inline"), use {{LangS}}.
テンプレートパラメーター
パラメーター | 説明 | 既定 | 状態 | |
---|---|---|---|---|
1 | language code | empty | 必須 | |
2 | text | empty | 省略可能 |
追加情報
このテンプレートは、次の名前空間で使用されることを想定しています: すべての名前空間
このテンプレートは、次の利用者グループによって使用されることを想定しています: すべての利用者
参照
(説明文のこの部分は一部の言語のみで利用できます。)
ローカライズ
このテンプレートは、ローカル対応されることを想定していません。
for example called from autotranslatable templates and is used to apply the "lang" and "xml:lang" attributes to the span tag containing the text. It also adds CSS classes, that for example allow CSS highlighting text that is in a specific language
パラメーター | 説明 | 型 | 状態 | |
---|---|---|---|---|
language code | 1 | 説明なし | 不明 | 必須 |
text | 2 | 説明なし | 不明 | 省略可能 |