Template:Stat Bar: Difference between revisions
imported>Koanyan5028 No edit summary |
imported>Koanyan5028 This uses Documentation template now |
||
| 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></span></includeonly> | }}</span></span></includeonly><noinclude>{{Documentation}}</noinclude> | ||
<noinclude> | |||
{{ | |||
</noinclude> | |||
Latest revision as of 11:49, 28 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 ■■■■■■■■■■