Template:Is year/doc

Usage
This template can be used in other templates to check or analyse a year, whether Common Era (CE) or Before Common Era (BCE).

The template can be used without named parameters as well. The most basic usage is:

Input
The input must be in the form of  or. The maximum value is  and the minimum value is. As there is no year 0 (zero), the input 0 is inappropriate.

Function
The function must be one of the numbers in this table. This parameter is optional. If not set, function 0 is the default.

If the input is not a recognised year, this template will return ; unless function 3 or function 4 is selected, in which case it will return 0 (zero).

Logic
Note that an "s" has been added to this input. This is a decade and not a year.