User:Koanyan5028/Template/Stat Color

Revision as of 15:41, 24 October 2024 by imported>Koanyan5028 (Created page with "<includeonly>{{#switch: {{lc: {{{1}}} }} | defense | defence=#5555ff | attack=#55ffff | speed=#55ff55 | evasion=#ffff55 | health=#ff5555 | vitality=#ff55ff | crit | critical | crit chance | critical chance | critchance | criticalchance=#aa00aa | #default=#ffffff }}</includeonly><noinclude> <span style="color:{{User:Koanyan5028/Template/Stat Color|defense}}">Defense</span> <span style="color:{{User:Koanyan5028/Template/Stat Color|speed}}">Speed</span> This template ret...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Defense

Speed


This template returns color code corresponding to the stats specified through argment.

This template is not case sensitive, so "speed", "Speed", "SPEED" works exactly same when passed as a template argment.

Examples

Code:

{User:Koanyan5028/Template/Stat Color|speed}}

Result:

#55ff55



Code:

<span style="color:{{User:Koanyan5028/Template/Stat Color|defense}}">Defense</span>

Result:

Defense



Code:

<!-- TODO: make stat bar color can be specified with stat name -->
 
{{User:Koanyan5028/Template/Potion Stats Bar|value=15|color={{User:Koanyan5028/Template/Stat Color|attack}} }}

Result:

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