Template:Nth-century fooers from Northern Ireland/sandbox
This is the template sandbox page for Template:Nth-century fooers from Northern Ireland (diff). |
This template should not be substituted. |
A category header template to create by-century categories for people by occupation from Northern Ireland, e.g. Category:20th-century writers from Northern Ireland.
This template is the only thing required to create such categories.
Usage
[edit]The template parses the category title to extract both the century and the occupation. So in simple cases, no parameters are required.
- Example 1
- On Category:20th-century writers from Northern Ireland
- {{Nth-century fooers from Northern Ireland}}
Usage with a parent occupation
[edit]Many occupations are subsets of another occupation, e.g. poets are a subset of writers, so use the parameter |Supercategory=
- Example 2
- On Category:20th-century poets from Northern Ireland
- {{Nth-century fooers from Northern Ireland |Supercategory=Writers}}
- Example 3
- On Category:20th-century physicists from Northern Ireland
- {{Nth-century fooers from Northern Ireland |Supercategory=Scientists}}
Usage with two parent occupations
[edit]In some rarer cases, an occupation is a subset of two other occupations, e.g. biochemists is a subset of both biologists and chemists
- Example 4
- On Category:20th-century biochemists from Northern Ireland
- {{Nth-century fooers from Northern Ireland |Supercategory=Biologists |Supercategory2=Chemists}}
Occupations where the first letter remains capitalised
[edit]- Example 5
- On Category:20th-century DJs from Northern Ireland
- {{Fooers from Northern Ireland |Professionkeepcaps = yes | Supercategory =Musicians }}
(TheProfessionkeepcaps= yes
is added because "DJs" needs to retain it capitalisation in all contexts)
Gendered categories
[edit]The template understands gendered categories: "men fooers", "male fooers", "women Fooers", "female fooers".
When applied to a gendered category, it makes the appropriate adjustments to the parent categories, and adds a link to the sibling category for the other gender (if it exists). This is actually one of its most helpful uses, because gendered by-century categories for Northern Ireland occupations have five parent categories. Manually-built categories rarely get them all right.
However, it doesn't work for "actresses" categories. Don't use it on actress categories.
Substitition
[edit]This template should not be substituted. Doing so makes a hideous mess,
Tracking
[edit]- Category:Template:Nth-century fooers from Northern Ireland with Supercategory and Supercategory2 (2)