Template:Ifdef/doc
Appearance
| This is a documentation subpage for Template:Ifdef. It contains usage information, categories and other content that is not part of the original Template page. |
Simple template for "if defined then do" statements with an else part without a dependency on Extension:ParserFunctions. Opposite of m:Template:Ifndef.
TemplateData
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 |
Edit parameter translations
See also
- Help:Extension:ParserFunctions
- m:Template:Ifdef
- m:Template:Ifndef
- m:Template:Ifwpc - overview of results and comparisons.