Difference between revisions of "Template:Lang-ar"

From blackwiki
Jump to navigation Jump to search
imported>SMcCandlish
(Don't imply that |lit= should be included in most cases; it's for when the literal gloss and the idiomatic usage differ.)
imported>Trappist the monk
Line 1: Line 1:
{{Language with name and transliteration|ar|Arabic|{{{1}}}|translit={{{translit<includeonly>|{{{2|}}}</includeonly>}}}|lit={{{lit|}}}|links={{{links<includeonly>|</includeonly>yes}}}|rtl=yes}}&lrm;<noinclude>
+
<includeonly>{{#invoke:lang|lang_xx
 +
|code=ar
 +
|italic=no
 +
|rtl=yes
 +
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 14:40, 14 November 2017

Template documentation[view] [edit] [history] [purge]

Usage

Lua error in Module:Lang/documentor_tool at line 43: invalid value (nil) at index 3 in table for 'concat'. 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: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)
}}
Code Result
{{lang-ar|عمّون}} Script error: The function "lang_xx" does not exist.
{{lang-ar|عمّون|ʻAmmūn}} Script error: The function "lang_xx" does not exist.
{{lang-ar|الصديق|Aṣ-Ṣiddīq|lit=The Truthful}} Script error: The function "lang_xx" does not exist.
{{lang-ar|عربى|ʿarabī|lit=Arabic|links=no}} Script error: The function "lang_xx" does not exist.
{{lang-ar|ARABIC|TRANSLITERATION|lit=LITERAL|links=no}} Script error: The function "lang_xx" does not exist.

See also

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Lang-ar

Insert Arabic text. Indicates to readers the original form of a term or phrase in Arabic.

Template parameters

ParameterDescriptionTypeStatus
Text1

The foreign text to display.

Stringrequired
Display linklinks

Set to no to disable the link to the article's language.

Booleanoptional
Literal translationlit

no description

Unknownoptional
Transliterationtranslit

A Latin alphabet respelling of Arabic text

Stringoptional