Difference between revisions of "Template:Lang-ar/doc"

From blackwiki
Jump to navigation Jump to search
imported>Trappist the monk
m (sortkey;)
 
(14 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{High-use|21800+}}
+
{{High-use|27541}}
 +
{{#if:{{#invoke:Lang/documentor tool|lang_xx_settings|template={{ROOTPAGENAME}}}}|{{lua|Module:lang}}}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
  
 
== Usage ==
 
== Usage ==
Template {{tlf|'''lang-ar'''|nolink=yes}} indicates to readers the original form of a term or phrase in [[Arabic language|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).
+
{{#invoke:Lang/documentor tool|lang_xx_settings|template={{ROOTPAGENAME}}}}
 +
Template {{tlf|'''lang-ar'''|nolink=yes}} 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 {{Para|links|no}} prevents the language name from being linked.
 
The parameter {{Para|links|no}} prevents the language name from being linked.
Line 18: Line 20:
 
:'''<nowiki>}}</nowiki>'''
 
:'''<nowiki>}}</nowiki>'''
  
== Examples ==
 
 
:{| class="wikitable"
 
:{| class="wikitable"
 
|-
 
|-
Line 30: Line 31:
 
| {{lang-ar|عمّون|ʻAmmūn}}
 
| {{lang-ar|عمّون|ʻAmmūn}}
 
|-
 
|-
| {{tlf|lang-ar|الصديق|Aṣ-Ṣaddīq|lit{{=}}The Truthful}}
+
| {{tlf|lang-ar|الصديق|Aṣ-Ṣiddīq|lit{{=}}The Truthful}}
| {{lang-ar|الصديق|Aṣ-Ṣaddīq|lit{{=}}The Truthful}}
+
| {{lang-ar|الصديق|Aṣ-Ṣiddīq|lit=The Truthful}}
 
|-
 
|-
| {{tlf|lang-ar|Arabic|transliteration|lit{{=}}literal|links{{=}}no}}
+
| {{tlf|lang-ar|عربى|ʿarabī|lit{{=}}Arabic|links{{=}}no}}
| {{lang-ar|Arabic|transliteration|lit=literal|links=no}}
+
| {{lang-ar|عربى|ʿarabī|lit=Arabic|links=no}}
 +
|-
 +
| {{tlf|lang-ar|ARABIC|TRANSLITERATION|lit{{=}}LITERAL|links{{=}}no}}
 +
| {{lang-ar|ARABIC|TRANSLITERATION|lit=LITERAL|links=no}}
 
|}
 
|}
  
Line 41: Line 45:
 
* {{tlp|rtl-lang|ar}}, for untransliterated Arabic-language strings without preceding "[[Arabic language|Arabic]]:" link.
 
* {{tlp|rtl-lang|ar}}, for untransliterated Arabic-language strings without preceding "[[Arabic language|Arabic]]:" link.
 
* {{tlp|script|Arab|...}} for Arabic script without specifying a language.
 
* {{tlp|script|Arab|...}} for Arabic script without specifying a language.
* {{Tl|link language}}
 
* {{Tl|fa icon}}
 
 
* {{Tl|Lang-ar/sandbox2}} (second sandbox)
 
* {{Tl|Lang-ar/sandbox2}} (second sandbox)
  
Line 73: Line 75:
 
</templatedata>
 
</templatedata>
  
<includeonly>
+
<includeonly>{{Sandbox other||
[[Category:Lang-x templates]]
+
[[Category:Lang-x templates|ar]]
 
[[Category:Afro-Asiatic multilingual support templates|{{PAGENAME}}]]
 
[[Category:Afro-Asiatic multilingual support templates|{{PAGENAME}}]]
</includeonly>
+
}}</includeonly>
<noinclude>[[Category:Documentation shared content templates]]</noinclude>
 

Latest revision as of 23:48, 30 August 2020

Usage

settings
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 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|عمّون}} Arabic: عمّون
{{lang-ar|عمّون|ʻAmmūn}} Arabic: عمّون‎, romanized: ʻAmmūn
{{lang-ar|الصديق|Aṣ-Ṣiddīq|lit=The Truthful}} Arabic: الصديق‎, romanized: Aṣ-Ṣiddīq, lit. 'The Truthful'
{{lang-ar|عربى|ʿarabī|lit=Arabic|links=no}} Arabic: عربى‎, romanized: ʿarabī, lit. 'Arabic'
{{lang-ar|ARABIC|TRANSLITERATION|lit=LITERAL|links=no}} Arabic: ARABIC‎, lit. 'LITERAL'

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