Difference between revisions of "Template:StatBar"

From SpiralKnights

Jump to: navigation, search
m
m
Line 2: Line 2:
 
<div style="height: 14px; background-color: #293239; position: relative;">
 
<div style="height: 14px; background-color: #293239; position: relative;">
 
{{#if: {{{6|}}} ||
 
{{#if: {{{6|}}} ||
<div style="width: {{{4|0}}}%; height: 10px; background-color: #114054; position: absolute; top: 2px; left: {{#if: {{{6|}}} | 50% | 0px}}; margin: 0px 0px 0px {{#if: {{{6|}}} | -{{{5}}}% | 0px}}"></div>
+
<div style="width: {{{5|0}}}%; height: 10px; background-color: #114054; position: absolute; top: 2px; left: 0px;"></div>
 
}}
 
}}
 
<div style="width: {{{4|0}}}%; 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 style="width: {{{4|0}}}%; 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>
Line 9: Line 9:
 
<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: 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="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}}}%</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>
  

Revision as of 18:30, 10 December 2010

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