Template:Stat Color: Difference between revisions
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:{{Stat Color|defense}}">Defense</span> <span style="color:{{Stat Color|speed}}">Speed</span> This template returns color code corresponding to the stat specified..." |
imported>Koanyan5028 mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 14: | Line 14: | ||
| criticalchance=#aa00aa | | criticalchance=#aa00aa | ||
| #default=#ffffff | | #default=#ffffff | ||
}}</includeonly><noinclude> | }}</includeonly><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