Difference between revisions of "Template:IRegion"

From eRepublik Official Wiki
Jump to: navigation, search
m (small corrections)
(altname added)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#if: {{{visitors|}}}||{{Update region}}}}
 
{{IRegion/{{TemplateLang|IRegion}}|
 
{{IRegion/{{TemplateLang|IRegion}}|
 
   name={{{name|}}} |
 
   name={{{name|}}} |
 +
  altname1={{{altname1|}}} |
 +
  altname2={{{altname2|}}} |
 +
  altname3={{{altname3|}}} |
 
   link={{{link|}}}|
 
   link={{{link|}}}|
 
   country={{{country|}}}|
 
   country={{{country|}}}|
Line 9: Line 12:
 
   coatofarms={{{coatofarms|}}}|
 
   coatofarms={{{coatofarms|}}}|
 
   map={{{map|}}}|
 
   map={{{map|}}}|
 
  <!-- Society --> |
 
 
   capital={{{capital|}}}|
 
   capital={{{capital|}}}|
   population={{{population|}}}|
+
   residents={{{residents|}}}|
 +
  visitors={{{visitors|}}}|
 
   language={{{language|}}}|
 
   language={{{language|}}}|
   hospital_quality={{{hospital_quality|}}}|
+
   movingzone={{{movingzone|}}}|
   defense_system_quality={{{defense_system_quality|}}}|  
+
   last update={{{last update|}}}|
 
+
   resource1={{{resource1|}}}|
   resource={{{resource|}}}|
+
  resource2={{{resource2|}}}|
}}
+
   resource3={{{resource3|}}}|
</includeonly>
+
   resource4={{{resource4|}}}|
 
+
}}[[Category:{{SUBPAGENAME}}]]</includeonly><noinclude>{{LangMenu|Template:IRegion}}{{Documentation}}[[Category:Main Templates|Region]]</noinclude>
<noinclude>
+
{{LangMenu|Template:IRegion}}
+
{{iRegion|
+
   name= Anhui|
+
  link= Anhui|
+
   country= Pakistan|
+
  number= Anhui| <!-- replace spaces with hyphens -->
+
  flag= Flag-Pakistan.jpg|
+
  coatofarms= Coat-Pakistan.jpg|
+
  country_map= PakistanMap.gif|
+
  capital= Hefei|
+
  population= 1|
+
  language= English|
+
  hospital_quality= 3|
+
  defense_system_quality= 0|
+
  resource=Fish|
+
}}
+
<pre>
+
{{iRegion|
+
  name= |
+
  link=| <!-- You have to add it if you put a region name in your language! -->
+
  country= |
+
  transcountry=|
+
  number= |
+
  flag= |
+
  coatofarms= |
+
  map= |
+
 
+
  <!-- Society --> |
+
  capital= |
+
  population= |
+
  language= |
+
  hospital_quality= 0| <!-- Only change this value if required. DO NOT REMOVE! -->
+
  defense_system_quality= 0|
+
 
+
  <!-- Productivity --> |
+
  resource=| <!-- Needed only if the recource doesn't work without. -->
+
}}
+
</pre>
+
 
+
==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" category.
+
**'''Flag''' - this is the flag of the country that controls the region
+
**'''Coat of Arms''' - Use this place for the coat of arms of the country, the coat of arms of the region, or the flag of the region. 
+
**'''Map''' - If you have a map, enter it in the field and remove the arrows.  If you do not, leave the arrows
+
**'''Country''' - Country name in English
+
**'''Transcountry''' - Country name in your language
+
**'''Link''' - Must have. Won't create link without.
+
 
+
==Conquered Regions==
+
There are a few things different when the region has been conquered
+
*'''Flag''' - add the flag of the country that controls the region
+
*'''Coat of Arms''' - add the flag of the original country
+
 
+
For example, Pakistan conquered China and the region of Shanghai.  Place the flag of Pakistan in the Flag field and the flag of China in the coat of arms field.
+
 
+
</noinclude>
+

Latest revision as of 14:03, 12 March 2020

Languages: 
EnglishIcon-English.png
ShqipIcon-Albania.png
HrvatskiIcon-Croatia.png
SuomiIcon-Finland.png
FrançaisIcon-France.png
ΕλληνικάIcon-Greece.png
ItalianoIcon-Italy.png
한글Icon-South Korea.png
PolskiIcon-Poland.png
PortuguêsIcon-Portugal.png
Portugues BrasileiroIcon-Brazil.png
RomânăIcon-Romania.png
РусскийIcon-Russia.png
СрпскиIcon-Serbia.png
EspañolIcon-Spain.png
TürkçeIcon-Turkey.png

[edit] [purge]

Documentation


Mazuria

Icon-Poland.png {{{transcountry}}}

Flag of the owner  Coat of Arms of Mazuria
Map of Mazuria
Society
Capital Olsztyn
Residents 382
Visitors 179
Language Polish
Moving Zone A3
Productivity
Resources Icon - Neodymium.png Icon - Wolfram.png


{{iRegion
  |name = 
  |link = <!-- You have to add it if you put a region name in your language! -->
  |country = 
  |transcountry = 
  |number = 
  |coatofarms = 
  |map = 

  <!-- Society --> |
  |capital = 
  |residents = 
  |visitors = 
  |language = 
  |movingzone = 
  |lastupdate = 

  <!-- Productivity --> |
  |resource1 = 
  |resource2 = 
  |resource3 = 
  |resource4 = 
}}

Notes

  • If a value is not known, do not enter a placeholder value (n/a, none, ..., etc.). This might create a strange link.
  • This template automatically places the region into a "Region of country" category.
    • Name - Necessary. Won't create a link without.
    • Link - Necessary, in English, only if you add region's Name in your language.
    • Country - Name in English of the original country. Controls the flag at the top and the link of transcountry.
    • Transcountry - Country name in your language. Is displayed next to the flag.
    • Coat of Arms - Use this place for the coat of arms of the country, the coat of arms of the region, or the flag of the region.
    • Map - Map of the region.

Translation

For the translation of this template in your region, create a template IRegion/yourlanguage, copy paste all of the code below, and translate the Istrings by replacing the English words after = (e.g. iCapital=Capital, would stand as iCapital=Glavni grad in Croatian language)

<noinclude>{{LangMenu|Template:IRegion}}[[Category:Translated Templates]]</noinclude>{{IRegion/Core|
  name={{{name|}}} |
  link={{{link|}}}|
  altname1={{{altname1|}}} |
  altname2={{{altname2|}}} |
  altname3={{{altname3|}}} |
  country={{{country|}}}|
  transcountry={{{transcountry|}}}|
  number={{{number|}}}|
  flag={{{flag|}}}|
  coatofarms={{{coatofarms|}}}|
  map={{{map|}}}|

  capital={{{capital|}}}|
  residents={{{residents|}}}|
  visitors={{{visitors|}}}|
  language={{{language|}}}|
  movingzone={{{movingzone|}}}|
  lastupdate={{{lastupdate|}}}|

  resource1={{{resource1|}}}|
  resource2={{{resource2|}}}|
  resource3={{{resource3|}}}|
  resource4={{{resource4|}}}|

<!-- TRANSLATION -->
iMapOf=Map of|
iCoat=Coat of Arms of|* <!-- In some languages easier to translate as: Coat of Region -->
iFlag=Flag of the owner|
iSociety=Society|
iCapital=Capital|
iHistorical capital of=Historical capital of|
iResidents=Residents|
iVisitors=Visitors|
iLanguage=Language|
iMovingZone=Moving Zone|
iLast update=Last update|
iProductivity=Productivity|
iResources=Resources|
iResource=Resource|
iNone=None|