Difference between revisions of "Template:Country Stats"
From eRepublik Official Wiki
m (new template) |
|||
Line 1: | Line 1: | ||
− | <includeonly>< | + | <includeonly> |
− | + | <ul class="country-stats"> | |
− | + | <li {{#ifeq:{{{highlight|}}}|society|class="on"|}}> | |
− | + | [[Society|<span>Society</span>]]</li> | |
− | + | <li {{#ifeq:{{{highlight|}}}|economy|class="on"|}}> | |
− | + | [[Economy|<span>Economy</span>]]</li> | |
− | + | <li {{#ifeq:{{{highlight|}}}|politics|class="on"|}}> | |
− | + | [[Politics|<span>Politics</span>]]</li> | |
− | + | <li {{#ifeq:{{{highlight|}}}|military|class="on"|}}> | |
− | + | [[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 ''' | + | 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" | ||
− | ! | + | ! highlight= |
! Highlighted tab | ! Highlighted tab | ||
|- | |- | ||
− | | | + | | society |
− | + | ||
− | + | ||
− | + | ||
| Society | | Society | ||
|- | |- | ||
− | | | + | | economy |
| Economy | | Economy | ||
|- | |- | ||
− | | | + | | politics |
| Politics | | Politics | ||
|- | |- | ||
− | | | + | | military |
| Military | | Military | ||
|- | |- | ||
− | | | + | | administration |
| Country administration | | Country administration | ||
|} | |} | ||
− | For example, <pre>{{Country Stats| | + | For example, <pre>{{Country Stats|highlight=administration}}</pre> |
− | {{Country Stats| | + | {{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 |
{{Country Stats|highlight=administration}}