Difference between revisions of "User:Jimkats1/Sandbox2"
(Added tips for expensive parser calls) |
(Added various resources section (for now old greek mu links)) |
||
Line 1: | Line 1: | ||
+ | {{TOCright}} | ||
+ | ==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. | ||
+ | |||
+ | *[https://www.erepublik.com/en/article/1992314 List of Greek MUs as of Day 1,585 ({{Day|1585|from=erep}})] | ||
+ | *[https://www.erepublik.com/en/article/2070887 List of Greek MUs as of Day 1,682 ({{Day|1682|from=erep}})] | ||
+ | |||
+ | |||
==Template:ICountry== | ==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.<br> | Finally, after updates of several country infoboxes, I found out the best (in my opinion) formatting to be used for translated pages of countries.<br> |
Revision as of 09:01, 25 April 2020
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:
- Go to Edit
- Press Show preview
- Scroll to the very bottom of the page, where the Parser profiling data table is.
- 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: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Αυτό είναι το template του Gold. Χρησιμοποιείται για να βοηθήσει με γραφικό τρόπο τα tutorials. Θα παράξει το εικονίδιο του Χρυσού όπως εμφανίζεται στο eRepublik με ένα καθορισμένο ποσό και την λέξη "ΧΡΥΣΑ" με έντονα γράμματα. Το κείμενο του template δεν θα τυλιχτεί στο τέλος μιας γραμμής.
Δεν μπορεί να γίνει έλεγχος για το αν το ποσό είναι 1, οπότε αντί να φαίνεται και η λέξη "ΧΡΥΣΟΣ", αναγκαστικά θα φαίνεται μόνιμα η λέξη "ΧΡΥΣΑ" ανεξαιρέτως περίστασης.
Γράφοντας {{Gold|20}} θα παράξει 20 GOLD. Αν κανένας αριθμός δεν οριστεί, το template θα προκαθοριστεί σε {{{1}}} GOLD.