Difference between revisions of "Template:Region"

From eRepublik Official Wiki
Jump to: navigation, search
m (test)
(Undo revision 685311 by Yamisuke (talk))
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly><div style="float:right; clear:right; opacity:1; width:250px; border:2px solid #C6E4F2; -moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;font-size:100%; background-color:#F1FAFF; margin:0px 0px 10px 10px; padding:10px 0px 5px 0px; text-align:left;">
 
<includeonly><div style="float:right; clear:right; opacity:1; width:250px; border:2px solid #C6E4F2; -moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;font-size:100%; background-color:#F1FAFF; margin:0px 0px 10px 10px; padding:10px 0px 5px 0px; text-align:left;">
<div align="center"><span class="plainlinks" style="padding:1px;  font-size:130%; font-weight:bold; text-align:center; color:#3C8FA7">[http://www.erepublik.com/en/region/{{#if: {{{link|}}}|{{{link|}}}|{{{name|}}}}} <span>{{{name|Unnamed region}}}</span>{{#if:{{{altname|}}}|<br>''{{{altname|}}}''|}}]</span>
+
<div align="center"><span class="plainlinks" style="padding:1px;  font-size:130%; font-weight:bold; text-align:center; color:#3C8FA7">[http://www.erepublik.com/en/region/{{#if: {{{link|}}}|{{{link|}}}|{{{name|}}}}} <span>{{{name|Unnamed region}}}</span>{{#if:{{{altname1|}}}|<br /><span style="font-size:12px;">''{{{altname1|}}}''</span>|}}{{#if:{{{altname2|}}}|<br /><span style="font-size:12px;">''{{{altname2|}}}''</span>|}}{{#if:{{{altname3|}}}|<br /><span style="font-size:12px;">''{{{altname3|}}}''</span>|}}]</span>
  
 
<span style="font-family:sans-serif; font-size:120%; font-weight:bold;">{{CountryLink|{{#ifeq:{{Regions/Owners|{{BASEPAGENAME}}}}|FAIL|{{{country|eRepublik}}}|{{Regions/Owners|{{BASEPAGENAME}}}}}}}}</span>
 
<span style="font-family:sans-serif; font-size:120%; font-weight:bold;">{{CountryLink|{{#ifeq:{{Regions/Owners|{{BASEPAGENAME}}}}|FAIL|{{{country|eRepublik}}}|{{Regions/Owners|{{BASEPAGENAME}}}}}}}}</span>
Line 26: Line 26:
 
|}
 
|}
 
{| style="width:225px;"
 
{| style="width:225px;"
{{HeaderV2|Military}}
 
{{RowV2|Hospitals|{{{hospital_quality|0}}} }}
 
{{RowV2|Defense Systems|{{{defense_system_quality|0}}} }}
 
 
|}
 
|}
  
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}}}}]]}}
[[Category:Regions with {{{resource|{{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|}}}}}]]}}}}
 +
 
 
}} <!-- END #ifeq namespace -->
 
}} <!-- END #ifeq namespace -->
 
}} <!-- END #ifeq not translation -->
 
}} <!-- END #ifeq not translation -->
Line 50: Line 48:
  
 
<noinclude>
 
<noinclude>
{{Region|
+
{{Region
   nocat=true|
+
   |nocat=true
   name= Anhui|
+
   |name= Anhui
   country= Pakistan|
+
   |country= China
   number= Anhui| <!-- replace spaces with hyphens -->
+
   |number= 361
   flag= Flag-Pakistan.jpg|
+
   |flag= Flag-China.jpg
   coatofarms= Coat-Pakistan.jpg|
+
   |coatofarms= Coat-China.png
   country_map= PakistanMap.gif|
+
   |map= Region-Anhui.png
   capital= Hefei|
+
   |capital= Hefei
   population= 1|
+
   |population= 20
   language= English|
+
   |language= Chinese
   movingzone=A1|
+
   |movingzone=B4
   hospital_quality= 3|
+
   |resource=Limestone
  defense_system_quality= 0|
+
  resource=Iron|
+
 
}}
 
}}
  
 
<pre>
 
<pre>
{{Region|
+
{{Region
   name= |
+
   |name=  
   link=|
+
   |link=  
   country= |
+
  |altname1=
   number= |
+
   |altname2=  
   coatofarms= |
+
  |altname3=
   map= |
+
   |country=
  <!-- Society --> |
+
  |number=  
   capital= |
+
   |coatofarms=  
   population= |
+
   |map=  
   language= |
+
<!-- Society -->  
   movingzone= |
+
   |capital=  
  hospital_quality= 0|
+
   |population=  
  defense_system_quality= 0|
+
   |language=  
  <!-- Productivity --> |
+
   |movingzone=  
   resource=| <!-- Needed only if not working right. -->
+
<!-- Productivity -->  
 +
   |resource= <!-- Needed only if not working right. -->
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 07:54, 26 June 2016


Anhui

Icon-China.png China

Flag of the owner  Coat of Arms of Anhui
Map of the region
Society
Capital Hefei
Language Chinese
Moving zone B4
Productivity


{{Region
  |name= 
  |link= 
  |altname1= 
  |altname2= 
  |altname3= 
  |country= 
  |number= 
  |coatofarms= 
  |map= 
<!-- Society --> 
  |capital= 
  |population= 
  |language= 
  |movingzone= 
<!-- Productivity --> 
  |resource= <!-- Needed only if not working right. -->
}}

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.
  • 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

Conquered Regions

There are a few things different when the region has been conquered

  • Country - add 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 Pakistan in the country field and the flag of China in the coat of arms field.