Template:All-of/doc
Documentation
This template checks whether all of a set of parameters have defined, true values↗ (values containing at least one non-whitespace character), in which case it returns the single character "1" (a true value); otherwise, it returns a null/empty value (false). Of course, this is really only useful inside of an {{#if:}} parser-function call (for help, see the previous link), and so should only be used inside of other templates, not directly in articles.
This template is necessary because it is much more difficult (i.e., requires more typing) to check for the truth of all of a set of parameters than to check for any of them (for which, just chain them together — if any are true, the final value will be true).
Currently, up to 5 (positional) parameters are supported, with no named parameters (as that introduces possibly unexpected behavior with respect to whitespace).
Usage
{{all-of|param1|param2|…}}
Examples
{{all-of}}⇒{{all-of|}}⇒{{all-of|1=}}⇒{{all-of|1|2|3}}⇒ 1{{all-of|1|2|3|}}⇒{{all-of|1||2||3}}⇒{{all-of|1| |2| |3}}⇒{{all-of|1|2|3|4|5}}⇒ 1{{all-of|1|2|3|4|5| }}⇒ 1