Template:Is century/doc

Usage
This template can be used in other templates to check or analyse an input entered in the the form  (ie. the format used in Works by century‎, Births by century‎ and Deaths by century‎).

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. There is no, so this will not work as an input.

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 century, this template will return ; unless function 3 is selected, in which case it will return 0 (zero).

Logic
This is a year and not a century.