Template:Ifdef
Appearance
Simple template for "if defined then do" statements with an else part without a dependency on Extension:ParserFunctions . Opposite of m:Template:Ifndef.
TemplateData
[edit]This is the TemplateData documentation for this template used by VisualEditor and other tools.
Ifdef
"IF defined THEN do"
Parameter | Description | Type | Status | |
---|---|---|---|---|
Value | 1 | no description | Content | suggested |
Result | 2 | Output when parameter 1 isn't blank. | Content | required |
See also
[edit]- Help:Extension:ParserFunctions
- m:Template:Ifdef
- m:Template:Ifndef
- m:Template:Ifwpc - overview of results and comparisons.