Template:Damage colour: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Use properly namespaced CSS class names. (bg3wiki-blah-blah))
 
(28 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}  
<includeonly><span class="bg3wiki-damage-type-{{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}}
| Lightning = #3366cc
| Necrotic = #66cc66
| Poison = #99cc00
| Radiant = #ffcc00
| Thunder = #663399
| Psychic = #ff99cc
}}<includeonly><noinclude>


List of all colors:
* {{DamageColor|Acid|Acid}}
* {{DamageColor|Cold|Cold}}
* {{DamageColor|Fire|Fire}}
* {{DamageColor|Force|Force}}
* {{DamageColor|Healing|Healing}}
* {{DamageColor|Lightning|Lightning}}
* {{DamageColor|Necrotic|Necrotic}}
* {{DamageColor|Poison|Poison}}
* {{DamageColor|Radiant|Radiant}}
* {{DamageColor|Thunder|Thunder}}
* {{DamageColor|Psychic|Psychic}}
* {{DamageColor|Physical|Physical}}
* {{DamageColor|Piercing|Piercing}}
* {{DamageColor|Bludgeoning|Bludgeoning}}
* {{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>

Latest revision as of 19:39, 10 September 2024

Wikitext
{{DamageColor|Force|1d4 + 4 Force damage.}}
Result
1d4 + 4 Force damage
Wikitext
{{DamageColor|Healing|1d4 + 4 Healing}}
Result
1d4 + 4 Healing

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!