Template:Occupation by nationality and century category header/nationality: Difference between revisions
Appearance
Content deleted Content added
factored function to solve cross classified siblings |
added Gibraltarian |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{Title demonym}}<!-- |
<includeonly>{{#switch: {{Title demonym}}<!-- |
||
# Dynamic category assignment for British demonyms |
# Dynamic category assignment for British demonyms |
||
-->| Scottish | Welsh | English | Manx =<!-- |
-->| Scottish | Welsh | English | Manx | Gibraltarian =<!-- |
||
⚫ | |||
--> |
|||
⚫ | |||
⚫ | |||
{{Occupation by nationality and century category header/nationality/ |
{{Occupation by nationality and century category header/nationality/core|Occupation={{{Occupation}}}|nondiffdenom_noun={{{nondiffdenom_noun}}}}} |
||
⚫ | |||
}}|<!--# Dynamic category assignment for Puerto Rican demonyms |
}}|<!--# Dynamic category assignment for Puerto Rican demonyms |
||
--> Puerto Rican =<!-- |
--> Puerto Rican = {{#switch: {{Title century}}| 21|20 =<!-- |
||
-->{{#ifexist:Category:{{Century name from decade or year|{{Title century}}00|dash}} {{{Occupation}}} from insular areas of the United States|<!-- |
-->{{#ifexist:Category:{{Century name from decade or year|{{Title century}}00|dash}} {{{Occupation}}} from insular areas of the United States|<!-- |
||
-->[[Category:{{Resolve category redirect|{{Century name from decade or year|{{Title century}}00|dash}} {{{Occupation}}} from insular areas of the United States}}|{{Title demonym}}]] |
-->[[Category:{{Resolve category redirect|{{Century name from decade or year|{{Title century}}00|dash}} {{{Occupation}}} from insular areas of the United States}}|{{Title demonym}}]] |
||
{{#ifexist: Category:{{Century name from decade or year|{{Title century}}00|dash}} {{Title demonym}} |
{{#ifexist: Category:{{Century name from decade or year|{{Title century}}00|dash}} {{Title demonym}} {{{nondiffdenom_noun}}} by occupation <!-- page title to check if exists --><!-- |
||
-->|[[Category:{{Resolve category redirect|{{Century name from decade or year|{{Title century}}00|dash}} {{Title demonym}} |
-->|[[Category:{{Resolve category redirect|{{Century name from decade or year|{{Title century}}00|dash}} {{Title demonym}} {{{nondiffdenom_noun}}} by occupation}}|{{{Occupation}}}]]<!-- value if does exist |
||
-->|[[Category:{{Resolve category redirect|{{Century name from decade or year|{{Title century}}00|dash}} {{Title demonym}} |
-->|{{#ifexist: Category:{{Century name from decade or year|{{Title century}}00|dash}} {{Title demonym}} {{{nondiffdenom_noun}}}| [[Category:{{Resolve category redirect|{{Century name from decade or year|{{Title century}}00|dash}} {{Title demonym}} {{{nondiffdenom_noun}}}}}|{{{Occupation}}}]]}} }} |
||
|<!-- |
|<!-- |
||
-->{{Occupation by nationality and century category header/nationality/ |
-->{{Occupation by nationality and century category header/nationality/parentnationality|parentnationality=American|Occupation={{{Occupation}}}|nondiffdenom_noun={{{nondiffdenom_noun}}}|ParentOccupation={{{ParentOccupation}}}}} |
||
⚫ | |||
{{Occupation by nationality and century category header/nationality/core|Occupation={{{Occupation}}}|nondiffdenom_noun={{{nondiffdenom_noun}}}}} |
|||
}}<!-- |
}}<!-- |
||
--> <!-- value if doesn't exist -->|<!-- |
--> <!-- value if doesn't exist -->|<!-- |
||
Line 30: | Line 31: | ||
if russian empire-->{{#switch: {{Title century}}| 19| 18 = |
if russian empire-->{{#switch: {{Title century}}| 19| 18 = |
||
{{#ifexist:Category:{{{Occupation}}} from the Russian Empire| |
{{#ifexist:Category:{{{Occupation}}} from the Russian Empire| |
||
[[Category:{{{Occupation}}} from the Russian Empire| ]]}}}}<!-- |
[[Category:{{Resolve category redirect|{{{Occupation}}} from the Russian Empire}}| ]]}}}}<!-- |
||
-->|<!-- |
-->|<!-- |
||
-->Dutch=<!-- |
-->Dutch=<!-- |
||
if Dutch Republic-->{{#switch: {{Title century}}| 16|17| 18 = |
if Dutch Republic-->{{#switch: {{Title century}}| 16|17| 18 = |
||
{{#ifexist:Category:{{{Occupation}}} from the Dutch Republic| |
{{#ifexist:Category:{{{Occupation}}} from the Dutch Republic| |
||
[[Category:{{{Occupation}}} from the Dutch Republic| ]]}}}}<!-- |
[[Category:{{Resolve category redirect|{{{Occupation}}} from the Dutch Republic}}| ]]}}}}<!-- |
||
-->|<!-- |
-->|<!-- |
||
-->Zimbabwean=<!-- |
-->Zimbabwean=<!-- |
||
Line 46: | Line 47: | ||
-->[[Category:{{Century name from decade or year|{{Title century}}00|dash}} British {{{Occupation}}}| {{Title demonym}}]]| |
-->[[Category:{{Century name from decade or year|{{Title century}}00|dash}} British {{{Occupation}}}| {{Title demonym}}]]| |
||
}}}}|<!-- |
}}}}|<!-- |
||
--> |
-->Slovak=<!-- |
||
see |
see Slovak if 20th century-->{{#ifeq: {{Title century}}| 20 | |
||
{{#ifexist:Category:Czechoslovak {{{Occupation}}}| |
{{#ifexist:Category:Czechoslovak {{{Occupation}}}| |
||
{{Category see also|Czechoslovak {{{Occupation}}}}}}}|}} |
{{Category see also|Czechoslovak {{{Occupation}}}}}}}|}} |
||
⚫ | |||
⚫ | |||
-->Czech=<!-- |
|||
see Czech if 20th century-->{{#switch: {{Title century}}| 20 = |
|||
{{#ifexist:Category:Czechoslovak {{{Occupation}}}| |
|||
{{Category see also|Czechoslovak {{{Occupation}}}}}}} |
|||
| 19 = |
|||
{{#ifexist:Category:18th-century {{{Occupation}}} from Bohemia| |
|||
{{category pair|18th-century {{{Occupation}}} from Bohemia}}}} |
|||
⚫ | |||
<!-- |
<!-- |
||
-->|<!-- |
-->|<!-- |
||
Line 55: | Line 66: | ||
see yugoif 20th century-->{{#ifeq: {{Title century}}| 20 | |
see yugoif 20th century-->{{#ifeq: {{Title century}}| 20 | |
||
{{#ifexist:Category:Yugoslav {{{Occupation}}}| |
{{#ifexist:Category:Yugoslav {{{Occupation}}}| |
||
{{Category see also|Yugoslav {{{Occupation}}}}}}}|}} |
{{Category see also|Yugoslav {{{Occupation}}}}}}}|}}<!-- |
||
⚫ | |||
-->|<!-- |
-->|<!-- |
||
-->Turkish=<!-- |
-->Turkish=<!-- |
||
Line 67: | Line 77: | ||
{{#ifexist:Category:{{Century name from decade or year|{{Title century}}00|dash}} Chinese {{{Occupation}}} |<!-- |
{{#ifexist:Category:{{Century name from decade or year|{{Title century}}00|dash}} Chinese {{{Occupation}}} |<!-- |
||
-->[[Category:{{Century name from decade or year|{{Title century}}00|dash}} Chinese {{{Occupation}}}| {{Title demonym}}]]| |
-->[[Category:{{Century name from decade or year|{{Title century}}00|dash}} Chinese {{{Occupation}}}| {{Title demonym}}]]| |
||
}} |
}}}}<!-- |
||
⚫ | |||
⚫ | |||
-->|<!-- |
-->|<!-- |
||
Add Korean bonus |
Add NS Korean bonus |
||
--> North Korean|South Korean = |
--> North Korean|South Korean = |
||
{{#ifexist:Category:{{Century name from decade or year|{{Title century}}00|dash}} Korean {{{Occupation}}} |<!-- |
{{#ifexist:Category:{{Century name from decade or year|{{Title century}}00|dash}} Korean {{{Occupation}}} |<!-- |
||
-->[[Category:{{Century name from decade or year|{{Title century}}00|dash}} Korean {{{Occupation}}}| {{Title demonym}}]]| |
-->[[Category:{{Century name from decade or year|{{Title century}}00|dash}} Korean {{{Occupation}}}| {{Title demonym}}]]| |
||
}} |
}}|<!-- |
||
Add Korean bonus |
|||
--> Korean = |
|||
{{Korean biographical category message|{{{Occupation}}}}} |
|||
}}<!--Basic --> |
}}<!--Basic --> |
||
{{Occupation by nationality and century category header/nationality/core|Occupation={{{Occupation}}}}} |
{{Occupation by nationality and century category header/nationality/core|Occupation={{{Occupation}}}|nondiffdenom_noun={{{nondiffdenom_noun}}}}} |
||
⚫ | |||
⚫ | |||
⚫ |