Template:Damage icon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
Willowisp (talk | contribs)
temporary edit please ignore
Tag: Reverted
m HiddenDragon moved page Template:DamageIcon to Template:Damage icon
 
(4 intermediate revisions by 4 users not shown)
Line 2: Line 2:
| Healing = {{icon | Healing Icon.png | {{{2|25}}} | link = {{{link|}}}}}
| Healing = {{icon | Healing Icon.png | {{{2|25}}} | link = {{{link|}}}}}
| Physical = {{icon | Slashing Damage Icon.png | {{{2|25}}} | link = {{{link|Damage Types}}} }}
| Physical = {{icon | Slashing Damage Icon.png | {{{2|25}}} | link = {{{link|Damage Types}}} }}
| Weapon = {{icon | Slashing Damage Icon.png | {{{2|25}}} | link = {{{link|Damage Types}}} }}
| #default = {{icon | {{trim | {{{1}}} }} Damage Icon.png | {{{2|25}}} | link = {{{link|Damage Types}}} }}
| #default = {{icon | {{trim | {{{1}}} }} Damage Icon.png | {{{2|25}}} | link = {{{link|Damage Types}}} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{Documentation|content=
[[Category:Damage info templates]] [[Category:Icon Templates]]
Displays a small icon according to the damage type.
 
== Examples ==
{{Template demo
| style = table
| caption 1 = Default
| <nowiki>Fiery {{DamageIcon|Fire}} fire!</nowiki>
| caption 2 = Healing
| <nowiki>Helpful {{DamageIcon|Healing}} healing!</nowiki>
| caption 3 = Bigger icon
| <nowiki>Fiery {{DamageIcon|Fire|40}} fire!</nowiki>
}}


== Template data ==
== Template data ==
Line 27: Line 39:
"format": "inline"
"format": "inline"
}
}
</templatedata></noinclude>
</templatedata>
 
}}
[[Category:Templates]]
[[Category:Damage info templates]]
[[Category:Icon templates]]
</noinclude>

Latest revision as of 11:04, 19 January 2025

Template documentation

Displays a small icon according to the damage type.

Examples

Example Markup Renders as
Default
Fiery {{DamageIcon|Fire}} fire!
Fiery Damage Types fire!
Healing
Helpful {{DamageIcon|Healing}} healing!
Helpful healing!
Bigger icon
Fiery {{DamageIcon|Fire|40}} fire!
Fiery Damage Types fire!

Template data

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
type1

no description

Stringrequired
size2

Sets the icon size.

Numberoptional
linklink

Overrides the link.

Stringoptional