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 8px;}} 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: {{#switch: {{{3}}} | - = 50% | #default = 0px}}; margin: 0px 0px 0px {{#switch: {{{3}}} | - = -{{{4}}}% | #default = 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>
 
</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: 16px; height: 16px; position: absolute; top: 0px; left: {{#switch: {{{3}}} | - = 50% | #default = 0px}}; margin: 0px 0px 0px -8px;">[[File:{{{2|Nrm}}}_{{{1|Attack}}}_Icon.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><noinclude>
 
</div><noinclude>
  

Revision as of 03:50, 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