Difference between revisions of "Template:Region"
From eRepublik Official Wiki
m (if i don't kill wiki now, i never will) |
(added "historical capital", map now auto-links, moved "last updated" to the bottom, removed {{{resource}}} ({{{resource1}}} in use, {{{resource}}} still displays old resource on pages which haven't been updated yet)) |
||
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}}}}}}]] {{#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}}}}}}]] {{#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="background:transparent; width:220px; font-size: 90%; text-align: center;" colspan="3" | ||
+ | | {{#ifeq: {{Region/HistoricalCapitalSwitch}}|{{BASEPAGENAME}}|'''''[[Historical capital]]''' of {{RegionLink/Original|{{BASEPAGENAME}}}}''}} | ||
|} | |} | ||
</div> | </div> | ||
Line 25: | Line 29: | ||
{{RowV2|Language|{{{language|}}} }} | {{RowV2|Language|{{{language|}}} }} | ||
{{RowV2|Moving zone|{{{movingzone|}}} }} | {{RowV2|Moving zone|{{{movingzone|}}} }} | ||
− | |||
|} | |} | ||
{| style="width:225px;" | {| style="width:225px;" | ||
Line 32: | Line 35: | ||
{| style="width:225px;" | {| style="width:225px;" | ||
{{HeaderV2|Productivity}} | {{HeaderV2|Productivity}} | ||
− | {{RowV2|{{#if: {{{resource2|}}}|Resources|Resource}}| | + | {{RowV2|{{#if: {{{resource2|}}}|Resources|Resource}}|{{#if: {{{resource1|}}} | [[File:Icon_-_{{{resource1}}}.png|link={{{resource1}}}|40px]] | {{#if: {{{resource1}}}||''None''}} }} {{#if: {{{resource2|}}} | [[File:Icon_-_{{{resource2}}}.png|link={{{resource2}}}|40px]] }} {{#if: {{{resource4|}}} | <br/> }} {{#if: {{{resource3|}}} | [[File:Icon_-_{{{resource3}}}.png|link={{{resource3}}}|40px]] }} {{#if: {{{resource4|}}} | [[File:Icon_-_{{{resource4}}}.png|link={{{resource4}}}|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|'''Last update''': {{{last update}}}}}</span> }} | ||
|} | |} | ||
+ | |||
</div> | </div> | ||
</div> | </div> | ||
Line 47: | Line 56: | ||
}} <!-- END #ifeq not translation --> | }} <!-- END #ifeq not translation --> | ||
}} <!-- END #if nocat --> | }} <!-- END #if nocat --> | ||
− | </includeonly><noinclude>{{Documentation}}[[Category:Main Templates| | + | </includeonly><noinclude>{{Documentation}}[[Category:Main Templates|Region]]</noinclude> |
Revision as of 20:20, 7 December 2018
Usage
Sichuan