Template:If all/doc

From USApedia
< Template:If all
Revision as of 23:13, 27 October 2023 by 2600:1700:a2a0:fb50:dd1d:745c:e516:268e (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Usage

Template:Col-4
{{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!


Other examples
{{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!?


Template:Col-4

{{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!?
}}


Template:Col-4

{{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!?


Template:Col-4

{{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!?

See also