For coders

Note:
This template is not intended to be used directly by editors; if you are looking for documentation on a template like {{births by year}}, see For editors above. Currently, the following templates use this system:

Usage

This template is used as part of specific templates like {{deaths by year}} to generate lists of dated categories (century, decades, years). It deduces the depth from how much information is provided. The code below is standard (change values as appropriate):

century, decade, year: The date split into century, decade, and year digits.

caption: The text used as part of the category description (for example, "{caption} in the year 1986").

name: The text used in the categories (for example, [[Category:1986 {name}]]).

parentcat: The parent category that contains the current dated categories system.

era: toggles whether to add "BCE" to the category names.

Nested template

This template makes use of the nested template {{template:categories by date/list}} to generate lists of categories. This nested templates manipulates parameters in such a way as to minimize computation:

1 (prefix digits): the digits of the year, excepting the last number.

2 (suffix): text to add after the date; for example, s in 1980s works.

3 (category label): the text in the category names; for example, works in 1980 works.