Template:Is decade/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 decade‎, Births by decade‎ and Deaths by decade‎).

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. The inputs  and   are treated as separate periods (ie. the year 1-10 CE and 1-10 BCE respectively).

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

Logic
Note that the "s" has been removed from the input. This is a year and not a decade.