Difference between revisions of "Template:Game Menu"
From eRepublik Official Wiki
m (link correction) |
(adding Armory, leaderboards and invite friends options to their corresponding menus) |
||
Line 7: | Line 7: | ||
<li>{{L|Company_(presentation_page)|{{Game Menu/String|companies}}}}</li> | <li>{{L|Company_(presentation_page)|{{Game Menu/String|companies}}}}</li> | ||
<li>{{L|Train|{{Game Menu/String|tgrounds}}}}</li> | <li>{{L|Train|{{Game Menu/String|tgrounds}}}}</li> | ||
+ | <li>{{L|Armory|{{Game Menu/String|armory}}}}</li> | ||
<li>{{L|Storage|{{Game Menu/String|storage}}}}</li> | <li>{{L|Storage|{{Game Menu/String|storage}}}}</li> | ||
<li>{{L|Advanced buildings|{{Game Menu/String|spbuildings}}}}</li> | <li>{{L|Advanced buildings|{{Game Menu/String|spbuildings}}}}</li> | ||
Line 29: | Line 30: | ||
<li>{{L|Newspaper|{{Game Menu/String|newspaper}}}}</li> | <li>{{L|Newspaper|{{Game Menu/String|newspaper}}}}</li> | ||
<li>{{L|Forum|{{Game Menu/String|forum}}}}</li> | <li>{{L|Forum|{{Game Menu/String|forum}}}}</li> | ||
+ | <li>{{L|Invite friends|{{Game Menu/String|invite}}}}</li> | ||
+ | <li>{{L|Weekly leaderboards|{{Game Menu/String|leaderboards}}}}</li> | ||
<li>{{L|Alliances|{{Game Menu/String|alliances}}}}</li> | <li>{{L|Alliances|{{Game Menu/String|alliances}}}}</li> | ||
<li>{{L|Elections|{{Game Menu/String|elections}}}}</li> | <li>{{L|Elections|{{Game Menu/String|elections}}}}</li> |
Revision as of 16:43, 11 July 2022
Contents
Usage
{{Game Menu}}
This is used to display the same game menu there is in the game. To expand all menus add expand=all|
parameter.
To expand a single menu, use the following code:
-
expand1=true|
- to expand Market menu -
expand2=true|
- to expand Community menu -
expand3=true|
- to expand My places menu
If you want to hide some menus, use the following code:
-
hide0=true|
- to hide Homepage button -
hide1=true|
- to hide My places button -
hide2=true|
- to hide Wars button -
hide3=true|
- to hide Market button -
hide4=true|
- to hide Community button -
hide5=true|
- to hide Gold and Extras button
If you hide some menus, the bar will be aligned to the left side of the page.
Instructions for translators
To add a new language you need to
- Choose an abbreviation for 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 the 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 page or discord wiki chat
<!-- Language?? translation --> home_en = Homepage| places_en = My places| residence_en = Residence| companies_en = Companies| tgrounds_en = Training grounds| armory_en = Armory| manageemployees_en = Manage employees| storage_en = Storage| advbuildings_en = Advanced buildings| travel_en = Travel| wars_en = Wars| market_en = Market| marketplace_en = Marketplace| monetary_en = Monetary market| job_en = Job market| cmarket_en = Companies for sale| tokens_en = Game Tokens| community_en = Community| country_en = My country| militaryunit_en = My military unit| party_en = My party| newspaper_en = My newspaper| forum_en = Forum| invite_en = Invite friends| leaderboards_en = Leaderboards| alliances_en = Alliances| elections_en = Elections| rankings_en = Rankings| latestupdates_en = Latest updates| map_en = World map| extras_en = Gold & Extras| badges_en = Badges|