Difference between revisions of "Template:IRegion/Core"

From eRepublik Official Wiki
Jump to: navigation, search
m (translation tags added)
(added optional map field in case autolinking map doesn't work)
 
(6 intermediate revisions by 2 users not shown)
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|{{{iFlag|Flag of the owner}}}|link={{#ifeq:{{Regions/Owners|{{BASEPAGENAME}}}}|FAIL|{{{country|eRepublik}}}|{{Regions/Owners|{{BASEPAGENAME}}}}}}]]&nbsp;&nbsp;{{#if: {{{coatofarms|}}}| [[File:{{{coatofarms|}}}{{!}}60px{{!}}{{{iCoat|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|{{{iFlag|Flag of the owner}}}|link={{#ifeq:{{Regions/Owners|{{BASEPAGENAME}}}}|FAIL|{{{country|eRepublik}}}|{{Regions/Owners|{{BASEPAGENAME}}}}}}]]&nbsp;&nbsp;{{#if: {{{coatofarms|}}}| [[File:{{{coatofarms|}}}{{!}}60px{{!}}{{{iCoat|Coat of Arms of}}} {{{name|unknown region}}}]]|}}</center>
 
|-
 
|-
|{{#if: {{{map|}}}|style="padding-top:5px;"{{!}}<center>[[File:{{{map|}}}|220px|{{{iMapOf|Map of}}} {{{transcountry|{{{country|}}}}}}]]</center>}}
+
|style="padding-top:5px;"{{!}}<center>{{#ifexist: File:Region-{{BASEPAGENAME}}.png | [[File:Region-{{BASEPAGENAME}}.png|220px|{{{iMapOf|Map of}}} {{{name|unknown region}}}]] | {{#ifexist: File:Region-{{{name}}}.png | [[File:Region-{{{name}}}.png|220px|{{{iMapOf|Map of}}} {{{name|unknown region}}}]] | [[File:{{{map}}}|220px|{{{iMapOf|Map of}}} {{{name|unknown region}}}]]}} }}</center>
 +
 
 +
|-
 +
{| style="background:transparent; width:220px; font-size: 90%; text-align: center;" colspan="3"
 +
| {{#ifeq: {{Region/HistoricalCapitalSwitch}}|{{BASEPAGENAME}}|'''''{{L|Historical capital|{{{iHistorical capital of|Historical capital of}}}}}''' {{{transcountry}}}''}}
 
|}
 
|}
 
</div>
 
</div>
Line 24: Line 28:
 
{{RowV2|{{{iLanguage|Language}}}|{{{language|}}} }}
 
{{RowV2|{{{iLanguage|Language}}}|{{{language|}}} }}
 
{{RowV2|{{{iMovingZone|Moving Zone}}}|{{{movingzone|}}} }}
 
{{RowV2|{{{iMovingZone|Moving Zone}}}|{{{movingzone|}}} }}
{{RowV2|{{{iLast update|Last update}}}|{{{lastupdate|}}} }}
+
|}
 +
{| style="width:225px;"
 
|}
 
|}
  
 
{| style="width:225px;"
 
{| style="width:225px;"
 
{{HeaderV2|{{{iProductivity|Productivity}}}}}
 
{{HeaderV2|{{{iProductivity|Productivity}}}}}
{{RowV2|{{#if: {{{resource2|}}}|{{{iResources|Resources}}}|{{{iResource|Resource}}}}}|{{#if: {{{resource|}}} | [[File:Icon_-_{{{resource}}}.png|link={{{resource}}}|40px]] }} {{#if: {{{resource1|}}} | [[File:Icon_-_{{{resource1}}}.png|link={{{resource1}}}/{{SUBPAGENAME}}|40px]] | {{#if: {{{resource1}}}||''{{{iNone|None}}}''}} }} {{#if: {{{resource2|}}} | [[File:Icon_-_{{{resource2}}}.png|link={{{resource2}}}/{{SUBPAGENAME}}|40px]] }} {{#if: {{{resource4|}}} | <br/> }} {{#if: {{{resource3|}}} | [[File:Icon_-_{{{resource3}}}.png|link={{{resource3}}}/{{SUBPAGENAME}}|40px]] }} {{#if: {{{resource4|}}} | [[File:Icon_-_{{{resource4}}}.png|link={{{resource4}}}/{{SUBPAGENAME}}|40px]] }} }}
+
{{RowV2|{{#if: {{{resource2|}}}|{{{iResources|Resources}}}|{{{iResource|Resource}}}}}|{{#if: {{{resource1|}}} | [[File:Icon_-_{{{resource1}}}.png|link={{{resource1}}}/{{SUBPAGENAME}}|40px]] | {{#if: {{{resource1}}}||''{{{iNone|None}}}''}} }} {{#if: {{{resource2|}}} | [[File:Icon_-_{{{resource2}}}.png|link={{{resource2}}}/{{SUBPAGENAME}}|40px]] }} {{#if: {{{resource4|}}} | <br/> }} {{#if: {{{resource3|}}} | [[File:Icon_-_{{{resource3}}}.png|link={{{resource3}}}/{{SUBPAGENAME}}|40px]] }} {{#if: {{{resource4|}}} | [[File:Icon_-_{{{resource4}}}.png|link={{{resource4}}}/{{SUBPAGENAME}}|40px]] }} }}
 +
|}
 
|}
 
|}
  
 +
{| style="width:225px;"
 +
{{#if: {{{last update|}}} |
 +
{{!}} style="font-size: 80%; font-weight: lighter; text-align: center;" colspan="3" {{!}}
 +
<span style="margin: 1em; color: #555;">{{nowrap|'''{{{iLast update|Last update}}}''':&nbsp;{{{last update}}}}}</span> }}
 
|}
 
|}
 +
 
</div>
 
</div>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>
 
<noinclude>[[Category:Complex|Region]]</noinclude>
 
<noinclude>[[Category:Complex|Region]]</noinclude>

Latest revision as of 06:43, 19 March 2019