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

From eRepublik Official Wiki
Jump to: navigation, search
(proper linking to this version of the imagemap restored)
(re-arranging usage / supported languages and correcting some information)
Line 36: Line 36:
 
A template for displaying the '''Main menu bar''' with all drop-down menus open, each section linking to the page in question. To be used in the Rising versions of the articles.
 
A template for displaying the '''Main menu bar''' with all drop-down menus open, each section linking to the page in question. To be used in the Rising versions of the articles.
  
==Supported languages==
+
===Usage===
Use parameter '''img''' to set the language in which you want the menu to appear. All the official languages are supported:
+
For example, <pre>{{Rising:Main Menu (Template)|img=ES}}</pre> will produce full-size image map of: [[File:Main Menu Rising-ES.jpg|800px|thumb|center]]
 +
 
 +
For the English language, it is enough just to use <pre>{{Rising:Main Menu (Template)}}</pre>
 +
 
 +
====Supported languages====
 +
Use parameter '''img''' to set the language in which you want the menu to appear. The languages supported are:
  
 
{| class="wikitable"
 
{| class="wikitable"
! img=
+
! Image
 
! Language
 
! Language
 
! Usage
 
! Usage
Line 46: Line 51:
 
| [[:File:Main Menu Rising-EN.jpg|EN]]
 
| [[:File:Main Menu Rising-EN.jpg|EN]]
 
| English
 
| English
| <nowiki>{{Main Menu|img=EN}}</nowiki>
+
| <nowiki>{{Rising:Main Menu (Template)}}</nowiki>
 
|-
 
|-
 
| [[:File:Main Menu Rising-ES.jpg|ES]]
 
| [[:File:Main Menu Rising-ES.jpg|ES]]
 
| Spanish
 
| Spanish
| <nowiki>{{Main Menu|img=ES}}</nowiki>
+
| <nowiki>{{Rising:Main Menu (Template)|img=ES}}</nowiki>
 
|-
 
|-
 
| [[:File:Main Menu Rising-FR.jpg|FR]]
 
| [[:File:Main Menu Rising-FR.jpg|FR]]
 
| French
 
| French
| <nowiki>{{Main Menu|img=FR}}</nowiki>
+
| <nowiki>{{Rising:Main Menu (Template)|img=FR}}</nowiki>
 
|-
 
|-
 
| [[:File:Main Menu Rising-DE.jpg|DE]]
 
| [[:File:Main Menu Rising-DE.jpg|DE]]
 
| Germany
 
| Germany
| <nowiki>{{Main Menu|img=DE}}</nowiki>
+
| <nowiki>{{Rising:Main Menu (Template)|img=DE}}</nowiki>
 
|-
 
|-
 
| [[:File:Main Menu Rising-PT.jpg|PT]]
 
| [[:File:Main Menu Rising-PT.jpg|PT]]
 
| Portuguese
 
| Portuguese
| <nowiki>{{Main Menu|img=PT}}</nowiki>
+
| <nowiki>{{Rising:Main Menu (Template)|img=PT}}</nowiki>
 
|}
 
|}
 
===Usage===
 
For example, <pre>{{Rising:Main Menu (Template)|img=ES}}</pre> will produce full-size image map of: [[File:Main Menu Rising-ES.jpg|800px|thumb|center]]
 
 
For English language it is enough just to use <pre>{{Rising:Main Menu (Template)}}</pre>
 
  
 
===Adding new languages===
 
===Adding new languages===
Line 96: Line 96:
 
|}
 
|}
  
Once the image is successfully "built", just upload it with name '''MMR-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.  
+
Once the image is successfully "built", just upload it with name '''Main Menu Rising-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:Rising Templates|Main Menu]]
 
[[Category:Rising Templates|Main Menu]]
 
</noinclude>
 
</noinclude>

Revision as of 14:47, 19 April 2020

HomepageMy landCompanyTraining groundsPartyNewspaperOrganizationCountry administrationChat roomsAdvertising agencyMarketMarketplaceMonetary marketJob marketCompanyRankingsInfoCountry statsWars listWorld mapCommunityInvite friendsElectionsNewsBadgesForumWikiGold and ExtrasMain menu (clickable)

Description

A template for displaying the Main menu bar with all drop-down menus open, each section linking to the page in question. To be used in the Rising versions of the articles.

Usage

For example,
{{Rising:Main Menu (Template)|img=ES}}
will produce full-size image map of:
Main Menu Rising-ES.jpg
For the English language, it is enough just to use
{{Rising:Main Menu (Template)}}

Supported languages

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

Image Language Usage
EN English {{Rising:Main Menu (Template)}}
ES Spanish {{Rising:Main Menu (Template)|img=ES}}
FR French {{Rising:Main Menu (Template)|img=FR}}
DE Germany {{Rising:Main Menu (Template)|img=DE}}
PT Portuguese {{Rising:Main Menu (Template)|img=PT}}

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 254
Market menu 182 x 173
Info menu 182 x 173
Community menu 182 x 254
Finished image ~953 x ~301

Once the image is successfully "built", just upload it with name Main Menu Rising-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.