Template:Lang-ar

From WikiAlpha
Jump to: navigation, search
The below content is licensed according to Creative Commons Attribution-ShareAlike License contrary to the public domain logo at the foot of the page. It originally appeared on http://en.wikipedia.org. The original article might still be accessible here. You may be able to find a list of the article's previous contributors on the talk page.
Template:Language with name and transliteration
[edit] [purge] Template documentation

Usage

Template {{lang-ar}} indicates to readers the original form of a term or phrase in Arabic. The term or phrase is the only mandatory parameter. The text is formatted according to recommendations in wikipedia:Wikipedia:Manual of Style/Text formatting#Foreign terms (italics for Latin-script languages, regular for others).

The parameter |links=no prevents the language name from being linked.

The parameter |lit= enables a literal translation to be given.

Syntax

{{lang-ar
|Arabic text – using Arabic. (mandatory)
|links=value – valid values: yes to have the language name linked (default) and no to prevent the language name from being linked. (optional)
|lit=string – valid strings are English phrases of Arabic. (optional)
|translit=string – valid strings are transliterations (with the Latin script) of Arabic text. (optional)
}}

Examples

Code Result
{{lang-ar|عمّون}} Template:Language with name and transliteration
{{lang-ar|عمّون|ʻAmmūn}} Template:Language with name and transliteration
{{lang-ar|الصديق|Aṣ-Ṣaddīq|lit=The Truthful}} Template:Language with name and transliteration
{{lang-ar|Arabic|transliteration|lit=literal|links=no}} Template:Language with name and transliteration

See also

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Lang-ar

<templatedata> { "params": { "1": { "label": "Text", "description": "The foreign 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" }, "lit": { "label": "Literal translation" }, "translit": { "label": "Transliteration", "description": "A Latin alphabet respelling of Arabic text", "type": "string" } }, "description": "Insert Arabic text. Indicates to readers the original form of a term or phrase in Arabic." } </templatedata>