Template:Stat Bar

Revision as of 21:06, 24 October 2024 by imported>Koanyan5028 (Created page with "<includeonly><span style="line-height:1em"><span style="color:{{#if: {{{stat|}}}|{{Stat Color|{{{stat}}}}}|{{{color}}}}};font-size:1.5em">{{#switch: {{{amount}}} | 0=□□□□□□□□□□ | 5=■□□□□□□□□□ | 10=■■■□□□□□□□ | 15=■■■■■□□□□□ | 20=■■■■■■□□□□ | 25=■■■■■■■■□□ | 30=■■■■■■■■■■ | #default=<span style="color:#ff0000">'''Error: Invalid Argume...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


■■■■■■■■■■ 30/30

This template can be used to create a Stat Bar that indicates maximum amount of potions that can be consumed.


The amount argment is used to pass the maximum amount of potions that can be consumed.

Valid values: 0, 5, 10, 15, 20, 25, 30


The bar color can be specified by the stat argment with stat name (e.g. defense), or the color argment with color code to use arbitrary color. The stat argment has higher priority if both are used.

Examples

Code:

{{Stat Bar|stat=defense|amount=15}}

Result:

■■■■■□□□□□ 15/30



Code:

{{Stat Bar|color=#55ffff|amount=20}}

Result:

■■■■■■□□□□ 20/30



Code:

{| class="wikitable"
|-
! [[Speed]]
! {{Stat Bar|stat=speed|amount=30}}
|}

Result:

Speed ■■■■■■■■■■ 30/30