Template:Fooian fooers/doc
| This is a documentation subpage for Template:Fooian fooers. It contains usage information, categories and other content that is not part of the original template page. |
Displays standardized category navigation for occupations and nationalities, required by Wikipedia:Naming conventions (categories)#Occupation.
Adds a pair of standard parent categories:
- [[Category:Nationality people by occupation|Profession]]
- [[Category:Profession by nationality|Nationality]]
If the "Supercategory" parameter is used, the following categories will be generated instead:
- [[Category:Nationality people by occupation|Profession]]
- [[Category:Supercategory by nationality|Nationality]]
If the "Supercategory2" parameter is alsoused, the following categories will be generated instead:
- [[Category:Nationality people by occupation|Profession]]
- [[Category:Supercategory by nationality|Nationality]]
- [[Category:Supercategory2 by nationality|Nationality]]
Self-checking
The template tests for the existence of [[Category:Profession by nationality]] or [[Category:Supercategory by nationality]] or [[Category:Supercategory2 by nationality]], and alters its output as follows:
- If the "Supercategory" parameter is supplied, but [[Category:Supercategory by nationality]] does not exist, then [[Category:Supercategory]] will be used instead)
- If the "Supercategory" and "Supercategory2" parameters are both supplied, but neither [[Category:Supercategory by nationality]] nor [[Category:Supercategory2 by nationality]] exists, then [[Category:Supercategory]] will be used instead)
- When neither the "Supercategory" or "Supercategory2" parameters supplied, the template tests for the existence of [[Category:Profession by nationality]]. If that does not exist, then [[Category:Profession]] will be used instead)
Usage
Example from Category:American writers:
{{Fooian fooers |Profession=Writers |Nationality=American |Country=United States}}
Another category may be added between the "nationality people by occupation" and this occupation category.
Example from Category:American diarists:
{{Fooian fooers |Profession=Diarists |Supercategory=Writers |Nationality=American |Country=United States}}
In most cases, should not be substituted.
Please note that this template may need to be modified for some categories, because some nationalities are listed as "People of Foo" instead of "Fooian". In these instances, the template may be substituted and edited in place.
See also
- Template:Fooian biologist types
- Template:Fooian scientist types
- Template:Fooers from Northern Ireland