Template:Damage colour: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Undo revision 7735 by Taylan (talk))
Tag: Undo
(Use properly namespaced CSS class names. (bg3wiki-blah-blah))
 
(21 intermediate revisions by 5 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>
| 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>

Latest revision as of 18: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!