Template:Is empty/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Is empty It contains usage information, categories and other content that is not part of the original template page. |
Returns true if the first parameter is assigned no value. It can be useful in de-obfuscating wiki markup. It was created to facilitate adding tracking categories.
Usage
[edit source]- Logic
- if not
x
then1
. - if
x
then <null>.
Examples
[edit source]{{#if:{{is empty| }}|empty|not empty}}
→ empty
{{#if:{{is empty|value}}|empty|not empty}}
→ not empty