Template:If even

0

Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:If even/doc.

tests a number to determine if it is even and returns a value based on whether it is or is not an even number

Usage


{{If even |1= |2= |3= }}

Template parameters

ParameterDescriptionDefaultStatus
1
n
Number to testnumber to be testedemptyrequired
2
even
Even returnsvalue to be returned if the tested number is even1optional
3
noteven
Odd returnsvalue to be returned if the tested number is not even0optional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Examples

Category:Templates using an unknown approach for internationalisation
Category:Function templates#If%20even
Category:Function templates Category:Templates using an unknown approach for internationalisation