Template:Category by year/doc
category header to add year navigation box and categorize categories in the "Category:Topic by year" format
Usage
{{Template:Category by year |topic= |year= |label= |prevcat= |nextcat= |prevlabel= |nextlabel= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
topic 1 | name of topic from category name | Example | required | |
year 2 | year from category name | current year using #time:Y | required | |
label 3 | desired display text for the topic, use only if different from topic | topic | optional | |
prevcat 4 | category name to link to for previous year, use only to override automatic calculation | empty | optional | |
nextcat 5 | category name to link to for next year, use only to override automatic calculation | empty | optional | |
prevlabel 6 | desired text to display for previous year, use only if prevcat is used and different | prevcat | optional | |
nextlabel 7 | desired text to display for next year, use only if nextcat is used and different | nextcat | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information category header to add year navigation box and categorize categories in the "Category:''Topic'' by ''year''" format
|
Additional information
The template is intended to be used in the following namespaces: the Category namespace
The template is intended to be used by the following user groups: no user group specified
Examples
{{Template:Category by year|topic=Katherine Maher|year=2016}}
renders as:
{{Template:Category by year|topic=Bernie Sanders|year=1991|prevcat=Bernie Sanders before 1991|prevlabel=before 1991}}
renders as:
{{Template:Category by year|topic=Bernie Sanders|year=1991|nextcat=Bernie Sanders after 1991|nextlabel=after 1991}}
renders as:
See also