Difference between revisions of "Template:Is empty"
m (Unprotected Template:Is empty: Consensus at WP:ANI was to unprotect; emerging consensus at WT:HRT may yet be to re-protect some/many/all - I won't consider it wheel-warring if another admin reprotects. using TW) |
m (1 revision) |
(No difference)
|
Latest revision as of 14:36, 23 January 2013
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
- Logic
- if not x then 1.
- if x then <null>.
Examples
{{#if:{{is empty| }}|empty|not empty}} → empty
{{#if:{{is empty|value}}|empty|not empty}} → not empty
The above documentation is transcluded from Is empty/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |