Difference between revisions of "Template:Country"
From eRepublik Official Wiki
Daniel Dimow (Talk | contribs) m |
(added aircraft bonus, a few more minor changes) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 16: | Line 16: | ||
| | | | ||
{| style="width:225px;" | {| style="width:225px;" | ||
− | {{#if: {{{rank|}}}{{{motto|}}}{{{ | + | {{#if: {{{rank|}}}{{{motto|}}}{{{country power|}}}{{{average experience|}}}{{{anthem|}}}{{{alliance|}}}{{{capital|}}}|{{HeaderV2|General}} }} |
− | {{ | + | {{RowV2|General rank|{{{rank|}}} }} |
− | {{RowV2| | + | {{RowV2|Country power|{{{country power|}}} }} |
− | {{RowV2| | + | |
{{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|}}}{{{ | + | {{#if: {{{language|}}}{{{population|}}}{{{average level|}}}|{{HeaderV2|Demographics}} }} |
{{RowV2|Language|{{{language|}}} }} | {{RowV2|Language|{{{language|}}} }} | ||
{{RowV2|Population|{{{population|}}} }} | {{RowV2|Population|{{{population|}}} }} | ||
− | + | {{RowV2|Average level|{{{average level|}}} }} | |
− | {{RowV2| | + | |
|} | |} | ||
{| style="width:225px;" | {| style="width:225px;" | ||
− | {{#if: {{{party name|}}}{{{president|}}}|{{HeaderV2|Politics}} }} | + | {{#if: {{{party name|}}}{{{president|}}}{{{dictator|}}}{{{dictator mu|}}}|{{HeaderV2|Politics}} }} |
− | {{LinkRowV2| | + | {{LinkRowV2|President|{{{president|}}} }} |
− | {{LinkRowV2| | + | {{LinkRowV2|Party|{{{party name|}}} }} |
− | + | {{LinkRowV2|Dictator|{{{dictator|}}} }} | |
− | {{LinkRowV2| | + | {{LinkRowV2|Military unit|{{{dictator mu|}}} }} |
|} | |} | ||
{| style="width:225px;" | {| style="width:225px;" | ||
− | {{HeaderV2|Economics}} | + | {{#if: {{{prime minister|}}}{{{minister of defense|}}}{{{mofa|}}}{{{governor|}}}{{{minister of education|}}}|{{HeaderV2|Political titles}} }} |
+ | {{LinkRowV2|{{Abbr|vCP|Vice Country President/Prime Minister}}|{{{prime minister|}}} }} | ||
+ | {{LinkRowV2|{{Abbr|MoD|Minister of Defence}}|{{{minister of defense|}}} }} | ||
+ | {{LinkRowV2|{{Abbr|MoFA|Minister of Foreign Affairs}}|{{{mofa|}}} }} | ||
+ | {{LinkRowV2|Governor|{{{governor|}}} }} | ||
+ | {{LinkRowV2|{{Abbr|MoEd|Minister of Education}}|{{{minister of education|}}} }} | ||
+ | |} | ||
+ | {| style="width:225px;" | ||
+ | {{#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| | + | {{RowV2|[[Food]] bonus|{{{food bonus|}}} }} |
− | {{RowV2| | + | {{RowV2|[[Weapon]] bonus|{{{weapon bonus|}}} }} |
− | {{RowV2| | + | {{RowV2|[[House]] bonus|{{{house bonus|}}} }} |
− | {{RowV2| | + | {{RowV2|[[Aircraft]] bonus|{{{aircraft bonus|}}} }} |
− | + | ||
|} | |} | ||
{| style="width:225px;" | {| style="width:225px;" | ||
− | {{#if: {{{ | + | {{#if: {{{territories|}}}{{{natural enemy|}}}{{{defence shield|}}}|{{HeaderV2|Military}} }} |
− | + | ||
{{RowV2|Territories|{{{territories|}}} }} | {{RowV2|Territories|{{{territories|}}} }} | ||
− | {{RowV2| | + | {{RowV2|Natural enemy|{{{natural enemy|}}} }} |
+ | {{RowV2|{{Abbr|Defence shield|Defence shield damage left}}|{{{defence shield|}}} }} | ||
|} | |} | ||
{| style="width:225px;" | {| style="width:225px;" | ||
− | {{#if: {{{chat|}}}|{{HeaderV2|Communication}} }} | + | {{#if: {{{website|}}}{{{forum|}}}{{{chat|}}}{{{teamspeak|}}}|{{HeaderV2|Communication}} }} |
− | {{RowV2| | + | {{RowV2|Website|{{{website|}}} }} |
+ | {{RowV2|Forum|{{{forum|}}} }} | ||
+ | {{RowV2|IRC|{{{chat|}}}}} | ||
+ | {{RowV2|TeamSpeak|{{{teamspeak|}}} }} | ||
|} | |} | ||
|} | |} | ||
Line 77: | Line 85: | ||
</div> | </div> | ||
</div> | </div> | ||
− | </includeonly> | + | </includeonly><noinclude>{{Complex}}{{Documentation}}[[Category:Main Templates|Country]]</noinclude> |
− | <noinclude | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | }} | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | {{ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [[Category:Main Templates| | + | |
− | </noinclude> | + |
Latest revision as of 02:44, 23 July 2016
The code of this template is really complex, please use your sandbox before editing this template
Contents
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