Difference between revisions of "Template:Country"

From eRepublik Official Wiki
Jump to: navigation, search
m
 
(several changes made, more info available on the template talk page)
(6 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:98%; 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:98%; 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/country/{{{link|{{{name|}}}}}} <span>{{{name|Unnamed country}}}</span>]</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/country/society/{{{link|{{{name|}}}}}} <span>{{{name|Unnamed country}}}</span>]</span>
  
 
<div style="padding: 5px 8px 5px 8px; margin:10px 5px; width:222px; border:1px solid #C6E4F2; background-color:white"  align="center">
 
<div style="padding: 5px 8px 5px 8px; margin:10px 5px; width:222px; border:1px solid #C6E4F2; background-color:white"  align="center">
Line 16: Line 16:
 
|
 
|
 
{| style="width:225px;"
 
{| style="width:225px;"
{{#if: {{{rank|}}}{{{motto|}}}{{{experience|}}}{{{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|Experience|{{{experience|}}} }}
+
{{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|}}}|{{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|Dictator|{{{dictator|}}} }}
 +
{{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|[[GDP]]|{{{gdp|}}} }}
 
{{RowV2|[[Inflation]]|{{{inflation|}}} }}
 
 
{{RowV2|Minimum salary|{{{minimum salary|}}} }}
 
{{RowV2|Minimum salary|{{{minimum salary|}}} }}
 
{{RowV2|Average salary|{{{average salary|}}} }}
 
{{RowV2|Average salary|{{{average salary|}}} }}
{{RowV2|Unemployment rate|{{{unemployment rate|}}} }}
+
{{RowV2|Food bonus|{{{food bonus|}}} }}
{{RowV2|Monthly exports|{{{monthly exports|}}} }}
+
{{RowV2|Weapon bonus|{{{weapon bonus|}}} }}
{{RowV2|Monthly imports|{{{monthly imports|}}} }}
+
{{RowV2|House bonus|{{{house bonus|}}} }}
{{RowV2|Food bonus|{{ResourceBonus|{{BASEPAGENAME}}_f}}%}}
+
{{RowV2|Weapon bonus|{{ResourceBonus|{{BASEPAGENAME}}_w}}%}}
+
 
|}
 
|}
 
{| style="width:225px;"
 
{| style="width:225px;"
{{#if: {{{conquered countries|}}}{{{territories|}}}{{{soldiers|}}}|{{HeaderV2|Military}} }}
+
{{#if: {{{territories|}}}{{{natural enemy|}}}{{{defence shield|}}}|{{HeaderV2|Military}} }}
{{RowV2|Conquered Countries|{{{conquered countries|}}} }}
+
 
{{RowV2|Territories|{{{territories|}}} }}
 
{{RowV2|Territories|{{{territories|}}} }}
{{RowV2|Soldiers|{{{soldiers|}}} }}
+
{{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|Chat|{{{chat|}}}}}
+
{{RowV2|Official website|{{{website|}}} }}
 +
{{RowV2|National forum|{{{forum|}}} }}
 +
{{RowV2|IRC|{{{chat|}}}}}
 +
{{RowV2|TeamSpeak|{{{teamspeak|}}} }}
 
|}
 
|}
 
|}
 
|}
Line 75: 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= |
+
 
+
  <!-- political variables --> |
+
  president= |
+
  party name= |
+
 
+
  <!-- demographic variables --> |
+
  language=|
+
  population= |
+
  capital= |
+
 
+
  <!-- economics variables --> |
+
  currency= |
+
  gdp= |
+
  inflation= |
+
  minimum salary= |
+
  average salary= |
+
  unemployment rate= |
+
  monthly exports= |
+
  monthly imports= |
+
 
+
  <!-- military variables --> |
+
  conquered countries= |
+
  territories= |
+
  soldiers= |
+
  average strength= |
+
 
+
  <!-- 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.
+
 
+
 
+
[[Category: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!!!