وحدة:Language/شرح

من أرابيكا، الموسوعة الحرة

هذه هي النسخة الحالية من هذه الصفحة، وقام بتعديلها عبود السكاف (نقاش | مساهمات) في 11:04، 9 يوليو 2023 (بوت: إصلاح أخطاء فحص أرابيكا من 1 إلى 104). العنوان الحالي (URL) هو وصلة دائمة لهذه النسخة.

(فرق) → نسخة أقدم | نسخة حالية (فرق) | نسخة أحدث ← (فرق)
اذهب إلى التنقل اذهب إلى البحث

الاستعمال

This module is inspired by the templates {{m}} and {{l}} and their associated modules on Wiktionary. It has a Wiktionary link function that links to the correct section of the Wiktionary entry, and applies correct language formatting and italics. The language formatting function does most of what {{رمز لغة}} does, as well as applying appropriate italicization.

It should eventually be able to generate the text in numerous templates, such as {{فرن}}. (Or even more ambitious, it could generate automatic transliteration and IPA for some languages, to be used in templates like {{lang-rus}}.)

أمثلة

* {{#invoke:language|wikt|en|language}}
* {{#invoke:language|wikt|en|language|languages}}
* {{#invoke:Language|wikt|fr|bourguignon}}
* {{#invoke:Language|wikt|la|homō}}
* {{#invoke:Language|wikt|grc|δημοκρατίᾱ}}
* {{#invoke:Language|wikt|ru|язы́к}}
* {{#invoke:Language|lang|ru|язы́к}}
* {{#invoke:Language|wikt|ar|العَرَبِيَّة}}
* {{#invoke:Language|wikt|fa|فارسی}}

Invalid codes

* {{#invoke:language|wikt|EN|language}}
* {{#invoke:language|wikt|En|language|languages}}
* {{#invoke:Language|wikt|La|homō}}
* {{#invoke:Language|wikt|Grc|δημοκρατίᾱ}}
* {{#invoke:Language|wikt|Ru|язы́к}}
* {{#invoke:Language|lang|Ru|язы́к}}
* {{#invoke:Language|wikt|Ar|العَرَبِيَّة}}
* {{#invoke:Language|wikt|Fa|فارسی}}

أخطاء

* {{#invoke:Language|wikt|en-Latin|language}}
  • language [Latin is not a valid script code.]