
![]() | القالب يستخدم في عدّة صفحة وقد تُلاحظ التغييرات على نطاق واسع، اختبرها في قالب /ملعب أو /مختبر، أو في صفحة فرعية. فكر في مناقشة التغييرات على صفحة النقاش قبل تنفيذها. |
![]() | هذا القالب يستعمل لوا: |
Template:لغة إلى أيزو takes an English-language language name (such as "Abkhazian" or "Sinhalese") and converts it into a two-letter أيزو 639 language code. This table's values are based on قائمة رموز أيزو 639-1. The template should not be transcluded directly from article namespace.
Examples
{{لغة إلى أيزو|German}}
يُرجع: de{{لغة إلى أيزو|Greek}}
يُرجع: el{{لغة إلى أيزو|Spanish}}
يُرجع: es{{لغة إلى أيزو|الألمانية}}
يُرجع: de{{لغة إلى أيزو|اليونانية}}
يُرجع: el{{لغة إلى أيزو|الإسبانية}}
يُرجع: es
Purpose
Since most users will know a language's name but not its ISO code, this template is meant to facilitate invocations of other templates such as قالب:رمز لغة. Thus, instead of recalling (or having to know) that the ISO code for German is "de" and transcluding {{Lang|de|Mädchen}}
, one can type: {{Lang|
.
{{نسخ:لغة إلى أيزو|German}}
|Mädchen}}
This also reduces the number of parameters that need to be passed to some language routines (such as those similar to قالب:رمز لغة واسمها) since the ISO language code can now be derived from the ISO language name.
See also
- {{ISO 639 name}}