Template:Ifndef/doc

Watchers

This template is for use in other templates. It allows a template to define a behavior that occurs only when a specified parameter is not defined.

Usage

Place the following in a template:

{{Ifndef|{{{parm|}}}|result}}}

where parm is the number or name of a template parameter and result is the desired result if the parameter doesn't have a value.

Example

{{Ifndef|{{{2|}}}|Twin of }}

is a portion of the MultBirth template, which displays the label "Twin of " if there is just one parameter (second parameter is undefined) and other labels when there are more parameters.

Source

This template is copied from https://meta.wikimedia.org/wiki/Template:Ifndef.

See also