模板:Language icon
({ISO 639 name {1})
本模板及相關調用模板使用來標示外部連結為外語。一般將模版放在外部連結前後,Wikipedia:格式手册/链接#外语网站。
對於參考資料,應該使用各引用參考模板的 language
參數({cite web}、{cite news}、{cite journal}等)而非本模板。
若參數輸入不正確將會顯示錯誤訊息,關於語言代碼與語言的對應,請參見ISO 639-1代码表、语言列表。
若您是在角色列表見到錯誤訊息,可以依修改範例修正錯誤,或參見WP:MOSACG#CHARA的方法。錯誤範例。
用法
{language icon|<语言代码>|<语言名称>}
本模版以放在連結前後為佳。例如:
- French link Invalid language code.
范例 输入模板:Tld 会得到: Invalid language code.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
See the monthly error report for this template.
TemplateData for Language icon
基於ISO語言代碼顯示語言名稱。一般用於遵循格式手冊的外語參照。
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
language code | 1 | The ISO 639 language code, e.g. 'fr' for French | 字串 | 必填 |
參見
- 還有許多由此模板衍生的 {xx icon} 形式的模板,如{en icon}等。請參見Category:语言标示模板。