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
This uses Documentation template now
 
(One intermediate revision by the same user not shown)
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>{{Documentation}}</noinclude>
<noinclude>
{{Stat Bar|amount=30|stat=speed}}
This template can be used to create a Stat Bar that indicates maximum amount of potions that can be consumed.
 
 
The <code>amount</code> argment is used to pass the maximum amount of potions that can be consumed.
 
Valid values: <code>0</code>, <code>5</code>, <code>10</code>, <code>15</code>, <code>20</code>, <code>25</code>, <code>30</code>
 
 
The bar color can be specified by the <code>stat</code> argment with stat name (e.g. defense), or the <code>color</code> argment with color code to use arbitrary color. The <code>stat</code> argment has higher priority if both are used.
 
==Examples==
Code:
<nowiki>
{{Stat Bar|stat=defense|amount=15}}</nowiki>
Result:
: {{Stat Bar|stat=defense|amount=15}}
 
----
Code:
<nowiki>
{{Stat Bar|color=#55ffff|amount=20}}</nowiki>
Result:
: {{Stat Bar|color=#55ffff|amount=20}}
 
----
Code:
<nowiki>
{| class="wikitable"
|-
! [[Speed]]
! {{Stat Bar|stat=speed|amount=30}}
|}</nowiki>
Result:
: {| class="wikitable"
|-
! [[Speed]]
! {{Stat Bar|stat=speed|amount=30}}
|}
</noinclude>

Latest revision as of 11:49, 28 October 2024

File:Template-info.svg Documentation Edit this documentation at Template:Stat_Bar/doc.
(edithistorypurge)

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