跳转到内容

模板: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