Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Damage colour: Difference between revisions

Template page
Willowisp (talk | contribs)
Ughhhh
Tags: Undo Reverted
mNo edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{color|{{#switch: {{{1|}}}  
<includeonly><span class="bg3wiki-damage-type-{{lc:{{{1|}}}}}">{{trim | {{{2| {{{1}}} }}} }}</span></includeonly><noinclude>{{Documentation|content=
| 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>}}
== Examples ==
{{Template demo
| style = table
| <nowiki>{{DamageColor|Force|1d4 + 4 Force damage.}}</nowiki>
| <nowiki>{{DamageColor|Healing|1d4 + 4 Healing}}</nowiki>
}}


Result:
== Complete list of all colors ==
 
{{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:


* {{DamageColor|Acid|Acid}}
* {{DamageColor|Acid|Acid}}
Line 54: Line 28:
Note to future editors: it's important for these colors to be legible on both a light and a dark background!
Note to future editors: it's important for these colors to be legible on both a light and a dark background!


}}
[[Category:Templates]]
[[Category:Damage info templates]]
[[Category:Damage info templates]]
</noinclude>
</noinclude>