Template:Title language/doc

维基百科,自由的百科全书

这是Template:Title language/doc当前版本,由imported>BigBullfrog编辑于2024年10月19日 (六) 18:00 建立内容为“{{NoteTA|G1=MediaWiki}} {{Documentation subpage}} {{Language templates}} This template puts appropriate language tags around the title of the page, in a similar way to Template:Lang. See {{Section link|Template:Lang/doc|Rationale}} for more information. == TemplateData == {{TemplateData header}} <templatedata> { "description": "Indicate that an article title belongs to a particular language. Allows browsers to correctly present and pronou…”的新页面)。这个网址是本页该版本的固定链接。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
跳转到导航 跳转到搜索

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[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

Title language模板数据

<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[编辑]