Template: Ifdef
From LibrePlanet
(#ifeq doesn't seem to work) |
|||
Line 11: | Line 11: | ||
TODO: | TODO: | ||
− | * Enable the [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##ifexp | + | * Enable the [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##ifexp ParserFunctions extension] or rewrite it in another way. |
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 10:17, 8 February 2021
{{#ifeq x{{{1}}} | x | | {{{2}}} }}
<noinclue> This is a template.
Here is an example of using the template:
{{Ifdef | {{somename}} | Text if {{somename}} is defined}}
TODO:
- Enable the ParserFunctions extension or rewrite it in another way.