Template:DamageIcon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (update to support healing icon, mostly for other templates that transclude this template)
No edit summary
Line 1: Line 1:
<includeonly>{{#ifeq: {{{1}}} | Healing | {{icon|Healing Icon.png|{{{2|25}}}|link=}} | {{icon|{{{1}}} Damage Icon.png|{{{2|25}}}|link=Damage Types}}}}</includeonly><noinclude>
<includeonly>{{#switch: {{{1}}}
| Healing = {{icon|Healing Icon.png|{{{2|25}}}|link=}}
| Physical = {{icon|Slashing Damage Icon.png|{{{2|25}}}|link=Damage Types}}
| #default = {{icon|{{{1}}} Damage Icon.png|{{{2|25}}}|link=Damage Types}}
}}</includeonly><noinclude>
Usage: Fiery {{code|<nowiki>{{DamageIcon|Fire}}</nowiki>}} fire!
Usage: Fiery {{code|<nowiki>{{DamageIcon|Fire}}</nowiki>}} fire!



Revision as of 18:13, 16 July 2023

Usage: Fiery {{DamageIcon|Fire}} fire!

Result: Fiery Damage Types fire!


Also supports healing.

Usage: Helpful {{DamageIcon|Healing}} healing!

Result: Helpful healing!


You can make it bigger, too:

Usage: Fiery {{DamageIcon|Fire|40}} fire!

Result: Fiery Damage Types fire!