# வார்ப்புரு:Langx/doc



## Usage
This language template identifies non-English text. Both an IETF language tag and the non-English term or phrase are the only required parameters. The text is formatted according to recommendations in ; italics for languages that use the Latin alphabet, normal for others.  

The template should generally be placed after the English translation of the foreign term or phrase.  

- The parameter prevents the language name from being linked.
- The parameter allows for a romanization to be identified. This parameter is not supported by templates for languages that are already written in Latin script.
- The parameter enables a literal translation (in English) to be given.

## Parameters
**The transliteration standard's script identifier**

| The literal English translation or gloss of the content in | , |
| --- | --- |
| The label to be used instead of template-provided language label. May be wikilinked. Special keyword causes the template to render without any labels (including transliteration and translation labels) |  |
| Links language name and static text associated with and . Defaults to . Accepted values are: , ; does not unlink wikilinked labels set by |  |
| Accepted values are: (default) or (default for private-use language tags with the subtags); when (default or explicit), prefixes rendered text with an asterisk indicating 'unattested' |  |
| (Deprecated – include script subtag in ) IETF language script subtag; sometimes set by the template when the language of the content in uses more than one writing system; always four alpha characters; a value of <small>( "Latin"!)</small> forces italic rendering unless overridden by ; overrides |  |
| (Deprecated – include region subtag in ) IETF language region subtag |  |
| (Deprecated – include variant subtag in ) IETF language variant subtag |  |
| indicates that the writing system used for the content in is -to-; accepted values are: (default), |  |
| ; accepted values are: , , , , | , |
| Specifies font size of the content in ; use a value suitable for use with the CSS <code>font-size</code> property; this should almost always be a relative value supplied in or units, not a fixed value. |  |
| Selects English variant spelling of 'romanised' or 'romanized' (default) according to the country specified; accepted values are: (Australia), (Canada), (Great Britain), (Ireland), (India), (New Zealand), (United States), (South Africa) |  |
| Inhibits automatic categorization; mirror version of ; accepted values are: , , , , , |  |
| Inhibits automatic categorization; mirror version of ; accepted values are: , , , , , |  |

**Langx parameter operation**

| value | Description | Example code | Result | HTML markup |
| --- | --- | --- | --- | --- |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> | Incorrect markup; this requires script subtag . |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1">**</syntaxhighlight> | ** |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1">**</syntaxhighlight> | ** |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1">**</syntaxhighlight> | ** |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |
| <syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight> |  |  |  |  |

### Notes

### TemplateData

<templatedata>  
{  
"params": {  
"1": {  
"label": "Language tag",  
"description": "A valid IETF language tag identifying the language of the non-English text.",  
"type": "string",  
"required": true  
},  
"2": {  
"label": "Text",  
"description": "The non-English text to display.",  
"type": "string",  
"required": true  
},  
"links": {  
"label": "Display link",  
"description": "Set to 'no' to disable the link to the article's language.",  
"type": "boolean",  
"aliases": [  
"link"  
]  
},  
"4": {  
"label": "Literal translation",  
"description": "The literal translation of the foreign text.",  
"type": "string",  
"aliases": [  
"lit",  
"translation"  
]  
},  
"3": {  
"label": "Transliteration",  
"description": "The transliteration of the foreign text, for languages that do not use the Latin alphabet. This field is ignored for languages that do use the Latin alphabet.",  
"type": "string",  
"aliases": [  
"translit"  
]  
},  
"label": {  
"label": "Language label",  
"description": "If '', suppresses language link and label. Other options may be available depending on the language.",  
"example": "",  
"type": "line"  
},  
"rtl": {  
"label": "Right-to-",  
"description": "Toggle -to- view for the foreign text.",  
"type": "boolean",  
"example": "yes",  
"default": "no"  
},  
"italic": {  
"label": "Italicize",  
"description": "Toggle italicization for the foreign text.",  
"type": "boolean",  
"default": "yes",  
"example": "no",  
"aliases": [  
"italics",  
"i"  
]  
},  
"size": {  
"label": "Font-size",  
"description": "Sets font-size for the foreign text.",  
"example": "120%, 1.2em"  
}  
},  
"description": "Indicates to readers the original form of a term or phrase in a foreign language.",  
"paramOrder": [  
"1",  
"2",  
"3",  
"4",  
"links",  
"label",  
"rtl",  
"italic",  
"size"  
]  
}  
</templatedata>  

## Examples
The following examples show translations from German.  

**Edit**  
- Weimar is located in the federal state of Thuringia (<syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight>).
- The *Seafarers of Catan* (<syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight>) is an expansion of the board game *The Settlers of Catan*.
- Albert the Bear (<syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight>)
- *All Quiet on the Western Front* (<syntaxhighlight lang="wikitext" inline="1"></syntaxhighlight>) is a novel by Erich Maria Remarque.

**Resulting text**  
- Weimar is located in the federal state of Thuringia .
- The *Seafarers of Catan* is an expansion of the board game *The Settlers of Catan*.
- Albert the Bear
- *All Quiet on the Western Front* is a novel by Erich Maria Remarque.

## Tracking categories
- 
- 
- 
TODO: (2024-09-22) rename these categories