Difference between revisions of "Template:Medals/Core"

From eRepublik Official Wiki
Jump to: navigation, search
m (small fix)
(lets see what it will happen - Correcting the showing the count even if medal is 0... Good luck to us all. Other changes: Cat added; info changed)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#ifexpr:{{{3|0}}}>0
 
<includeonly>{{#ifexpr:{{{3|0}}}>0
|<div style="display:inline-block;width:250px;height:100%;overflow:hidden;margin:2px;"><span style="float:left;">[[image:icon_achievement_{{{2}}}_on.gif]]</span>
+
|<div style="display:inline-block;width:250px;height:100%;overflow:hidden;margin:2px;"><span style="float:left;">[[File:Icon_achievement_{{{2}}}_on.gif|50px|center]]</span>
 
<div style="padding-top:6px;margin-left:51px;">'' '''{{{1}}}{{#if:{{{notice|}}}|[[Template:Medals/doc#Notice|<span style="color:red;">*</span>]]|}}''' (x{{{3}}})'' {{{4}}}</div></div>|{{#if:{{{show off|}}}
 
<div style="padding-top:6px;margin-left:51px;">'' '''{{{1}}}{{#if:{{{notice|}}}|[[Template:Medals/doc#Notice|<span style="color:red;">*</span>]]|}}''' (x{{{3}}})'' {{{4}}}</div></div>|{{#if:{{{show off|}}}
|<div style="display:inline-block;width:250px;height:100%;overflow:hidden;margin:2px;"><span style="float:left;">[[image:icon_achievement_{{{2}}}_off.gif]]</span>
+
|<div style="display:inline-block;width:250px;height:100%;overflow:hidden;margin:2px;"><span style="float:left;">[[File:Icon_achievement_{{{2}}}_off.gif|50px|center]]</span>
<div style="padding-top:6px;margin-left:51px;">'' '''{{{1}}}{{#if:{{{notice|}}}|[[Template:Medals/doc#Notice|<span style="color:red;">*</span>]]|}}''' (x0)''</div></div>|}}}}</includeonly><noinclude>
+
<div style="padding-top:6px;margin-left:51px;">'' '''{{{1}}}{{#if:{{{notice|}}}|[[Template:Medals/doc#Notice|<span style="color:red;">*</span>]]|}}''' (x0)'' {{{4}}}</div></div>|}}}}</includeonly><noinclude>
How use :
+
This template is important for the {{Tl|Medals}} to function properly.
*1 : name
+
*2 : picture name (icon_achievement_<this string is needed>_on.gif)
+
*3 : count of medals
+
*4 : description
+
*show off : off picture
+
  
eg:
+
Due to high traffic - only admins can edit it.
<pre>{{Medals/Core|Hard Worker|{{{Hard Worker}}}|hardworker|{{#if:{{{Last day Hard Worker|}}}|<br>Last Awarded: Day {{{Last day Hard Worker|}}}}}|{{#if:{{{show unawarded|}}}|show off|}}}}
+
[[Category:Template Backup]]
</pre>
+
 
</noinclude>
 
</noinclude>

Latest revision as of 10:45, 26 June 2022

This template is important for the {{Medals}} to function properly.

Due to high traffic - only admins can edit it.