แม่แบบ:If all
This helper template performs a logical and on n parameters where n is between 1 and 10. It is intended to be used in other templates.
การใช้งาน
แก้
{{if all|1|2|3|4|5|6|7|8|9|10 | n = 10 | then = All there! | else = Something is missing!? }} → All there!
{{if all|1|2|3 | n = 3 | then = All there! | else = Something is missing!? }} → All there!
{{if all|1|2|3 | n = 2 | then = All there! | else = Something is missing!? }} → All there!
{{if all| |2|3 | n = 2 | then = All there! | else = Something is missing!? }} → Something is missing!?
{{if all|1|2| | n = 2 | then = All there! | else = Something is missing!? }} → All there!
{{if all| | n = 1 | then = All there! | else = Something is missing!? }} → Something is missing!?
{{if all | n = 1 | then = All there! | else = Something is missing!? }} → Something is missing!?
|
{{if all|1|2|3|4|5|6|7|8| |10 | n = 10 | then = All there! | else = Something is missing!? }} → Something is missing!?
{{if all| |2|3 | n = 3 | then = All there! | else = Something is missing!? }} → Something is missing!?
{{if all|1|2|3 | n = 4 | then = All there! | else = Something is missing!? }} → Something is missing!?
{{if all| |2|3 | n = 4 | then = All there! | else = Something is missing!? }} → Something is missing!?
{{if all|1|2| | n = 4 | then = All there! | else = Something is missing!? }} → Something is missing!?
{{if all| | n = 0 | then = All there! | else = Something is missing!? }} →
{{if all | n = 0 | then = All there! | else = Something is missing!? }} →
|
{{if all|1|2|3|4|5|6|7| | |10 | n = 10 | then = All there! | else = Something is missing!? }} → Something is missing!?
{{if all| | |3 | n = 3 | then = All there! | else = Something is missing!? }} → Something is missing!?
|
{{if all| | | | | | | | | |10 | n = 10 | then = All there! | else = Something is missing!? }} → Something is missing!?
{{if all| | | | n = 3 | then = All there! | else = Something is missing!? }} → Something is missing!? |
ดูเพิ่ม
แก้- {{If all}}
- {{If both}}
- {{If either}}
- {{If empty}}
- {{Missing param}}
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:If all/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |