Template:Category by year
Jump to navigation
Jump to search
This documentation is transcluded from Template:Category by year/doc.
{{TemplateBox
|1 =topic |1label = |1d-en =name of topic from category name |1d-td =name of topic from category name |1aliases =1 |1type =string |1def =Example |1stat =required
|2 =year |2label = |2d-en =year from category name |2d-td =year from category name |2aliases =2 |2type =number |2def =current year using #time:Y |2stat =required
|3 =label |3label = |3d-en =desired display text for the topic, use only if different from topic |3d-td =desired display text for the topic, use only if different from topic |3aliases =3 |3type =string |3def =topic |3stat =optional
|4 =prevcat |4label = |4d-en =category name to link to for previous year, use only to override automatic calculation |4d-td =category name to link to for previous year, use only to override automatic calculation |4aliases =4 |4type =string |4def = |4stat =optional
|5 =nextcat |5label = |5d-en =category name to link to for next year, use only to override automatic calculation |5d-td =category name to link to for next year, use only to override automatic calculation |5aliases =5 |5type =string |5def = |5stat =optional
|6 =prevlabel |6label = |6d-en =desired text to display for previous year, use only if prevcat is used and different |6d-td =desired text to display for previous year, use only if prevcat is used and different |6aliases =6 |6type =string |6def =prevcat |6stat =optional
|7 =nextlabel |7label = |7d-en =desired text to display for next year, use only if nextcat is used and different |7d-td =desired text to display for next year, use only if nextcat is used and different |7aliases =7 |7type =string |7def =nextcat |7stat =optional
|name =
Usage
[edit]- Specific example
{{Category by year |Katherine Maher |2016}}
results in:
Katherine Maher by year |
---|
- Custom content for the previous category
{{Category by year |Bernie Sanders |1991 |prevcat=Bernie Sanders before 1991 |prevlabel=before 1991}}
results in:
Bernie Sanders by year |
---|
|
- Custom content for the next category
{{Category by year |Bernie Sanders |1991 |nextcat=Bernie Sanders after 1991 |nextlabel=after 1991}}
results in:
Bernie Sanders by year |
---|
|