Template:If all/doc

From blackwiki
< Template:If all
Revision as of 14:05, 30 July 2010 by imported>Plastikspork (→‎See also: related)
Jump to navigation Jump to search

This helper template performs a logical and on n parameters. It can test up to 10 parameters.

It is intended to be used in other templates.

Usage

{{if all |1|2|3|4|5|6|7|8|9|10
 | count = 10
 | then = All is well.
 | else = Something is missing.
}}

Yields:


{{if all |1|2|3|4|5|6|7|8| |10
 | count = 10
 | then = All is well.
 | else = Something is missing.
}}

Yields:


See also