User:Jimkats1/Sandbox2

From eRepublik Official Wiki
< User:Jimkats1
Revision as of 11:13, 21 September 2020 by Jimkats1 (Talk | contribs) (Various resources: Added Cloro's nicknames for later reference)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Various resources

This section contains links to resources used for centralized info of various concepts of the game or for a country. This is to be used for when updating wiki articles with info not already known.

Template:ICountry

Finally, after updates of several country infoboxes, I found out the best (in my opinion) formatting to be used for translated pages of countries.
In that way, the display title will be the translated name of the country and the link towards the game will work properly (that was the issue to me :P).

The following example is based on Spain/Español.

{{ICountry
<!-- constant variables --> 
  |name = España
  |link = Spain
  |flag = Flag-Spain.jpg
  |coatofarms = Coat-Spain.png
  |map = Country map-Spain.png

  |rank = 12 {{Increase}}
  |anthem = Himno Nacional Mexicano
  |motto = Plus Ultra
  |country power = 966 {{Increase}}
  |capital = Madrid{{!}}Mádrid
  |alliance = 

<!-- demographic variables --> 
  |language = Español
  |population = 1337 {{Decrease}}
  |average level = 52 {{Decrease}}

<!-- political variables --> 
  |president = AIceo
  |party name = Partido Guardia de la Noche
  |dictator = 
  |dictator mu = 

<!-- political titles--> 
  |prime minister = ReKeeo C95
  |minister of defense = BruTaL619
  |mofa = KekcoLion
  |governor = Eodos
  |minister of education = ismaelgalaxy21

<!-- economics variables --> 
  |currency = {{SmFlag|Spain}} Spanish Peseta ('''ESP''')
  |minimum salary = {{Currency|ESP|2.00}} {{Increase}}
  |average salary = {{Currency|ESP|1203.19}} {{Increase}}
  |food bonus = 100%
  |weapon bonus = 100%
  |house bonus = 100%
  |aircraft bonus = 70%

<!-- military variables --> 
  |territories = 24 {{Increase}}
  |natural enemy = {{FlagLink|Iran}}

<!-- communication --> 
  |website = 
  |forum = 
  |chat = Rizon - #erepublik.es
  |teamspeak = 
  |discord = [https://discord.gg/q3v6Y9Q eSpain]

<!-- update --> 
  |last update = Marzo 22, 2019
}}

Note: In the example of Template:ICountry/doc the name parameter has been changed with transcountry in order to avoid conflict with the template's page title, because "transcountry" will change the name in the infobox but not in the page title, while "name" changes for both.


Category:Pages with too many expensive parser function calls

As in the description of the category suggests already, here are some tips in order to reduce the parser calls of a page:

  • Replace {{L}} with {{DL}} if the translated page exists.
  • Replace {{L}} with simple [[]] where needed. You may even remove it if the page doesn't exist and you don't want dead links.
  • Replace {{FlagLink}} with {{FlagLink2}}.
  • Append the language in translated templates. Example: {{Taxes/Српски}}.


To view the current amount of parser calls of a page:

  1. Go to Edit
  2. Press Show preview
  3. Scroll to the very bottom of the page, where the Parser profiling data table is.
  4. Look for the last line of that table, Expensive parser function count.

The limit for eRepublik Wiki is 100. So, we need to have less than 100 in order to not get the warning.


Template:Gold/Ελληνικά

Languages: 
EnglishIcon-English.png
ShqipIcon-Albania.png
БеларускаяIcon-Belarus.png
БългарскиIcon-Bulgaria.png
中文(简体)Icon-China.png
HrvatskiIcon-Croatia.png
فارسیIcon-Iran.png
SuomiIcon-Finland.png
FrançaisIcon-France.png
ქართულიIcon-Georgia.png
DeutschIcon-Germany.png
ΕλληνικάIcon-Greece.png
MagyarIcon-Hungary.png
Bahasa IndonesiaIcon-Indonesia.png
עבריתIcon-Israel.png
한글Icon-South Korea.png
LatviešuIcon-Latvia.png
МакедонскиIcon-North Macedonia.png
NederlandsIcon-Netherlands.png
PolskiIcon-Poland.png
PortuguêsIcon-Portugal.png
Portugues BrasileiroIcon-Brazil.png
RomânăIcon-Romania.png
РусскийIcon-Russia.png
СрпскиIcon-Serbia.png
EspañolIcon-Spain.png
TürkçeIcon-Turkey.png
УкраїнськаIcon-Ukraine.png

Αυτό είναι το template του Gold. Χρησιμοποιείται για να βοηθήσει με γραφικό τρόπο τα tutorials. Θα παράξει το εικονίδιο του Χρυσού όπως εμφανίζεται στο eRepublik με ένα καθορισμένο ποσό και την λέξη "ΧΡΥΣΑ" με έντονα γράμματα. Το κείμενο του template δεν θα τυλιχτεί στο τέλος μιας γραμμής.

Δεν μπορεί να γίνει έλεγχος για το αν το ποσό είναι 1, οπότε αντί να φαίνεται και η λέξη "ΧΡΥΣΟΣ", αναγκαστικά θα φαίνεται μόνιμα η λέξη "ΧΡΥΣΑ" ανεξαιρέτως περίστασης.

Γράφοντας {{Gold|20}} θα παράξει Icon - Gold.gif 20 GOLD. Αν κανένας αριθμός δεν οριστεί, το template θα προκαθοριστεί σε Icon - Gold.gif {{{1}}} GOLD.