Difference between revisions of "Template:StatBar"
From SpiralKnights
(Changed to use the icons D0gr0ck uploaded.) |
m |
||
Line 1: | Line 1: | ||
<div style="padding: 1px 2px 1px 2px; {{#switch: {{{3}}} | - = | #default = margin: 0px 0px 0px 6px;}} 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: {{{ | + | {{#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: {{{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> | </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: 50px; height: 16px; position: absolute; top: 0px; left: {{#if: {{{ | + | <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}}}%</div> | ||
</div><noinclude> | </div><noinclude> | ||
Line 14: | Line 17: | ||
|- | |- | ||
| <pre> | | <pre> | ||
− | {{StatBar | (Attack, Defense, Stats) | (normal, piercing, elemental, shadow, stun, poison, fire, freeze, shock, sleep, curse) | (-, +) | (Stat | + | {{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> |
Revision as of 18:13, 10 December 2010
{{StatBar | (Attack, Defense, Stats) | (normal, piercing, elemental, shadow, stun, poison, fire, freeze, shock, sleep, curse) | (-, +) | (Stat percent) | (Max stat percent) | (full?)}} |