Template:Autocat/doc

From blackwiki
Jump to navigation Jump to search

This template is created for 2020s works and alike categories that are sorted by year, decade, century or millennium. The main purpose is to automatically add a year header bar on top of the category page and all the parent categories. It has no parameters, the usage is quite simple. In any starts with year category, adding simply Template:T should do the trick.

For Works by year or Works by date alike categories there is the Template:T template.

Usage

There is no parameters. The only thing to do is to go to a category starts with year and sorted by year, and add the Template:T code.

Usage examples

For "..." by "..." categories

For Works by year or Works by date alike categories there is the Template:T template, and has two parameters. In this type of category, after you add the Template:T template, you should specify:

Template:Parameter
one of the values: year, decade, century, millennium or period or date
Template:Parameter
the topic for the category; e.g. "works"

How it works

It explained in detail in Module:Autocat.

Data

The template has a database. E.g. for "works" type categories, there is an object in Module:Autocat/data/arts, the template uses this data to handle pretty much everything on the category page.

Data pages exist currently

List

If you wish to edit the data, you should read Module:Autocat.

All the data:

data
The sample year is 2020.
Period Year Suffix
beginnings
beginnings by period

parents: categories

see also: endings

disestablishments
disestablishments by period

parents: endings

description: This category is for organizations, places or other things abolished or disestablished {{{hide|in the}}} {{{type}}} {{{year}}}

see also: establishments

endings
endings by period

parents: categories

see also: beginnings

establishments
establishments by period

parents: beginnings

description: This category is for organizations, places or other things founded or established {{{hide|in the}}} {{{type}}} {{{year}}}

see also: disestablishments

data/people
The sample year is 2020.
Period Year Suffix
births

parents: beginnings, people

description: People born {{{hide|in the}}} {{{type}}} {{{year}}}

see also: deaths

deaths
deaths by period

parents: endings, people

description: People who died {{{hide|in the}}} {{{type}}} {{{year}}}

see also: births

people
people by period

parents: categories

see also: births, deaths

data/arts
The sample year is 2020.
Period Year Suffix
albums
albums by period

parents: in music, works

compilation albums
compilation albums by period

parents: albums

in music
music by period

parents: in the arts

in the arts
the arts by period

parents: categories

works
works by period

parents: categories, in the arts

description: Works published, created or produced {{{hide|in the}}} {{{type}}} {{{year}}}

See also