模板:Langx
外觀

![]() | 本模板不應在引文模板(如引文格式1和引文格式2)中使用,因為本模板所含的標示語言會破壞引文模板產生的 COinS 元數據,更多資訊請見「Wikipedia:COinS」。 |
![]() | 本模板不能替換參照嵌入。 |
![]() | 此模板使用Lua語言: |
語言模板 |
---|
語言名稱(ISO 639) |
|
維基詞典連結 |
外語文本 |
|
其他 |
|
資料 |
用法
[編輯]語言模板用來標註特定內容的語言。IETF語言標籤和外文內容是必填參數。內容將根據en:Wikipedia:Manual of Style/Text formatting#Foreign terms被格式化,拉丁字母為基礎的語言會使用斜體,其他為正常字體。
此模板通常放在外文短語或術語之後用以標註原文。
- 參數
|links=no
禁止語言名稱被內部連結。 - 參數
|translit=
allows for a romanization to be identified. This parameter is not supported by{{langx|<tag>|...}}
templates for languages that are already written in Latin script. - 參數
|lit=
允許給出直譯。
參數
[編輯]參數 | 定義 | 受影響於 | 別名 |
---|---|---|---|
|1= |
The IETF language tag for the content in |text= |
— | |code=
|
|text= |
The non-English text | — | |2=
|
|translit= |
The Latin script transliteration of the content in |text= |
— | |3=
|
|translit-std= |
The standard used for the transliteration of the value of |translit= ; accepted values are: ISO , DIN , IAST , ALA , ALA-LC |
— | |
|translit-script= |
The transliteration standard's script identifier | — | |
|translation= |
The literal English translation or gloss of the content in |text= |
— | |lit= , |4=
|
|label= |
The label to be used instead of template-provided language label. May be wikilinked. Special keyword none causes the template to render without any labels (including transliteration and translation labels) |
— | |
|link= |
Links language name and static text associated with |translit= and |translation= . Defaults to yes . Accepted values are: no , yes ; |link=no does not unlink wikilinked labels set by |label= |
— | |links=
|
|proto= |
Accepted values are: no (default) or yes (default for private-use language tags with the -x-proto subtags); when yes (default or explicit), prefixes rendered text with an asterisk indicating 'unattested' |
— | |
|script= |
(Deprecated – include script subtag in |1= ) IETF language script subtag; sometimes set by the template when the language of the content in |text= uses more than one writing system; always four alpha characters; a value of Latn (not "Latin"!) forces italic rendering unless overridden by |italic= ; overrides |rtl= |
|italic= |
|
|region= |
(Deprecated – include region subtag in |1= ) IETF language region subtag |
— | |
|variant= |
(Deprecated – include variant subtag in |1= ) IETF language variant subtag |
— | |
|rtl= |
yes indicates that the writing system used for the content in |text= is right-to-left; accepted values are: no (default), yes |
|script= |
|
|italic= |
yes , no , unset , invert , default |
; accepted values are: — | |italics= , |i=
|
|size= |
Specifies font size of the content in |text= ; use a value suitable for use with the CSS font-size property; this should almost always be a relative value supplied in % or em units, not a fixed px value. |
— | |
|engvar= |
Selects English variant spelling of 'romanised' or 'romanized' (default) according to the country specified; accepted values are: au (Australia), ca (Canada), gb (Great Britain), ie (Ireland), in (India), nz (New Zealand), us (United States), za (South Africa) |
— | |
|cat= |
Inhibits automatic categorization; mirror version of |nocat= ; accepted values are: no , n , false , f , off , 0 |
— | |
|nocat= |
Inhibits automatic categorization; mirror version of |cat= ; accepted values are: yes , y , true , t , on , 1 |
— |
|italic= 值 |
描述 | 範例代碼 | 結果 | HTML標記 |
---|---|---|---|---|
|
|
{{Langx|ru|тундра}}
|
俄語:тундра | [[俄語]]:<span lang="ru">тундра</span>
|
{{Langx|ru|tûndra}}
|
俄語:tûndra | [[俄語]]:<i lang="ru">tûndra</i> 標記有誤;需要script子標籤 -latn 。
| ||
{{Langx|fr|toundra}}
|
法語:toundra | [[法語]]:<i lang="fr">toundra</i>
| ||
{{Langx|ru-latn|tûndra}}
|
俄語:tûndra | [[俄語]]:<i lang="ru-Latn">tûndra</i>
| ||
default
|
{{Langx|ru|тундра|italic=default}}
|
俄語:тундра | [[俄語]]:<span lang="ru">тундра</span>
| |
{{Langx|fr|toundra|italic=default}}
|
法語:toundra | [[法語]]:<i lang="fr">toundra</i>
| ||
{{Langx|ru-latn|tûndra|italic=default}}
|
俄語:tûndra | [[俄語]]:<i lang="ru-Latn">tûndra</i>
| ||
no
|
|
{{Langx|ru|тундра|italic=no}}
|
俄語:тундра | [[俄語]]:<span lang="ru" style="font-style: normal;">тундра</span>
|
{{Langx|fr|toundra|italic=no}}
|
法語:toundra | [[法語]]:<span lang="fr" style="font-style: normal;">toundra</span>
| ||
{{Langx|ru-latn|tûndra|italic=no}}
|
俄語:tûndra | [[俄語]]:<span lang="ru-Latn" style="font-style: normal;">tûndra</span>
| ||
''{{Langx/sandbox|ru-latn|tûndra|italic=no}}''
|
俄語:tûndra | ''[[俄語]]:<span lang="ru-Latn" style="font-style: normal;">tûndra</span>''
| ||
yes
|
|
{{Langx|ru|тундра|italic=yes}}
|
俄語:тундра | [[俄語]]:<i lang="ru">тундра</i>
|
{{Langx|ru-latn|tûndra|italic=yes}}
|
俄語:tûndra | [[俄語]]:<i lang="ru-Latn">tûndra</i>
| ||
unset
|
|
{{Langx|ru|тундра|italic=unset}}
|
俄語:тундра | [[俄語]]:<span lang="ru">тундра</span>
|
''{{Langx/sandbox|ru|тундра|italic=unset}}''
|
俄語:тундра | ''[[俄語]]:<span lang="ru">тундра</span>''
| ||
{{Langx|ru-latn|tûndra|italic=unset}}
|
俄語:tûndra | [[俄語]]:<span lang="ru-Latn">tûndra</span>
| ||
''{{Langx/sandbox|ru-latn|tûndra|italic=unset}}''
|
俄語:tûndra | ''[[俄語]]:<span lang="ru-Latn">tûndra</span>''
| ||
invert
|
|
{{Langx|ru|тундра|italic=invert}}
|
俄語:тундра | [[俄語]]:<span lang="ru">''тундра''</span>
|
{{Langx|ru|''тундра''|italic=invert}}
|
俄語:тундра | [[俄語]]:<span lang="ru">тундра</span>
| ||
{{Langx|ru-latn|tûndra|italic=invert}}
|
俄語:tûndra | [[俄語]]:<span lang="ru-Latn">''tûndra''</span>
| ||
{{Langx|ru-latn|''tûndra''|italic=invert}}
|
俄語:tûndra | [[俄語]]:<span lang="ru-Latn">tûndra</span>
|
備註
[編輯]- ^ compare
|italic=invert
to|italic=unset
:{{Langx|de|... ein neues Opernprojekt in Angriff: ''Das Käthchen von Heilbronn'', nach Heinrich von Kleists gleichnamigem Drama.|italic=invert}}
- 德語:... ein neues Opernprojekt in Angriff: Das Käthchen von Heilbronn, nach Heinrich von Kleists gleichnamigem Drama.
{{Langx|de|''... ein neues Opernprojekt in Angriff: ''Das Käthchen von Heilbronn'', nach Heinrich von Kleists gleichnamigem Drama.''|italic=unset}}
- 德語:... ein neues Opernprojekt in Angriff: Das Käthchen von Heilbronn, nach Heinrich von Kleists gleichnamigem Drama.
模板資料
[編輯]為讀者標註術語或短語的外語原文。
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
語言標籤 | 1 | 一個有效的IETF語言標籤,用於標識非現代標準漢語的文字語言。 | 字串 | 必填 |
文本 | 2 | 顯示的文本。 | 字串 | 必填 |
音譯 | 3 translit | 外語文本的音譯,適用於不使用拉丁字母的語言。對於使用拉丁字母的語言,此字段被忽略。 | 字串 | 非必填 |
直譯 | 4 lit translation | 外語文本的直譯。 | 字串 | 非必填 |
顯示連結 | links link | 設為'no'則禁用指向語言條目的連結。 | 布林值 | 非必填 |
語言標籤 | label | 設為'none'則隱藏語言連結和標籤。某些語言可能有其他選項值可用。
| 行 | 非必填 |
從右到左 | rtl | 切換外語文字是否從右到左顯示。
| 布林值 | 非必填 |
斜體 | italic italics i | 切換外語文字是否斜體顯示。
| 布林值 | 非必填 |
字體大小 | size | 設置外語文字的字體大小。
| 不明 | 非必填 |
範例
[編輯]The following examples show translations from German.
寫法
- Weimar is located in the federal state of Thuringia (
{{Langx|de|Thüringen}}
). - The Seafarers of Catan (
{{Langx|de|Die Seefahrer von Catan}}
) is an expansion of the board game The Settlers of Catan. - Albert the Bear (
{{Langx|de|Albrecht der Bär|links=no}}
) - All Quiet on the Western Front (
{{Langx|de|Im Westen nichts Neues|lit=In the West Nothing New}}
) is a novel by Erich Maria Remarque.
呈現
- Weimar is located in the federal state of Thuringia (德語:Thüringen).
- The Seafarers of Catan (德語:Die Seefahrer von Catan) is an expansion of the board game The Settlers of Catan.
- Albert the Bear (德語:Albrecht der Bär)
- All Quiet on the Western Front (德語:Im Westen nichts Neues, 直譯 'In the West Nothing New') is a novel by Erich Maria Remarque.
追蹤分類
[編輯]- Category:Lang和lang-xx模板錯誤(1)
- Category:Lang和lang-xx代碼升級為ISO 639-1(10)
- Category:Lang和lang-xx使用棄用的ISO 639代碼(7)
參見
[編輯]- {{Lang}}
- {{Language with name/for}}
- ISO 639-1代碼列表
- {{IPA}}