Difference between revisions of "Template:If all/doc"
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| | + | * {{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]] | ||
| − | |||
| − | |||
| − | |||
</includeonly> | </includeonly> | ||
Revision as of 01:10, 13 August 2014
| This is a documentation subpage for Template:If all. It contains usage information, categories and other content that is not part of the original template page. |
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
- {{If all}}
- {{If both}}
- {{If either}}
- {{If empty}}
- {{Missing param}}