Template:Title language/doc
| File:Edit-copy green.svg | 此頁面是Template:Title language的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
| 语言模板 |
|---|
| 语言名称(ISO 639) |
|
| 维基词典链接 |
| 外语文本 |
|
| 其他 |
|
This template puts appropriate language tags around the title of the page, in a similar way to Template:Lang. See Template:Lang/doc § Rationale for more information.
TemplateData[编辑]
<templatedata> { "description": "Indicate that an article title belongs to a particular language. Allows browsers to correctly present and pronounce foreign-language titles.", "params": { "1": { "label": "Language tag", "description": "A language tag, or an ISO 639 language code.", "type": "string", "required": true, "example": "fr", "aliases": [ "language", "lang", "code" ] }, "italic": { "aliases": [ "italics", "i" ], "label": "Italicize", "description": "Italicizes the text", "default": "yes", "example": "no", "type": "boolean" } }, "format": "inline" } </templatedata>
Examples[编辑]
The following code tags an article title as French and italicizes it:
{{title language|fr}}
See also[编辑]