Template:Transl
| 警告 | 此Template被引用於約26,000個頁面。 為了避免造成大規模的影響,所有對此Template的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
| 语言模板 |
|---|
| 语言名称(ISO 639) |
|
| 维基词典链接 |
| 外语文本 |
|
| 其他 |
|
目的[编辑]
本模版的存在目的,在於統合先前的各個轉寫模版,例如:{{IAST}}、{{ISOtranslit}}、{{ArabDIN}}等。這些模版仍然可以使用,但已被本模版所包含。例如:{{IAST|saṃskṛtam}}可被{{transl|sa|IAST|saṃskṛtam}}替代,又或{{ArabDIN|...}}可被{{transl|ar|DIN|...}}替代。
The transliteration is marked as belonging in the "latinx" class of MediaWiki:Common.css (note, this renders obsolete the "IAST" class formerly used by {{IAST}}).
This template is kept separate from {{lang}} to address formatting issues (via css classes) and identification of transliteration schemes used. Ultimately, if these concerns are smartly addressed in the css file and/or in {{lang}}, using {{transl|xx|...}} should be equivalent to using {{lang|xx-Latn|...}}, viz. stating that the string is a Romanization by adding "-Latn" to the language code.
使用方法[编辑]
该模板有两种使用方法:指定或不指定具体的转写方案:
- 2个参数,包括ISO 639语言代码:
{{transl|ar|al-Khwarizmi}}表示“al-Khwarizmi”是阿拉伯文一种宽泛或不特定转写方案的转写
- 2个参数,包括ISO 15924文字代码:
{{transl|Ogam|MAQI}}means that "MAQI" transliterates an Ogham inscription without specifying the language. Potentially useful when writing systems themselves are under discussion, e.g.{{transl|Cyrl|š}}, not{{transl|cu|š}}or{{transl|ru|š}}when discussing the letter Ш. - 3个参数,包括ISO 639语言代码:
{{transl|ar|DIN|al-Ḫuwārizmī}} / {{transl|ar|ALA|al-Khwārizmī}},第二个参数指定使用的转写方案(DIN/ALA) - 3个参数,包括ISO 15924文字代码:
{{transl|Arab|DIN|Ḫ}} vs {{transl|Arab|ALA|Kh}},转写阿拉伯字母ﺥ
例子[编辑]
- 花拉子密:DIN 31635: al-Ḫuwārizmī / ISO 233: al-H̱uwārizmī / ALA: al-Khwārizmī
- RTGST: phasa thai / ISO 11940: p̣hās̄ʹāthịy
- 𒅴𒂠 EME.GIR15 / 𒉈𒅆𒇷 ne-ši-li
ISO:
- русский
{{transl|ru|ISO|russkij}}: russkij - Аҧсуа
{{transl|ab|ISO|aṗsua}}: aṗsua - عربي
{{transl|ar|ISO|ʿarabī}}: ʿarabī - தமிழ்
{{transl|ta|ISO|tamiḻ}}: tamiḻ - বাংলা
{{transl|bn|ISO|baṅla}}: baṅla - ελληνικά
{{transl|el|ISO|ellēniká}}: ellēniká - ქართული
{{transl|ka|ISO|k'art'uli}}: k'art'uli - 漢語拼音
{{transl|zh|ISO|hànyǔ pīnyīn}}: hànyǔ pīnyīn; compare:{{lang|pny|hànyǔ pīnyīn}}: hànyǔ pīnyīn - ภาษาไทย
{{transl|th|ISO|p̣hās̄ʹāthịy}}: p̣hās̄ʹāthịy
参见[编辑]
<templatedata> { "params": { "1": { "label": "源語言或源語文", "description": "原文語言(ISO 639語言代碼)或原文語文(ISO 15924書寫系統代碼)", "type": "string", "required": true }, "2": { "label": "轉寫方案", "type": "string" }, "3": { "label": "轉寫後的文本", "type": "string", "required": true } } } </templatedata>