Difference between revisions of "Template:Country Stats"

From eRepublik Official Wiki
Jump to: navigation, search
 
(documentation added)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><center>{{#tag:imagemap|
+
<includeonly><div id="newcountrystats" style="float:{{{float|left}}};">
File:CS-{{{img}}}.png{{!}}Country stats bar (clickable)
+
<ul id="nav">
rect 0 1 107 32 {{L|National goals}}
+
<span style="width:16px;height:55px;overflow:hidden; float:left; vertical-align:middle;">[[File:Country stats bg.png|link=]]</span>
rect 108 1 215 32 {{L|Society}}
+
<li id="menu1">{{L|Society|<span>{{Country Stats/String|society}}</span>}}</li>
rect 216 1 324 33 {{L|Economy}}
+
<li id="menu2">{{L|Economy|<span>{{Country Stats/String|economy}}</span>}}</li>
rect 325 1 432 32 {{L|Politics}}
+
<li id="menu3">{{L|Politics|<span>{{Country Stats/String|politics}}</span>}}</li>
rect 433 1 540 32 {{L|Military}}
+
<li id="menu4">{{L|Military|<span>{{Country Stats/String|military}}</span>}}</li>
rect 541 1 687 32 {{L|Country administration|Administration}}
+
<li id="menu5">{{L|Country administration|<span>{{Country Stats/String|administration}}</span>}}</li>
desc none
+
<span style="width:16px;height:55px;overflow:hidden; float:left; vertical-align:middle;"><span style="margin-left:-745px;">[[File:Country stats bg.png|link=]]</span></span>
}}</center></includeonly><noinclude>
+
</ul>
==Usage==
+
</div>
A template for displaying the country stats tab bar with a certain tab highlighted. Use parameter '''img''' to set the highlighted tab, with:
+
{{-}}</includeonly><noinclude>
{| class="wikitable"
+
{{Documentation}}
! img=
+
! Highlighted tab
+
|-
+
| [[:File:CS-NG.png|NG]]
+
| National goals
+
|-
+
| [[:File:CS-S.png|S]]
+
| Society
+
|-
+
| [[:File:CS-E.png|E]]
+
| Economy
+
|-
+
| [[:File:CS-P.png|P]]
+
| Politics
+
|-
+
| [[:File:CS-M.png|M]]
+
| Military
+
|-
+
| [[:File:CS-A.png|A]]
+
| Country administration
+
|}
+
 
+
For example, <pre>{{Country Stats|img=P}}</pre>
+
{{Country Stats|img=P}}
+
 
+
[[Category:Menu Templates]]
+
 
</noinclude>
 
</noinclude>

Latest revision as of 15:01, 11 February 2019

[edit] [purge]

Documentation

Usage

This template in meant to be used on My country, Society, Economy, Politics, Military and Country administration pages to represent existing in-game menu. Simply place the code below to get the menu (works the same on English and translated pages).

{{Country Stats}}


Note: For the moment, highlighting an open tab is not possible (work in progress).

Translation

If the menu is not translated into your language, you can add the translation to Template:Country Stats/Strings with the following code:

  <!-- « Your language name » translation -->|
  society_«lang code» = «Society translation»|
  economy_«lang code» = «Economy translation»|
  politics_«lang code» = «Politics translation»|
  military_«lang code» = «Military translation»|
  administration_«lang code» = «Administration translation»|
Example
  <!-- Portuguese translation -->|
  society_pt = Sociedade|
  economy_pt = Economia|
  politics_pt = Política|
  military_pt = Militar|
  administration_pt = Administração|
Note: two-letter ISO code must be placed in Template:Language codes, otherwise the translation won't work.