Template:If

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

Note: this is now built-in to MediaWiki as a Parser function. For performance reasons, the built-in parser function #if is preferred

Usage

Tests whether a value is defined.

{{if|{{{Value|}}}
 |(Text to display if value is defined)
 |(Text to display otherwise)
}}

OR

{{if|{{{Value|}}}
 |then=(Text to display if value is defined)
 |else=(Text to display otherwise)
}}

The third argument is optional.