Template:Stat Color: Difference between revisions
imported>Koanyan5028 Added {{Documentation |
imported>Koanyan5028 mNo edit summary |
||
| Line 14: | Line 14: | ||
| criticalchance=#aa00aa | | criticalchance=#aa00aa | ||
| #default=#ffffff | | #default=#ffffff | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
{{Documentation}} | |||
</noinclude> | |||
Latest revision as of 11:52, 28 October 2024
Defense
Speed
This template returns color code corresponding to the stat specified through argment.
This template is not case sensitive, so "speed", "Speed" and "SPEED" works exactly same when passed as a template argment.
Examples
Code:
{{Stat Color|speed}}
Result:
#55ff55
Code:
<span style="color:{{Stat Color|attack}}">
Attack
</span>
Result:
- Attack
Code:
<!-- This template is not case-sensitive -->
<span style="color:{{Stat Color|defense}}">
defense
</span>
<span style="color:{{Stat Color|Defense}}">
Defense
</span>
<span style="color:{{Stat Color|DEFENSE}}">
DEFENSE
</span>
Result:
- defense
- Defense
- DEFENSE
Code:
<!-- Some aliases -->
<span style="color:{{Stat Color|defense}}">
Defense
</span>
<span style="color:{{Stat Color|defence}}">
Defence
</span>
<span style="color:{{Stat Color|crit}}">
Crit
</span>
<span style="color:{{Stat Color|critical}}">
Critical
</span>
<span style="color:{{Stat Color|crit chance}}">
Crit Chance
</span>
<span style="color:{{Stat Color|critical chance}}">
Critical Chance
</span>
<span style="color:{{Stat Color|critChance}}">
CritChance
</span>
<span style="color:{{Stat Color|criticalChance}}">
CriticalChance
</span>
Result:
- Defense
- Defence
- Crit
- Critical
- Crit Chance
- Critical Chance
- CritChance
- CriticalChance