Template:If both/doc
< Template:If both
Jump to navigation
Jump to search
Revision as of 18:28, 9 February 2010 by imported>Droll (tidied up)
| 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. |
Purpose
This simple template is designed to facilitate template coding and should only be used in templates.
Function
The functionality is simple. If a and b then x else y.
I both a and b are defined then the template resolves to x.
If either a or b are undefined then the template resolves to y'.
{{if a | b | x | y}} --> x
{{if a | | x | y}} --> y
See also
- {{ifempty}}