Difference between revisions of "Template:GuerrillaScore"

From eRepublik Official Wiki
Jump to: navigation, search
m
m (Fixed guerrilla template.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span style="font-family: Impact; font-size: 20px; color: #404040">Guerilla score:</span>
+
<includeonly><span style="font-family: Impact; font-size: 20px; color: #404040">Guerrilla score:</span>
{{Table
+
{| style="text-align:center; width: 200px;" |
|type = style="text-align:center; width: 200px;"
+
|[[File:Guerilla won.jpg]]
|hdrs = [[File:Guerilla won.jpg]] !! [[File:Guerilla lost.jpg]] !! [[File:Guerilla fights icon.png|x21px]]
+
|[[File:Guerilla lost.jpg]]
|row1 = <span style="font-family: 'Impact'; font-size: 20px; color: #95ab49">{{{won|0}}}</span> {{!!}} <span style="font-family: 'Impact'; font-size: 20px; color: #c1585e">{{{lost|0}}}</span> {{!!}} <span style="font-family: 'Impact'; font-size: 20px; color: #404040">{{#ifexpr: {{{won|0}}}+{{{lost|0}}}>0|{{#expr:({{{won|0}}}*100/({{{won|0}}}+{{{lost|0}}})) round 0}}|0}}%</span> }}</includeonly><noinclude>This is the '''GuerillaScore template'''. It display the fights won and lost, as well as the victory percentage.
+
|[[File:Guerilla fights icon.png|x21px]]
 +
|-
 +
|<span style="font-family: 'Impact'; font-size: 20px; color: #95ab49">{{{won|0}}}</span>
 +
|<span style="font-family: 'Impact'; font-size: 20px; color: #c1585e">{{{lost|0}}}</span>
 +
|<span style="font-family: 'Impact'; font-size: 20px; color: #404040">{{#ifexpr: {{{won|0}}}+{{{lost|0}}}>0|{{#expr:({{{won|0}}}*100/({{{won|0}}}+{{{lost|0}}})) round 0}}|0}}%</span>
 +
|}</includeonly><noinclude>This is the '''GuerrillaScore template'''. It display the fights won and lost, as well as the victory percentage.
  
'''Input:'''
+
==Use==
 +
<nowiki>{{GuerrillaScore|won=100|lost=50}}</nowiki>
  
<nowiki>{{GuerillaScore|won=100|lost=50}}</nowiki>
+
{{GuerrillaScore|won=100|lost=50}}
  
'''Output:'''
+
[[Category:Graphical Aid Templates]]</noinclude>
 
+
{{GuerillaScore|won=100|lost=50}}</noinclude>
+

Latest revision as of 15:11, 30 April 2014

This is the GuerrillaScore template. It display the fights won and lost, as well as the victory percentage.

Use

{{GuerrillaScore|won=100|lost=50}}

Guerrilla score:

Guerilla won.jpg Guerilla lost.jpg Guerilla fights icon.png
100 50 67%