Difference between revisions of "Template:StatBar"

From SpiralKnights

Jump to: navigation, search
m
m
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>
 
<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>

Revision as of 06:03, 10 December 2010


Use the following to display a stat bar.
{{StatBar | (Attack, Defense, Stats) | (Nml, Prc, Elm, Shd, Stn, Psn, Fir, Frz, Shk, Slp, Crs) | (-, +) | (Stat number value)}}
Personal tools