Template:Lang-ar
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. |
40px | This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
Contents
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
- {{lang}}, and its opposite, {{Language with name/for}}
- Template:Tlp, for untransliterated Arabic-language strings without preceding "Arabic:" link.
- Template:Tlp for Arabic script without specifying a language.
- {{link language}}
- {{fa icon}}
- {{Lang-ar/sandbox2}} (second sandbox)
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>
The above documentation is transcluded from Template:Lang-ar/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |