Template:Damage colour: Difference between revisions
Jump to navigation
Jump to search
(Updating template ot use classes, should hopefully work immediately) Tag: Reverted |
(Ughhhh) Tags: Undo Reverted |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{color|{{#switch: {{{1|}}} | ||
| Acid = #80b000 | |||
| Cold = #3399cc | |||
| Fire = #ee5500 | |||
| Force = #cc3333 | |||
| Healing = #30bbbb | |||
| Lightning = #3366cc | |||
| Necrotic = #40b050 | |||
| Poison = #44bb00 | |||
| Radiant = #ccaa00 | |||
| Thunder = #8844bb | |||
| Psychic = #cc77aa | |||
| Physical = #8c8c8c | |||
| Weapon = #8c8c8c | |||
| Piercing = #8c8c8c | |||
| Bludgeoning = #8c8c8c | |||
| Slashing = #8c8c8c | |||
| Fire, Radiant = #db7d02 <!-- For Flamestrike only --> | |||
}}|{{trim | {{{2|{{{1}}}}}} }}}}</includeonly><noinclude> | |||
You can use this like so: | |||
{{code|<nowiki>{{DamageColor|Force|That's a lotta damage.}}</nowiki>}} | |||
Result: | |||
{{DamageColor|Force|That's a lotta damage.}} | |||
Or for healing, actually: | |||
{{code|<nowiki>{{DamageColor|Healing|Feels good man.}}</nowiki>}} | |||
Result: | |||
{{DamageColor|Healing|Feels good man.}} | |||
List of all colors: | List of all colors: |
Revision as of 17:02, 23 January 2024
You can use this like so:
{{DamageColor|Force|That's a lotta damage.}}
Result:
That's a lotta damage.
Or for healing, actually:
{{DamageColor|Healing|Feels good man.}}
Result:
Feels good man.
List of all colors:
- Acid
- Cold
- Fire
- Force
- Healing
- Lightning
- Necrotic
- Poison
- Radiant
- Thunder
- Psychic
- Physical
- Piercing
- Bludgeoning
- Slashing
Note to future editors: it's important for these colors to be legible on both a light and a dark background!