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..."
 
imported>Koanyan5028
No edit summary
Line 1: Line 1:
<includeonly><span style="line-height:1em"><span style="color:{{#if: {{{stat|}}}|{{Stat Color|{{{stat}}}}}|{{{color}}}}};font-size:1.5em">{{#switch: {{{amount}}}
<includeonly><span style="line-height:1em">'''{{{amount}}}/30'''&nbsp;<span style="color:{{#if: {{{stat|}}}|{{Stat Color|{{{stat}}}}}|{{{color}}}}};font-size:1.5em">{{#switch: {{{amount}}}
| 0=□□□□□□□□□□
| 0=□□□□□□□□□□
| 5=■□□□□□□□□□
| 5=■□□□□□□□□□
Line 8: Line 8:
| 30=■■■■■■■■■■
| 30=■■■■■■■■■■
| #default=<span style="color:#ff0000">'''Error: Invalid Argument'''</span>
| #default=<span style="color:#ff0000">'''Error: Invalid Argument'''</span>
}}</span>&nbsp;'''{{{amount}}}/30'''</span></includeonly>
}}</span></span></includeonly>
<noinclude>
<noinclude>
{{Stat Bar|amount=30|stat=speed}}
{{Stat Bar|amount=30|stat=speed}}

Revision as of 22:39, 24 October 2024


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 ■■■■■■■■■■