Template talk:If defined call
Documentation
Purpose
{{if defined call}}, call a template if a variable or parameter is defined (is not empty), this template will be evaluated last.
Usage
Abstract usage of the template, one variable per row. {{if defined call |VARIABLE_OR_PARAMETER_TO_TEST |TEMPLATE_TO_CALL |PARAMETER_1 |... |PARAMETER_8 }}
Example
Code | Result |
---|---|
{{if defined call|foo|show1|bar}} |
bar |
See also
History
Copied from Wikipedia: http://en.wikipedia.org/wiki/Template:If_defined_call