موضيل:If both

من ويكيپيديا
شرح د لقالب[شوف] [عدل] [تاريخ] [تحديت]
موضيل ؤلا شرح د لموضيل مامطرجمش. عافاك عاون ف طّرجامة ديالو.



This helper template is designed to be used in other templates. It can help editors create templates that or self documenting.

تخدام[بدل لكود]

If a and b then x.

If a nor b then y.

If a or b then y.

It can be used to replace the construct: {{#if: a | {{#if: b | x | y}}

أمتيلا[بدل لكود]

{{If both| a | b | x}} → x

{{If both| a | | x | y}} → y

{{If both| | b | x | y}} → y

شوف تا[بدل لكود]