Template:Title language
| Language templates |
|---|
| Languages (ISO 639) |
|
| Wiktionary links |
|
| Other |
|
| Data |
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 for 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:
<syntaxhighlight lang="text" enclose="none">
{{title language|fr}}
</syntaxhighlight>
See also
| The above documentation is transcluded from Template:Title language/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |