Template:Foos (dis)established in the YYY0s category header/doc

To make a category of the form "Foos established in the YYY0s" or "Foos disestablished in the YYY0s", where YYY0s is a decade (e.g. "870s", "1970s", or "2010s", and "Foos" is a type of entity, e.g. "Companies" or "Hospitals"

e.g.

Usage

edit

{{Foos (dis)established in the YYY0s category header}}

No parameters are needed, but some optional parameters may be supplied.

How it works

edit

The template parses the page title, and derives three items from it:

  1. The type of entity
  2. The action, i.e. either "established" or "disestablished"
  3. The decade

So for example, if used on Category:Organizations established in the 1830s:

  1. type = "Organizations"
  2. action = "established"
  3. decade = 1830s

That page is categorised in three parent categories:

In some cases, this is sufficient. However, in other cases, the parent category should be a sub-category of Category:1830s establishments.

Foe example, Category:Retail companies established in the 1830s should be a sub-category of Category:Companies established in the 1830s, and per WP:SUBCAT it should not be directly in Category:1830s establishments.

In cases such as these, extra parameters are needed.

Parameters for establishment type parent categories

edit

Up to three un-named parameters may be used to specify parent types

e.g. On Category:Mass media companies established in the 1950s: {{Foos (dis)established in the YYY0s category header|Companies}}

The parameter "Companies" causes the page to be parented in Category:Companies established in the 1950s, instead of Category:1950s establishments

Redirects

edit

See also

edit