Difference between revisions of "Template:Country Stats"

From eRepublik Official Wiki
Jump to: navigation, search
 
m (new template)
Line 1: Line 1:
<includeonly><center>{{#tag:imagemap|
+
<includeonly>
File:CS-{{{img}}}.png{{!}}Country stats bar (clickable)
+
<ul class="country-stats">
rect 0 1 107 32 {{L|National goals}}
+
    <li {{#ifeq:{{{highlight|}}}|society|class="on"|}}>
rect 108 1 215 32 {{L|Society}}
+
        [[Society|<span>Society</span>]]</li>
rect 216 1 324 33 {{L|Economy}}
+
    <li {{#ifeq:{{{highlight|}}}|economy|class="on"|}}>
rect 325 1 432 32 {{L|Politics}}
+
        [[Economy|<span>Economy</span>]]</li>
rect 433 1 540 32 {{L|Military}}
+
    <li {{#ifeq:{{{highlight|}}}|politics|class="on"|}}>
rect 541 1 687 32 {{L|Country administration|Administration}}
+
        [[Politics|<span>Politics</span>]]</li>
desc none
+
    <li {{#ifeq:{{{highlight|}}}|military|class="on"|}}>
}}</center></includeonly><noinclude>
+
        [[Military|<span>Military</span>]]</li>
 +
    <li {{#ifeq:{{{highlight|}}}|administration|class="on"|}}>
 +
        [[Country administration|<span>Administration</span>]]</li>
 +
</ul>
 +
</includeonly><noinclude>
 
==Usage==
 
==Usage==
A template for displaying the country stats tab bar with a certain tab highlighted. Use parameter '''img''' to set the highlighted tab, with:
+
A template for displaying the country stats tab bar with a certain tab highlighted. Use parameter '''highlight''' to set the highlighted tab, with:
 
{| class="wikitable"
 
{| class="wikitable"
! img=
+
! highlight=
 
! Highlighted tab
 
! Highlighted tab
 
|-
 
|-
| [[:File:CS-NG.png|NG]]
+
| society
| National goals
+
|-
+
| [[:File:CS-S.png|S]]
+
 
| Society
 
| Society
 
|-
 
|-
| [[:File:CS-E.png|E]]
+
| economy
 
| Economy
 
| Economy
 
|-
 
|-
| [[:File:CS-P.png|P]]
+
| politics
 
| Politics
 
| Politics
 
|-
 
|-
| [[:File:CS-M.png|M]]
+
| military
 
| Military
 
| Military
 
|-
 
|-
| [[:File:CS-A.png|A]]
+
| administration
 
| Country administration
 
| Country administration
 
|}
 
|}
  
For example, <pre>{{Country Stats|img=P}}</pre>
+
For example, <pre>{{Country Stats|highlight=administration}}</pre>
{{Country Stats|img=P}}
+
{{Country Stats|highlight=administration}}
  
 
[[Category:Menu Templates]]
 
[[Category:Menu Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 08:24, 10 April 2013

Usage

A template for displaying the country stats tab bar with a certain tab highlighted. Use parameter highlight to set the highlighted tab, with:

highlight= Highlighted tab
society Society
economy Economy
politics Politics
military Military
administration Country administration
For example,
{{Country Stats|highlight=administration}}