Difference between revisions of "User:Jimkats1/Sandbox2"

From eRepublik Official Wiki
Jump to: navigation, search
(Added proposed syntax for ICountry template)
(Changed notice)
Line 1: Line 1:
 
==Template:ICountry==
 
==Template:ICountry==
Finally, after updates of several country infoboxes, I found out the best (in my opinion) syntax 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>
 
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).
 
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).
  
Line 63: Line 63:
 
</pre>
 
</pre>
  
'''Note''': For some unknown reason, the aircraft bonus and discord fields won't appear in the Spanish version, as I updated it with the changes I made in the [[Template:ICountry/Core]], but in the Greek version those fields appear normally (I updated that aswell). I'm still trying to figure out why...
+
'''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.
  
  

Revision as of 06:34, 8 April 2019

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 from 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
  |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: 
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.