Template:Lang
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template is for making sure that text in a foreign language and/or script is displayed properly. For example,
Compare the following words, where the word on the left is without this template, but the word on the right is using the template:
- العَرَبِيَّة to العَرَبِيَّة (Arabic)
- اُردُو to اُردُو (Urdu)
普通 话 to普通 话 (Chinese)
Usage
[edit]To use this template, enter the code {{lang|<ISO code>|<text>}}
, replacing <ISO code>
with the ISO code of the language, which is usually displayed in that language's infobox on its Wikipedia page, for example, "fr" for French, or "de" for German. Then replace <text>
with the foreign text. For example, {{lang|ja|
displays
Template for making sure that text in a foreign language and/or script is displayed properly. See the documentation at the Lang template on English Wikipedia ([[:w:Template:Lang]]) for more information
Parameter | Description | Type | Status | |
---|---|---|---|---|
ISO code | 1 | ISO code of the language, usually displayed in that language's infobox on its Wikipedia page
| String | required |
Text | 2 | Text in the foreign language
| String | required |