From eRepublik Official Wiki
|
|
Line 40: |
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}}}}]]}} |
− | {{#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|}}}}}]]}}}}{{#if:{{{resource1|None}}}|[[Category:Regions with no resource]]}} | + | {{#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|}}}}}]]}}}} |
| | | |
| }} <!-- END #ifeq namespace --> | | }} <!-- END #ifeq namespace --> |
Revision as of 03:29, 23 July 2016
Usage
Sichuan
China
|
|
Society
|
Capital
|
Chengdu
|
Residents
|
77
|
Visitors
|
78
|
Language
|
Chinese
|
Moving zone
|
B4
|
|
Last update: February 4, 2018
|
{{Region
|name =
|link =
|altname1 =
|altname2 =
|altname3 =
|number =
|coatofarms =
<!-- Society -->
|capital =
|residents =
|visitors =
|language =
|movingzone =
|last update =
<!-- Productivity -->
|resource1 =
|resource2 =
|resource3 =
|resource4 =
}}
Notes
- If a value is not known, do not enter a place holder value (n/a, none, ..., etc.). This might create a strange link.
- This template automatically places the region into a "Region of country" and "Regions with resource" categories, so do not add any categories to region pages.
- Coat of Arms - Use this place for the coat of arms of the region, but if there is none then use the coat of arms of the country.
- Region map is added automatically.
Resources
- If region has multiple resources, use resource1, resource2, resource3, resource4 (as many as the region has). If region has no resource, use resource1 and leave it blank.