Template:Game Menu/doc
From eRepublik Official Wiki
< Template:Game Menu
Revision as of 07:41, 30 October 2011 by Grzechooo (Talk | contribs) (→Instructions for translators)
This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the Template page itself, see Template:Game Menu.
To view the Template page itself, see Template:Game Menu.
Contents
Usage
This is used to display the same game menu there is in the game. To expand all menus add expand=all|
parameter.
To expand single menu, use following codes:
-
expand1=true|
- to expand Market menu -
expand2=true|
- to expand Community menu
If you want to hide some menus, use following code:
-
hide0=true|
- to hide homepage button -
hide1=true|
- to hide My land button -
hide2=true|
- to hide Market button -
hide3=true|
- to hide Community button -
hide4=true|
- to hide Gold and Extras button
If you hide some menu, the bar will be aligned to left side of the page.
Instructions for translators
- You can only translate the links in the sub-menus - the main bar isn't translatable (not yet)
To add a new language you need to
- Choose an abbreviation to your language (English = en, Finnish = fi, etc.)
- Add following line to this page:
Name of your lang = your lang abbreviation|
(e.g. Hrvatski = hr|) - Add that line right after the "English = en|" line and save the page.
- Add following line to this page:
- Translate the strings
- Copy the code underneath to Template:Game Menu/Strings page.
- Replace the "_en" abbreviation with the abbreviation you added in first step (e.g. for Croatian you need to replace "_en" with "_hr")
- Translate the strings and save
If you don't understand these instructions, ask for help on bar or IRC (#wiki@Rizon)
<!-- Language?? translation --> home_en = Homepage| land_en = My land| wars_en = Wars| market_en = Market| marketplace_en = Marketplace| monetary_en = Monetary market| job_en = Job market| cmarket_en = Companies for sale| community_en = Community| map_en = World map| news_en = News| party_en = My party| elections_en = Elections| rankings_en = Rankings| administration_en = Country administration| invite_en = Invite friends| organizations_en = My organizations| badges_en = Badges| extras_en = Gold and Extras|