跳至內容

模板:ISO 639-1

維基百科,自由的百科全書

{{{1}}}

文件圖示 模板文件[檢視] [編輯] [歷史] [清除快取]

Template:ISO 639-1 displays an external link to a page for an ISO 639-1 language code at the U.S. Library of Congress ISO 639-2 Registration Authority website. It provides a function similar to the iso639-3: prefix, such as iso639-3:eng, which is available for ISO 639-3 language codes.

使用

{{ISO 639-1|code}}
{{ISO 639-1|code|text}}

替代用法:

{{ISO639-1|code}}
{{ISO639-1|code|text}}
{{iso639-1|code}}
{{iso639-1|code|text}}

舉例

單一參數
代碼:{{iso639-1|en}}
輸出:en

比較:

代碼:[[iso639-3:eng|eng]]
輸出:eng
兩個參數
代碼:{{iso639-1|en|English}}
輸出:English

Compares to:

Usage: [[iso639-3:eng|English]]
Output: English

TemplateData

以下是該模板的模板資料,適用於視覺化編輯器等工具。

ISO 639-1模板資料

This template displays an external link to a page for an ISO 639-1 language code at the U.S. Library of Congress ISO 639-2 Registration Authority website. It provides a function similar to the "iso639-3:" prefix, such as "iso639-3:eng", which is available for ISO 639-3 language codes.

模板參數[編輯模板資料]

參數描述類型狀態
ISO 639-1 code1

A valid ISO 639-1 language code.

字串必填
Link text2

Text to be displayed for the link. This parameter is optional; the link text defaults to the ISO 639-1 language code entered in unnamed parameter 1.

字串非必填

參見