Template:Fooers from Boo and Template:Fooers from Boo/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
resolve category redirect for such cases as Category:Actors by medium by nationality -> Category:Actors by medium and nationality |
same again for parent category |
||
Line 1: | Line 1: | ||
{| class="toccolours" style="margin:1em auto;" |
{| class="toccolours" style="margin:1em auto;" |
||
| style="text-align:center;" | <div>'''[[Wikipedia:Classification|Classification]]:''' [[:Category:People|People]]: [[:Category:People by occupation|By occupation]]: {{#if:{{{Supercategory|}}}|[[:Category:{{{Supercategory}}}|{{ucfirst:{{{Supercategory}}}}}]]:}} [[:Category:{{resolve category redirect|{{{Profession|}}}}}|{{{Profession}}}]]{{#ifexist:Category:{{{Profession}}} by nationality|{{COLON}} [[:Category: |
| style="text-align:center;" | <div>'''[[Wikipedia:Classification|Classification]]:''' [[:Category:People|People]]: [[:Category:People by occupation|By occupation]]: {{#if:{{{Supercategory|}}}|[[:Category:{{{Supercategory}}}|{{ucfirst:{{{Supercategory}}}}}]]:}} [[:Category:{{resolve category redirect|{{{Profession|}}}}}|{{{Profession}}}]]{{#ifexist:Category:{{{Profession}}} by nationality|{{COLON}} [[:Category:{{{Profession}}} by nationality|By nationality]]|}}: '''From {{CountryPrefixThe|{{{Country}}}}}'''<br /> |
||
''also:'' |
''also:'' [[:Category:{{{Country}}}|{{{Country}}}]]: [[:Category:People from {{CountryPrefixThe|{{{Country}}}}}|People]]: [[:Category:People from {{CountryPrefixThe|{{{Country}}}}} by occupation|By occupation]]: {{#if:{{{Supercategory|}}} |<!-- |
||
#Supercategory parameter was supplied |
#Supercategory parameter was supplied |
||
--> {{#ifexist: Category:{{{Supercategory}}} from {{CountryPrefixThe|{{{Country}}}}} |<!-- |
--> {{#ifexist: Category:{{{Supercategory}}} from {{CountryPrefixThe|{{{Country}}}}} |<!-- |
||
Line 27: | Line 27: | ||
-->| [[Category:People from {{CountryPrefixThe|{{{Country}}}}} by occupation|{{{Profession}}}]] |
-->| [[Category:People from {{CountryPrefixThe|{{{Country}}}}} by occupation|{{{Profession}}}]] |
||
}}<!-- |
}}<!-- |
||
# If there is a ParentNationality, add [[Category:ParentNationality Profession]] |
|||
--> {{#if: {{{ParentNationality|}}} | [[Category:{{resolve category redirect|{{{ParentNationality|}}} {{lcfirst:{{{Profession|}}}}}}}{{!}} {{{Nationality|}}}]] | {{#if: {{{ParentCountry|}}} | |<!-- |
|||
# There is no ParentNationality or ParentCountry parameter |
|||
# Add to "Cat:{{{Profession}}} by nationality" (if it exists), otherwise to "Cat:{{{Profession}}}" |
# Add to "Cat:{{{Profession}}} by nationality" (if it exists), otherwise to "Cat:{{{Profession}}}" |
||
# First test for existence of "Cat:{{{Profession}}} by nationality" |
# First test for existence of "Cat:{{{Profession}}} by nationality" |
||
-->{{#ifexist:Category:{{{Profession}}} by nationality <!-- |
-->{{#ifexist:Category:{{{Profession}}} by nationality <!-- |
||
# "Cat:{{{Profession}}} by nationality" exists |
# "Cat:{{{Profession}}} by nationality" exists |
||
--> |[[Category: |
--> |[[Category:{{{Profession}}} by nationality|{{{Country}}}]]<!-- |
||
# No "Cat:{{{Profession}}} by nationality", so test for existence of "Cat:{{{Profession}}}" |
# No "Cat:{{{Profession}}} by nationality", so test for existence of "Cat:{{{Profession}}}" |
||
--> | {{#ifexist:Category:{{{Profession}}} <!-- |
--> | {{#ifexist:Category:{{{Profession}}} <!-- |
||
Line 41: | Line 38: | ||
# No "Cat:{{{Profession}}}", so do nothing |
# No "Cat:{{{Profession}}}", so do nothing |
||
-->|}} |
-->|}} |
||
}} }} |
|||
}} |
}} |
||
</includeonly><noinclude> |
</includeonly><noinclude> |