Template:Ifparadef

From The World of Seikai
Jump to navigation Jump to search


Usage[edit source]

An alternative to using this meta-template is to hardcode this functionality in your template. Here are code for the standard and the extended functionality:

{{#ifeq: {{{parameter_name|¬}}} | ¬
| Not defined.
| Defined. (Empty or has data.)
}}

{{#switch: {{{parameter_name|¬}}}
| ¬ = Not defined.
|   = Defined, empty.
| #default = Defined, not empty.
}}