> Template:Equal    


Template Documentation: Equal

CALLABLE KEYWORDS:
Equal
equal
Equals
equals


PURPOSE:
Use in conjunction with the If template to handle conditional markup. The Equal template returns a value on matches, or null, which can then be analyzed from the If template and directed accordingly.

PARAMETERS:
{{{1}}}: First comparison parameter
{{{2}}}: Second comparison parameter


USAGE:

CODE RESULT
{{Equal|p|p}} 1
{{Equal|p|q}} <null>
{{Equal|2|2}} 1
{{Equal|1|2}} <null>
{{Equal|p|}} <null>
{{Equal||p}} <null>
{{Equal||}} 1
{{Equal|p}} <null>
{{Equal|}} <null>

Example: Is this in Template Namespace? {{If|Test={{Equal|Template|{{NAMESPACE}}}}|Then=Yes|Else=No}}

SEE ALSO:
Template:If


For help creating a documentation page, see Manual:Template Documentation