Difference between revisions of "Template:Country"

From eRepublik Official Wiki
Jump to: navigation, search
(implementing Bogi's suggestions, for more info see changelog)
(several changes made, more info available on the template talk page)
(One intermediate revision by one other user not shown)
Line 16: Line 16:
 
|
 
|
 
{| style="width:225px;"
 
{| style="width:225px;"
{{#if: {{{rank|}}}{{{motto|}}}{{{country power|}}}{{{average experience|}}}{{{anthem|}}}|{{HeaderV2|General}} }}
+
{{#if: {{{rank|}}}{{{motto|}}}{{{country power|}}}{{{average experience|}}}{{{anthem|}}}{{{alliance|}}}{{{capital|}}}|{{HeaderV2|General}} }}
{{RowV2|General Rank|{{{rank|}}} }}
+
{{RowV2|General rank|{{{rank|}}} }}
{{RowV2|Country Power|{{{country power|}}} }}
+
{{RowV2|Country power|{{{country power|}}} }}
{{RowV2|Average experience|{{{average experience|}}} }}
+
 
{{RowV2|Anthem|{{{anthem|}}} }}
 
{{RowV2|Anthem|{{{anthem|}}} }}
 
{{RowV2|Motto|{{{motto|}}} }}
 
{{RowV2|Motto|{{{motto|}}} }}
 +
{{LinkRowV2|Capital|{{{capital|}}} }}
 +
{{LinkRowV2|Alliance|{{{alliance|}}} }}
 
|}
 
|}
 
{| style="width:225px;"
 
{| style="width:225px;"
{{#if: {{{language|}}}{{{population|}}}{{{capital|}}}{{{website|}}}|{{HeaderV2|Demographics}} }}
+
{{#if: {{{language|}}}{{{population|}}}{{{average level|}}}|{{HeaderV2|Demographics}} }}
 
{{RowV2|Language|{{{language|}}} }}
 
{{RowV2|Language|{{{language|}}} }}
 
{{RowV2|Population|{{{population|}}} }}
 
{{RowV2|Population|{{{population|}}} }}
{{LinkRowV2|Capital|{{{capital|}}} }}
+
{{RowV2|Average level|{{{average level|}}} }}
{{RowV2|Official Website|{{{website|}}} }}
+
 
|}
 
|}
 
{| style="width:225px;"
 
{| style="width:225px;"
 
{{#if: {{{party name|}}}{{{president|}}}{{{dictator|}}}{{{dictator mu|}}}|{{HeaderV2|Politics}} }}
 
{{#if: {{{party name|}}}{{{president|}}}{{{dictator|}}}{{{dictator mu|}}}|{{HeaderV2|Politics}} }}
{{LinkRowV2|Current President|{{{president|}}} }}
+
{{LinkRowV2|President|{{{president|}}} }}
{{LinkRowV2|Political Party|{{{party name|}}} }}
+
{{LinkRowV2|Party|{{{party name|}}} }}
{{LinkRowV2|Current Dictator|{{{dictator|}}} }}
+
{{LinkRowV2|Dictator|{{{dictator|}}} }}
{{LinkRowV2|Dictator's Military Unit|{{{dictator mu|}}} }}
+
{{LinkRowV2|Military unit|{{{dictator mu|}}} }}
 
|}
 
|}
 
{| style="width:225px;"
 
{| style="width:225px;"
{{#if: {{{prime minister|}}}{{{minister of defense|}}}{{{mofa|}}}{{{governor|}}}{{{minister of education|}}}|{{HeaderV2|Political Titles}} }}
+
{{#if: {{{prime minister|}}}{{{minister of defense|}}}{{{mofa|}}}{{{governor|}}}{{{minister of education|}}}|{{HeaderV2|Political titles}} }}
{{LinkRowV2|Prime Minister|{{{prime minister|}}} }}
+
{{LinkRowV2|{{Abbr|vCP|Vice Country President/Prime Minister}}|{{{prime minister|}}} }}
{{LinkRowV2|Minister of Defense|{{{minister of defense|}}} }}
+
{{LinkRowV2|{{Abbr|MoD|Minister of Defence}}|{{{minister of defense|}}} }}
{{LinkRowV2|Minister of Foreign Affairs|{{{mofa|}}} }}
+
{{LinkRowV2|{{Abbr|MoFA|Minister of Foreign Affairs}}|{{{mofa|}}} }}
 
{{LinkRowV2|Governor|{{{governor|}}} }}
 
{{LinkRowV2|Governor|{{{governor|}}} }}
{{LinkRowV2|Minister of Education|{{{minister of education|}}} }}
+
{{LinkRowV2|{{Abbr|MoEd|Minister of Education}}|{{{minister of education|}}} }}
 
|}
 
|}
 
{| style="width:225px;"
 
{| style="width:225px;"
{{HeaderV2|Economics}}
+
{{#if: {{{currency|}}}{{{minimum salary|}}}{{{average salary|}}}{{{food bonus|}}}{{{weapon bonus|}}}{{{house bonus|}}}|{{HeaderV2|Economics}} }}
 
{{RowV2|[[Currency]]|{{{currency|}}} }}
 
{{RowV2|[[Currency]]|{{{currency|}}} }}
 
{{RowV2|Minimum salary|{{{minimum salary|}}} }}
 
{{RowV2|Minimum salary|{{{minimum salary|}}} }}
 
{{RowV2|Average salary|{{{average salary|}}} }}
 
{{RowV2|Average salary|{{{average salary|}}} }}
{{RowV2|Food bonus|{{ResourceBonus|{{BASEPAGENAME}}_f}}%}}
+
{{RowV2|Food bonus|{{{food bonus|}}} }}
{{RowV2|Weapon bonus|{{ResourceBonus|{{BASEPAGENAME}}_w}}%}}
+
{{RowV2|Weapon bonus|{{{weapon bonus|}}} }}
 +
{{RowV2|House bonus|{{{house bonus|}}} }}
 
|}
 
|}
 
{| style="width:225px;"
 
{| style="width:225px;"
{{#if: {{{conquered countries|}}}{{{territories|}}}{{{alliance|}}}{{{natural enemy|}}}{{{defence shield|}}}|{{HeaderV2|Military}} }}
+
{{#if: {{{territories|}}}{{{natural enemy|}}}{{{defence shield|}}}|{{HeaderV2|Military}} }}
{{RowV2|Conquered Countries|{{{conquered countries|}}} }}
+
 
{{RowV2|Territories|{{{territories|}}} }}
 
{{RowV2|Territories|{{{territories|}}} }}
{{RowV2|Alliance|{{{alliance|}}} }}
+
{{RowV2|Natural enemy|{{{natural enemy|}}} }}
{{RowV2|Natural Enemy|{{{natural enemy|}}} }}
+
{{RowV2|{{Abbr|Defence shield|Defence shield damage left}}|{{{defence shield|}}} }}
{{RowV2|Defence Shield (damage left)|{{{defence shield|}}} }}
+
 
|}
 
|}
 
{| style="width:225px;"
 
{| style="width:225px;"
{{#if: {{{chat|}}}|{{HeaderV2|Communication}} }}
+
{{#if: {{{website|}}}{{{forum|}}}{{{chat|}}}{{{teamspeak|}}}|{{HeaderV2|Communication}} }}
{{RowV2|Chat|{{{chat|}}}}}
+
{{RowV2|Official website|{{{website|}}} }}
 +
{{RowV2|National forum|{{{forum|}}} }}
 +
{{RowV2|IRC|{{{chat|}}}}}
 +
{{RowV2|TeamSpeak|{{{teamspeak|}}} }}
 
|}
 
|}
 
|}
 
|}
Line 82: Line 84:
 
</div>
 
</div>
 
</div>
 
</div>
</includeonly>
+
</includeonly><noinclude>{{Complex}}{{Documentation}}[[Category:Main Templates|Country]]</noinclude>
<noinclude>
+
==Usage==
+
<pre>{{Country|
+
  <!-- constant variables --> |
+
  name= |
+
  link= | <!-- used only if country name contains spaces -->
+
  flag= |
+
  coatofarms= |
+
  map= |
+
 
+
  rank= |
+
  anthem= |
+
  motto= |
+
  country power= |
+
 
+
  <!-- political variables --> |
+
  president= |
+
  party name= |
+
  dictator= |
+
  dictator mu= |
+
 
+
  <!-- political titles--> |
+
  prime minister= |
+
  minister of defense= |
+
  mofa= |
+
  governor= |
+
  minister of education= |
+
 
+
 
+
  <!-- demographic variables --> |
+
  language=|
+
  population= |
+
  capital= |
+
 
+
  <!-- economics variables --> |
+
  currency= |
+
  minimum salary= |
+
  average salary= |
+
 
+
 
+
  <!-- military variables --> |
+
  conquered countries= |
+
  territories= |
+
  alliance= |
+
  natural enemy= |
+
  defence shield= |
+
 
+
  <!-- communication --> |
+
  chat= |
+
 
+
  <!-- update --> |
+
  last update= |
+
 
+
}}</pre>
+
 
+
==NOTES==
+
All variables have a default value.
+
*If this is a conquered nation, put the original flag in the coat of arms field.
+
*'''Territories''' means the total number of regions the country controls
+
*If a value is not known, do not put a place holder like "n/a", none, TBD, ..., etc. This might create a strange link.
+
 
+
{{Complex}}
+
 
+
==Changelog==
+
=== 24.03.2016 suggestion: [[Bogi]], edit: [[Daniel Dimow]]===
+
* Removed gdp
+
* Removed inflation
+
* Removed unemployment rate
+
* Removed monthly exports
+
* Removed monthly imports
+
* Removed soldiers
+
* Removed average strength
+
 
+
Added:
+
 
+
* Dictator (+ his MU)
+
* Country Power
+
* Alliance
+
* Political Titles (Prime Minister, MoD, MoFA, Governor, MoEd)
+
* Defence Shield dmg left
+
* Natural Enemy
+
 
+
==TRANSLATION==
+
'''For translation please use [[:Template:ICountry]]!!!'''
+
 
+
[[Category:Main Templates|Countriesinfobox]]
+
</noinclude>
+

Revision as of 01:59, 24 March 2016

edit

Complex.png Complex template

The code of this template is really complex, please use your sandbox before editing this template

[edit] [purge]

Documentation

Usage

{{Country
<!-- constant variables --> 
  |name = 
  |link = <!-- used only if country name contains spaces -->
  |flag = 
  |coatofarms = 
  |map = 

  |rank = 
  |anthem = 
  |motto = 
  |country power = 
  |capital = 
  |alliance = 

<!-- demographic variables --> 
  |language = 
  |population = 
  |average level = 

<!-- political variables --> 
  |president = 
  |party name = 
  |dictator = 
  |dictator mu = 

<!-- political titles--> 
  |prime minister = 
  |minister of defense = 
  |mofa = 
  |governor = 
  |minister of education = 

<!-- economics variables --> 
  |currency = 
  |minimum salary = 
  |average salary = 
  |food bonus = 
  |weapon bonus = 
  |house bonus = 
  |aircraft bonus = 

<!-- military variables --> 
  |territories = 
  |natural enemy = 
  |defence shield = 

<!-- communication --> 
  |website = 
  |forum = 
  |chat = 
  |teamspeak = 

<!-- update --> 
  |last update = 
}}

NOTES

All variables have a default value.

  • If this is a conquered nation, put the original flag in the coat of arms field.
  • Territories means the total number of regions the country controls
  • If a value is not known, do not put a place holder like "n/a", none, TBD, ..., etc. This might create a strange link.

Changelog

24.03.2016 suggestion: Bogi, edit: Daniel Dimow

  • Removed gdp
  • Removed inflation
  • Removed unemployment rate
  • Removed monthly exports
  • Removed monthly imports
  • Removed soldiers
  • Removed average strength

Added:

  • Dictator (+ his MU)
  • Country Power
  • Alliance
  • Political Titles (Prime Minister, MoD, MoFA, Governor, MoEd)
  • Defence Shield dmg left
  • Natural Enemy

TRANSLATION

For translation please use Template:ICountry!!!