Difference between revisions of "Template:Region"

From eRepublik Official Wiki
Jump to: navigation, search
m (removed update notice)
(added optional map field in case autolinking map doesn't work)
 
Line 8: Line 8:
 
| {{#if: {{{map|}}}|style="border-bottom:1px solid #C6E4F2; margin-bottom:5px; padding-bottom:5px; width:222px"}}|<center>[[File:Flag-{{#ifeq:{{Regions/Owners|{{BASEPAGENAME}}}}|FAIL|{{{country|eRepublik}}}|{{Regions/Owners|{{BASEPAGENAME}}}}}}.jpg|110px|Flag of the owner|link={{#ifeq:{{Regions/Owners|{{BASEPAGENAME}}}}|FAIL|{{{country|eRepublik}}}|{{Regions/Owners|{{BASEPAGENAME}}}}}}]]&nbsp;&nbsp;{{#if: {{{coatofarms|}}}| [[File:{{{coatofarms|}}}{{!}}60px{{!}}Coat of Arms of {{{name|unknown region}}}]]|}}</center>
 
| {{#if: {{{map|}}}|style="border-bottom:1px solid #C6E4F2; margin-bottom:5px; padding-bottom:5px; width:222px"}}|<center>[[File:Flag-{{#ifeq:{{Regions/Owners|{{BASEPAGENAME}}}}|FAIL|{{{country|eRepublik}}}|{{Regions/Owners|{{BASEPAGENAME}}}}}}.jpg|110px|Flag of the owner|link={{#ifeq:{{Regions/Owners|{{BASEPAGENAME}}}}|FAIL|{{{country|eRepublik}}}|{{Regions/Owners|{{BASEPAGENAME}}}}}}]]&nbsp;&nbsp;{{#if: {{{coatofarms|}}}| [[File:{{{coatofarms|}}}{{!}}60px{{!}}Coat of Arms of {{{name|unknown region}}}]]|}}</center>
 
|-
 
|-
|style="padding-top:5px;"{{!}}<center>{{#ifexist: File:Region-{{BASEPAGENAME}}.png | [[File:Region-{{BASEPAGENAME}}.png|220px|Map of the region]] | [[File:Region-{{{name}}}.png|220px|Map of the region]] }}</center>
+
|style="padding-top:5px;"{{!}}<center>{{#ifexist: File:Region-{{BASEPAGENAME}}.png | [[File:Region-{{BASEPAGENAME}}.png|220px|Map of the region]] | {{#ifexist: File:Region-{{{name}}}.png | [[File:Region-{{{name}}}.png|220px|Map of the region]] | [[File:{{{map}}}|220px|Map of the region]]}} }}</center>
  
 
|-
 
|-

Latest revision as of 06:43, 19 March 2019

[edit] [purge]

Documentation


Usage

Sichuan

Icon-China.png China

Flag of the owner  Coat of Arms of Sichuan
Map of the region
Society
Capital Chengdu
Residents 77
Visitors 78
Language Chinese
Moving zone B4
Productivity
Resources Icon - Deer.png Icon - Grain.png
Icon - Cattle.png Icon - Fruits.png

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.