Difference between revisions of "Template:Region"
From eRepublik Official Wiki
m (let the flames begin) |
|||
(8 intermediate revisions by 3 users not shown) | |||
Line 23: | Line 23: | ||
{{RowV2|Population|{{{population|}}}}} | {{RowV2|Population|{{{population|}}}}} | ||
{{RowV2|Language|{{{language|}}} }} | {{RowV2|Language|{{{language|}}} }} | ||
− | {{RowV2|Moving | + | {{RowV2|Moving zone|{{{movingzone|}}} }} |
|} | |} | ||
{| style="width:225px;" | {| style="width:225px;" | ||
− | |||
− | |||
− | |||
|} | |} | ||
{| style="width:225px;" | {| style="width:225px;" | ||
− | {{HeaderV2| | + | {{HeaderV2|Productivity}} |
− | {{ | + | {{RowV2|Resource(s)|{{#if: {{{resource|}}} | [[File:Icon_-_{{{resource}}}.png|link={{{resource}}}|40px]] }} {{#if: {{{resource1|}}} | [[File:Icon_-_{{{resource1}}}.png|link={{{resource1}}}|40px]] | {{#if: {{{resource}}}||''None''}} }} {{#if: {{{resource2|}}} | [[File:Icon_-_{{{resource2}}}.png|link={{{resource2}}}|40px]] }} {{#if: {{{resource4|}}} | <br/> }} {{#if: {{{resource3|}}} | [[File:Icon_-_{{{resource3}}}.png|link={{{resource3}}}|40px]] }} {{#if: {{{resource4|}}} | [[File:Icon_-_{{{resource4}}}.png|link={{{resource4}}}|40px]] }} }} |
|} | |} | ||
Line 43: | Line 40: | ||
{{#ifeq: {{NAMESPACE}}|| | {{#ifeq: {{NAMESPACE}}|| | ||
{{#ifeq: {{Regions/Owners|{{BASEPAGENAME}}}}|FAIL||[[Category:Regions of {{Regions/Owners|{{BASEPAGENAME}}}}]]}} | {{#ifeq: {{Regions/Owners|{{BASEPAGENAME}}}}|FAIL||[[Category:Regions of {{Regions/Owners|{{BASEPAGENAME}}}}]]}} | ||
− | {{#ifeq: {{Region/SwitchRaw|{{{name|}}}}}|FAIL|[[Category:Regions with unassociated resource]]|[[Category:Regions with {{Region/SwitchRaw|{{{name|}}}}}]]}} | + | {{#if:{{{resource|}}}|[[Category:Regions with {{{resource|}}}]]|{{#ifeq: {{Region/SwitchRaw|{{{name|}}}}}|FAIL|[[Category:Regions with unassociated resource]]|[[Category:Regions with {{Region/SwitchRaw|{{{name|}}}}}]]}}}}{{#if:{{{resource1|}}}|[[Category:Regions with {{{resource1|}}}]]|{{#ifeq: {{Region/SwitchRaw|{{{name|}}}}}|FAIL|[[Category:Regions with unassociated resource]]|[[Category:Regions with {{Region/SwitchRaw|{{{name|}}}}}]]}}}}{{#if:{{{resource2|}}}|[[Category:Regions with {{{resource2|}}}]]|{{#ifeq: {{Region/SwitchRaw|{{{name|}}}}}|FAIL|[[Category:Regions with unassociated resource]]|[[Category:Regions with {{Region/SwitchRaw|{{{name|}}}}}]]}}}}{{#if:{{{resource3|}}}|[[Category:Regions with {{{resource3|}}}]]|{{#ifeq: {{Region/SwitchRaw|{{{name|}}}}}|FAIL|[[Category:Regions with unassociated resource]]|[[Category:Regions with {{Region/SwitchRaw|{{{name|}}}}}]]}}}}{{#if:{{{resource4|}}}|[[Category:Regions with {{{resource4|}}}]]|{{#ifeq: {{Region/SwitchRaw|{{{name|}}}}}|FAIL|[[Category:Regions with unassociated resource]]|[[Category:Regions with {{Region/SwitchRaw|{{{name|}}}}}]]}}}} |
+ | |||
+ | {{#ifeq: {{{no resource}}} | true | [[Category:Regions with no resource]] | }} | ||
}} <!-- END #ifeq namespace --> | }} <!-- END #ifeq namespace --> | ||
}} <!-- END #ifeq not translation --> | }} <!-- END #ifeq not translation --> | ||
}} <!-- END #if nocat --> | }} <!-- END #if nocat --> | ||
− | </includeonly> | + | </includeonly><noinclude>{{Documentation}}[[Category:Main Templates|Country]]</noinclude> |
− | + | ||
− | <noinclude> | + | |
− | {{ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | }} | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </noinclude> | + |
Revision as of 08:52, 10 March 2017
Usage
Sichuan