Template:Damage colour: Difference between revisions

From Baldur's Gate 3 Wiki
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><div class="{{#if: {{lc:{{{1|}}}}} | Fire, Radiant | fire-radiant | {{lc:{{{1|}}}}}}}">{{trim | {{{2|{{{1}}}}}}}} </div></includeonly><noinclude>
<includeonly>{{color|{{#switch: {{{1|}}}  
; Wikitext : {{code|<nowiki>{{DamageColor|Force|1d4 + 4 Force damage.}}</nowiki>}}
| Acid = #80b000
; Result : {{DamageColor|Force|1d4 + 4 Force damage}}
| Cold = #3399cc
; Wikitext : {{code|<nowiki>{{DamageColor|Healing|1d4 + 4 Healing}}</nowiki>}}
| Fire = #ee5500
; Result : {{DamageColor|Healing|1d4 + 4 Healing}}
| 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 18: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!