Template:If even
Jump to navigation
Jump to search
0
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
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 n | Number to test | number to be tested | empty | required |
2 even | Even returns | value to be returned if the tested number is even | 1 | optional |
3 noteven | Odd returns | value to be returned if the tested number is not even | 0 | optional |
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