Difference between revisions of "One:Main Menu (Template)"

From eRepublik Official Wiki
Jump to: navigation, search
m
 
m (small corrections)
 
Line 13: Line 13:
 
rect 48 208 229 252 {{L|Newspaper}}
 
rect 48 208 229 252 {{L|Newspaper}}
 
rect 48 251 229 291 {{L|Country administration}}
 
rect 48 251 229 291 {{L|Country administration}}
rect 48 290 229 332 {{L|Organization}}
+
rect 48 290 229 332 {{L|One:Organization}}
 
rect 48 332 230 372 {{L|Rising:Chat|Chat rooms}}
 
rect 48 332 230 372 {{L|Rising:Chat|Chat rooms}}
 
rect 48 371 228 418 {{L|Rising:Advertising agency}}
 
rect 48 371 228 418 {{L|Rising:Advertising agency}}
Line 36: Line 36:
  
 
==Description==
 
==Description==
 
+
A template for displaying the '''[[One:Main menu|main menu]] bar''' with all drop-down menus open, each section linking to a page in question.
A template for displaying the '''[[One:Main menu|main menu]] bar''' with all drop down menus open, each section linking to page in question.
+
  
 
==Supported languages==
 
==Supported languages==
Line 114: Line 113:
  
 
===Usage===
 
===Usage===
 
 
For example, <pre>{{Main Menu|img=RO}}</pre> will produce full-size image map of: [[File:MM-RO.jpg|800px|thumb|center]]
 
For example, <pre>{{Main Menu|img=RO}}</pre> will produce full-size image map of: [[File:MM-RO.jpg|800px|thumb|center]]
  
 
===Adding new languages===
 
===Adding new languages===
This template uses only one image map code to add links on the image. Because of that, all the images <u>must be</u> the same size in order for it to work properly. The images used are made by combining five screen shots, and they should be about this sizes:
+
This template uses only one image map code to add links on the image. Because of that, all the images <u>must be</u> the same size in order for it to work properly. The images used are made by combining five screenshots, and they should be about these sizes:
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 143: Line 141:
 
|}
 
|}
  
Once the image is successfully "built", just upload it with name '''MM-X.JPG''' where X = the languages abbreviation used on it's eRepublik translation. For example French would be ''FR'', Germany ''DE'' etc. '''The images MUST be in .jpg format!''' If new features are added, these pictures shouldn't be updated until the yellow highlighting is gone. Also, it's more important to get the width right because below the menus, it's only white anyways. When updating images you can use old ones, there's no point in creating new ones from scratch unless it's for completely new language.  
+
Once the image is successfully "built", just upload it with name '''MM-X.JPG''' where X = the languages abbreviation used on its eRepublik translation. For example French would be ''FR'', Germany ''DE'' etc. '''The images MUST be in .jpg format!''' If new features are added, these pictures shouldn't be updated until the yellow highlighting is gone. Also, it's more important to get the width right because below the menus, it's only white anyways. When updating images you can use old ones, there's no point in creating new ones from scratch unless it's for a completely new language.  
 
[[Category:Menu Templates|Main Menu]]
 
[[Category:Menu Templates|Main Menu]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:43, 16 May 2020

One:HomepageOne:My placesMarketOne:InfoOne:CommunityOne:Gold and ExtrasOne:ProfileCompanyOne:Training groundsPartyNewspaperCountry administrationOne:OrganizationChat roomsRising:Advertising agencyOne:MarketplaceMonetary marketOne:Job marketOne:Companies for saleRankingsCountry statsOne:Tutorial (short version)One:Career pathWorld mapInvite friendsElectionsNewsToolsForumWikiMain menu (clickable)

Description

A template for displaying the main menu bar with all drop-down menus open, each section linking to a page in question.

Supported languages

Use parameter img to set the language in which you want the menu to appear. All the official languages are supported:

img= Language Usage
BG Bulgarian {{Main Menu|img=BG}}
EN English {{Main Menu|img=EN}}
ES Spanish {{Main Menu|img=ES}}
FR French {{Main Menu|img=FR}}
DE Germany {{Main Menu|img=DE}}
GR Greek {{Main Menu|img=GR}}
HR Croatian {{Main Menu|img=HR}}
HU Magyar {{Main Menu|img=HU}}
IT Italian {{Main Menu|img=IT}}
PL Polish {{Main Menu|img=PL}}
PT Portuguese {{Main Menu|img=PT}}
RO Romanian {{Main Menu|img=RO}}
RU Russian {{Main Menu|img=RU}}
SR Serbian {{Main Menu|img=SR}}
SV Swedish {{Main Menu|img=SV}}
TR Turkish {{Main Menu|img=TR}}

Usage

For example,
{{Main Menu|img=RO}}
will produce full-size image map of:
MM-RO.jpg

Adding new languages

This template uses only one image map code to add links on the image. Because of that, all the images must be the same size in order for it to work properly. The images used are made by combining five screenshots, and they should be about these sizes:

Image Size
Menu bar 953 x 47
My places menu 182 x 373
Market menu 182 x 173
Info menu 182 x 213
Community menu 182 x 254
Finished image ~953 x ~420

Once the image is successfully "built", just upload it with name MM-X.JPG where X = the languages abbreviation used on its eRepublik translation. For example French would be FR, Germany DE etc. The images MUST be in .jpg format! If new features are added, these pictures shouldn't be updated until the yellow highlighting is gone. Also, it's more important to get the width right because below the menus, it's only white anyways. When updating images you can use old ones, there's no point in creating new ones from scratch unless it's for a completely new language.