Template:Damage colour: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{color|{{#switch: {{{1}}}  
<includeonly><span class="{{lc:{{{1|}}}}}">{{trim | {{{2| {{{1}}} }}} }}</span></includeonly><noinclude>
| Acid = #cccc00
; Wikitext : {{code|<nowiki>{{DamageColor|Force|1d4 + 4 Force damage.}}</nowiki>}}
| Cold = #3399cc
; Result : {{DamageColor|Force|1d4 + 4 Force damage}}
| Fire = #ff6600
; Wikitext : {{code|<nowiki>{{DamageColor|Healing|1d4 + 4 Healing}}</nowiki>}}
| Force = #cc3333
; Result : {{DamageColor|Healing|1d4 + 4 Healing}}
| Healing = #33cccc
| Lightning = #3366cc
| Necrotic = #66cc66
| Poison = #99cc00
| Radiant = #ffcc00
| Thunder = #663399
| Psychic = #ff99cc
| Physical = #a9a9a9
| Piercing = #a9a9a9
| Bludgeoning = #a9a9a9
| Slashing = #a9a9a9
}}|{{{2}}}}}</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:
Line 50: Line 23:
* {{DamageColor|Slashing|Slashing}}
* {{DamageColor|Slashing|Slashing}}


Note to future editors: it's important for these colors to be legible on both a light and a dark background!
[[Category:Damage info templates]]
</noinclude>
</noinclude>

Navigation menu