跳至內容

模板:Is empty

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書
文件圖示 模板文件[檢視] [編輯] [歷史] [清除快取]

概要

[編輯]

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.

參數及使用方法

[編輯]
Logic
if not x then 1.
if x then <null>.

範例

[編輯]

{{#if:{{is empty| }}|empty|not empty}} → empty

{{#if:{{is empty|value}}|empty|not empty}} → not empty