Template:Damage colour: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}  
<includeonly>{{color|{{#switch: {{{1}}}  
| Acid = #cccc00  
| Acid = #cccc00  
| Cold = #3399cc  
| Cold = #3399cc  
Line 10: Line 10:
| Thunder = #663399  
| Thunder = #663399  
| Psychic = #ff99cc  
| Psychic = #ff99cc  
}}<includeonly><noinclude>
}}|{{{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.}}


</noinclude>
</noinclude>

Revision as of 10:59, 24 January 2023


You can use this like so:

{{DamageColor|Force|That's a lotta damage.}}

Result:

That's a lotta damage.