Last modified on 20 September 2010, at 09:16

Is empty

Revision as of 09:16, 20 September 2010 by TFOWR (Talk) (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)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view] [edit] [history] [purge] Documentation icon Template documentation

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