تبديل القائمة
Toggle preferences menu
تبديل القائمة الشخصية
غير مسجل للدخول
سيكون عنوان الآيبي الخاص بك مرئيًا للعامة إذا قمت بإجراء أي تعديلات.

قالب:P-1/شرح

من أرابيكا، الموسوعة العربية الحرة
المزيد من اللغات

هذه هي النسخة الحالية من هذه الصفحة، وقام بتعديلها عبد العزيز (نقاش | مساهمات) في 21:47، 18 يونيو 2020 (أنشأ الصفحة ب'The module returns one value from its list of unnamed parameters. The named parameter {{وسيط قالب|idx}} is the index of the parameter that is to be returned. N...'). العنوان الحالي (URL) هو وصلة دائمة لهذه النسخة.

(فرق) → نسخة أقدم | نسخة حالية (فرق) | نسخة أحدث ← (فرق)

The module returns one value from its list of unnamed parameters.

The named parameter |idx= is the index of the parameter that is to be returned.

Negative indices count backward from the end of the list.

A wrapper template may be used to simplify usage.

أمثلة

  • {{#invoke:Pn |getVal | idx=1}} ينتج ←
  • {{#invoke:Pn |getVal | idx= | a | b | c | d | e | f }} ينتج ← a
  • {{#invoke:Pn |getVal | idx=0 | a | b | c | d | e | f }} ينتج ←
  • {{#invoke:Pn |getVal | idx=1 | a | b | c | d | e | f }} ينتج ← a
  • {{#invoke:Pn |getVal | idx=2 | a | b | c | d | e | f }} ينتج ← b
  • {{#invoke:Pn |getVal | idx=-1 | a | b | c | d | e | f }} ينتج ← f
  • {{#invoke:Pn |getVal | idx=99 | a | b | c | d | e | f }} ينتج ←

Using a wrapper template, {{P-1}}:

  • {{p-1 | a | b | c | d | e | f }} ينتج ← f
  • {{wdib|ps=1|P8011|qid=Q84055514}} ينتج ←
  • {{wdib|ps=1|P8011|qid=Q84055514|list=p-1}} ينتج ←