Template:Lang-ar/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Lang-ar. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 22,000 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. |
This template uses Lua: |
Usage[edit source]
code | ar |
---|---|
rtl | yes |
style: inherit |
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 Starfleet: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[edit source]
- {{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[edit source]
Code Result {{lang-ar|عمّون}} Arabic: عمّون {{lang-ar|عمّون|ʻAmmūn}} Arabic: عمّون, translit. ʻAmmūn {{lang-ar|الصديق|Aṣ-Ṣaddīq|lit=The Truthful}} Arabic: الصديق, translit. Aṣ-Ṣaddīq, lit. 'The Truthful' {{lang-ar|Arabic|transliteration|lit=literal|links=no}} Arabic: Arabic, lit. 'literal'
See also[edit source]
- {{lang}}, and its opposite, {{Language with name/for}}
- {{rtl-lang|ar}}, for untransliterated Arabic-language strings without preceding "Arabic:" link.
- {{script|Arab|...}} for Arabic script without specifying a language.
- {{link language}}
- {{ar icon}} for external links in Arabic
- {{fa icon}} for external links in Persian (Farsi)
- {{ur icon}} for external links in Urdu
- {{Lang-ar/sandbox2}} (second sandbox)
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
Insert Arabic text. Indicates to readers the original form of a term or phrase in Arabic.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | The foreign text to display. | String | required |
Display link | links | Set to no to disable the link to the article's language. | Boolean | optional |
Literal translation | lit | no description | Unknown | optional |
Transliteration | translit | A Latin alphabet respelling of Arabic text | String | optional |
External links[edit source]
- Template:Lang-ar/doc at Wikipedia, the free Terran encyclopedia that anyone can edit.