Template:Births by year
Authors who were born in the 1st century.
1st millennium births: |
This template uses Lua: |
This template uses TemplateStyles: |
Usage
For editors
All templates using {{categories by date}} have identical usage. The output will change depending on what information you provide it:
- year categories: provide the century, decade, and year digits;
- decade categories: provide the century and decade digits;
- century categories: provide the century digit.
Examples:
Example
1985 (year):
{{births by year |century = 19 |decade = 8 |year = 5 }}
Example
1980s (decade):
{{births by year |century = 19 |decade = 8 |year = }}
Example
20th century:
{{births by year |century = 19 |decade = |year = }}
Authors who were born in the 20th century.
2nd millennium births: |
Example
50 (year):
{{births by year |century = 0 |decade = 5 |year = 0 }}
Example
1250s BCE (decade):
{{births by year |century = 12 |decade = 5 |year = |bce = true }}
Authors who were born in the 1250s BCE.
13th century BCE births: |
Example
Decade one (years 1–9):
{{births by year |century = 0 |decade = 0 |year = }}
Example
First century:
{{births by year |century = 0 |decade = |year = }}
Authors who were born in the 1st century.
1st millennium births: |
Example
2017 (year):
{{Thai law by year |century = 20 |decade = 1 |year = 7 }}
For coders
Note: {{Categories by date}} 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:
- {{births by year}}
- {{deaths by year}}
- {{works by year}}
- {{plays by year}}
- {{Thai law by year}}
Parameters
This template is used as part of specific templates 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):
{{categories by date |century = {{{century|}}} |decade = {{{decade|}}} |year = {{{year|}}} |era = {{{era|}}} |bce = {{{bce|}}} |caption = Thai law in |name = in Thai law |parent-category = Thai law by year |parent-category-display = |by-date-category = Thai law by year |supercatname = works |century-hyphen = false |supercat-century-hyphen = false }}<noinclude>{{documentation|Template:Categories by date/doc}}</noinclude>
- Pass-through parameters:
- century, decade, year: The date split into century, decade, and year digits.
- bce: set to
true
to add "BCE" to the category names. - era: set to
BCE
to add "BCE" to the category names.
- 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}]]
). - parent-category: optional; defaults to the category at the previous level of granularity (for example, the parent category for Category:1910s plays is Category:20th-century plays).
- parent-category-display: optional; defaults to the name of the parent category.
- by-date-category: optional; defaults to
[[Category:{name} by {granularity}]]
(for example, Category:1910s plays is in Category:Plays by decade). - supercatname: optional; use if there is a parent category that also categorizes by date.
- century-hyphen: optional; set to
true
if the century categories use a hyphen (for example, Category:10th-century plays). - supercat-century-hyphen: optional; set to
true
if the century categories for the parent category use a hyphen (for example, Category:10th-century plays).