User:Jimkats1/Sandbox2
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 onSpain/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.
Template:Gold/Ελληνικά
Languages: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Αυτό είναι το template του Gold. Χρησιμοποιείται για να βοηθήσει με γραφικό τρόπο τα tutorials. Θα παράξει το εικονίδιο του Χρυσού όπως εμφανίζεται στο eRepublik με ένα καθορισμένο ποσό και την λέξη "ΧΡΥΣΑ" με έντονα γράμματα. Το κείμενο του template δεν θα τυλιχτεί στο τέλος μιας γραμμής.
Δεν μπορεί να γίνει έλεγχος για το αν το ποσό είναι 1, οπότε αντί να φαίνεται και η λέξη "ΧΡΥΣΟΣ", αναγκαστικά θα φαίνεται μόνιμα η λέξη "ΧΡΥΣΑ" ανεξαιρέτως περίστασης.
Γράφοντας {{Gold|20}} θα παράξει 20 GOLD. Αν κανένας αριθμός δεν οριστεί, το template θα προκαθοριστεί σε {{{1}}} GOLD.