Template:Plays by year
Plays published or performed in the 1st century.
1st millennium plays: |
This template uses Lua: |
This template uses TemplateStyles: |
Usage
[edit]For editors
[edit]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
Example
Example
20th century:
{{births by year |century = 19 |decade = |year = }}
Authors who were born in the 20th century.
2nd millennium births: |
Example
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
Example
First century:
{{births by year |century = 0 |decade = |year = }}
Authors who were born in the 1st century.
1st millennium births: |
Example
For coders
[edit]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
[edit]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).