Ашаблон:Fooers from Boo/doc
Ахәҭаҷ/асекциа адырра апроцесс аԥсуа бызшәа аиҭагара ахь. Абызшәа адырра шәазҟазазар, ишәылшоит шәхы алашәырхәыр. |
Displays standardized category navigation for occupations and nationalities, required by Wikipedia:Naming conventions (categories)#Occupation.
This is a variant of the widely used Template:Fooian fooers. It is for use with the people-by-occupation categories for the small number of countries which use the format "[Profession]] from [country]", rather than the standard "[Nationality] [profession]" (e.g. this template is for "Category:Astronauts from Ruritania", whereas {{Fooian fooers}} should be used with "Category:Ruritanian astronauts")
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]]
For countries that require "the" before the country name, e.g. Category:Academics from the Ottoman Empire, this is automatically generated where needed. If this fails for any country that requires it, add the country into the list within Template:CountryPrefixThe.
Self-checking
[акод аредакциазура]The template tests for the existence of [[Category:Profession by nationality]] or [[Category:Supercategory 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)
- When the "Supercategory" parameter is not 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 1:
{{Fooers from Boo |Profession=Writers |Country=Northern Ireland}}
Another category may be added between the "nationality people by occupation" and this occupation category.
Example 2:
{{Fooers from Boo |Profession=Diarists |Supercategory=Writers |Country=Northern Ireland}}
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.
Alternatively, this template can be modified to resolve category redirects. E.g. where the supercategory is "Sportspeople by sport", this template generates Category:Sportspeople by sport from Georgia (country), but that page is now redirected to a different word order Category:Sportspeople from Georgia (country) by sport, and this template resolves the redirect, i.e. uses the target category name instead. For example, see the desired outcome at Category:Canoeists from Georgia (country).
Шәахә. иара убас
[акод аредакциазура]