Template:If both/doc
< Template:If both
Jump to navigation
Jump to search
Revision as of 00:32, 1 August 2010 by imported>Droll (added category)
![]() | This is a documentation subpage for Template:If both. It contains usage information, categories and other content that is not part of the original template page. |
This helper template is designed to be used in other templates. It can help editors create templates that or self documenting.
Usage
If a and b then x.
If a nor b then y.
If a or b then y.
It can be used to replace the construct: {{#if: a | {{#if: b | x | y }}
Examples
{{if both | a | b | x }} → x
{{if both | a | | x | y }} → y
{{if both | | b | x | y }} → y
See also
Category:If-then-else templates