Template: Ifdef
(Add an ifdef implementation to be reused in other templates.) |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 10: | Line 10: | ||
</nowiki> | </nowiki> | ||
| − | TODO: | + | TODO: |
| + | * 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 09: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.