Difference between revisions of "Template:StatBar"

From SpiralKnights

Jump to: navigation, search
m
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="padding: 1px 2px 1px 2px; {{#switch: {{{3}}} | - =  | #default = margin: 0px 0px 0px 8px;}} position: relative;">
+
<div style="padding: 1px 2px 1px 2px; {{#switch: {{{3}}} | - =  | #default = margin: 0px 0px 0px 6px;}} position: relative;">
 
<div style="height: 14px; background-color: #293239; position: relative;">
 
<div style="height: 14px; background-color: #293239; position: relative;">
<div style="width: {{{4|0}}}%; height: 10px; background-color: #{{#switch: {{{3}}} | - = ba2f70 | #default = 29d6ff}}; position: absolute; top: 2px; left: {{#if: {{{5|}}} | 50% | 0px}}; margin: 0px 0px 0px {{#if: {{{5|}}} | -{{{4}}}% | 0px}}"></div>
+
{{#if: {{{6|}}} ||
 +
<div style="width: {{{5|0}}}%; height: 10px; background-color: #114054; position: absolute; top: 2px; left: 0px;"></div>
 +
}}
 +
<div style="width: {{{4|100}}}%; height: 10px; background-color: #{{#switch: {{{3}}} | - = ba2f70 | #default = 29d6ff}}; position: absolute; top: 2px; left: {{#if: {{{6|}}} | 50% | 0px}}; margin: 0px 0px 0px {{#if: {{{6|}}} | -{{{4}}}% | 0px}}"></div>
 
</div>
 
</div>
 +
<div style="width: 3; height: 10px; position: absolute; top: 3px; left: 10%;">[[File:Divider.png]]</div>
 +
<div style="width: 3; height: 10px; position: absolute; top: 3px; left: 20%;">[[File:Divider.png]]</div>
 +
<div style="width: 3; height: 10px; position: absolute; top: 3px; left: 30%;">[[File:Divider.png]]</div>
 +
<div style="width: 3; height: 10px; position: absolute; top: 3px; left: 40%;">[[File:Divider.png]]</div>
 +
<div style="width: 3; height: 10px; position: absolute; top: 3px; left: 50%;">[[File:Divider.png]]</div>
 +
<div style="width: 3; height: 10px; position: absolute; top: 3px; left: 60%;">[[File:Divider.png]]</div>
 +
<div style="width: 3; height: 10px; position: absolute; top: 3px; left: 70%;">[[File:Divider.png]]</div>
 +
<div style="width: 3; height: 10px; position: absolute; top: 3px; left: 80%;">[[File:Divider.png]]</div>
 +
<div style="width: 3; height: 10px; position: absolute; top: 3px; left: 90%;">[[File:Divider.png]]</div>
 
<div style="width: 6px; height: 16px; position: absolute; top: 0px; left: 0px;">[[File:Bar_Left_End.png]]</div>
 
<div style="width: 6px; height: 16px; position: absolute; top: 0px; left: 0px;">[[File:Bar_Left_End.png]]</div>
 
<div style="width: 6px; height: 16px; position: absolute; top: 0px; right: 0px;">[[File:Bar_End.png]]</div>
 
<div style="width: 6px; height: 16px; position: absolute; top: 0px; right: 0px;">[[File:Bar_End.png]]</div>
<div style="width: 16px; height: 16px; position: absolute; top: 0px; left: {{#if: {{{5|}}} | 50% | 0px}}; margin: 0px 0px 0px -8px;">[[File:{{{2|Nrm}}}_{{{1|Attack}}}_Icon.png]]</div>
+
<div style="width: 50px; height: 16px; position: absolute; top: 0px; left: {{#if: {{{6|}}} | 50% | 0px}}; margin: 0px 0px 0px -8px;">[[File:{{{1|Attack}}}_{{{2|normal}}}_icon.png|16px]]</div>
 +
<div style="color: #ffffff; font-size: 10px; width: 50px; height: 16px; text-align: right; position: absolute; top: -1px; right: 0px; padding: 0px 10px 0px 0px;">{{{4|0}}}%{{#if: {{{5|}}} | &nbsp;/&nbsp;{{{5}}}%}}</div>
 
</div><noinclude>
 
</div><noinclude>
  
Line 13: Line 26:
 
|-
 
|-
 
| <pre>
 
| <pre>
{{StatBar | (Attack, Defense, Stats) | (Nml, Prc, Elm, Shd, Stn, Psn, Fir, Frz, Shk, Slp, Crs) | (-, +) | (Stat number value)}}
+
{{StatBar | (Attack, Defense, Stats) | (normal, piercing, elemental, shadow, stun, poison, fire, freeze, shock, sleep, curse) | (-, +) | (Stat percent) | (Max stat percent) | (full?)}}
 
</pre>
 
</pre>
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:45, 10 December 2010

Divider.png
Divider.png
Divider.png
Divider.png
Divider.png
Divider.png
Divider.png
Divider.png
Divider.png
Bar Left End.png
Bar End.png
Attack normal icon.png
0%


Use the following to display a stat bar.
{{StatBar | (Attack, Defense, Stats) | (normal, piercing, elemental, shadow, stun, poison, fire, freeze, shock, sleep, curse) | (-, +) | (Stat percent) | (Max stat percent) | (full?)}}
Personal tools