Difference between revisions of "Template:If all/doc"

From blackwiki
Jump to navigation Jump to search
imported>Hyacinth
(→‎See also: * {{tl|If both}})
imported>Sardanaphalus
m (→‎See also: template name)
Line 38: Line 38:
 
* {{tl|If both}}
 
* {{tl|If both}}
 
* {{tl|If either}}
 
* {{tl|If either}}
* {{tl|ifempty}}
+
* {{tl|If empty}}
 
* {{tl|Missing param}}
 
* {{tl|Missing param}}
  
Line 44: Line 44:
 
<!-- CATEGORIES GO HERE -->
 
<!-- CATEGORIES GO HERE -->
 
[[Category:If-then-else templates]]
 
[[Category:If-then-else templates]]
 
<!-- INTERWIKIS GO HERE -->
 
 
 
</includeonly>
 
</includeonly>

Revision as of 01:10, 13 August 2014

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

{{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|4|5|6|7|8| |10
 | n = 10
 | then = All there.
 | else = Something is missing.
}}

→ Something is missing.

See also