Template:Damage icon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m Added Weapon
m HiddenDragon moved page Template:DamageIcon to Template:Damage icon
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
| Weapon = {{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=
Usage: Fiery {{code|<nowiki>{{DamageIcon|Fire}}</nowiki>}} fire!
Displays a small icon according to the damage type.


Result: Fiery {{DamageIcon|Fire}} fire!
== Examples ==
----
{{Template demo
Also supports healing.
| style = table
 
| caption 1 = Default
Usage: Helpful {{code|<nowiki>{{DamageIcon|Healing}}</nowiki>}} healing!
| <nowiki>Fiery {{DamageIcon|Fire}} fire!</nowiki>
 
| caption 2 = Healing
Result: Helpful {{DamageIcon|Healing}} healing!
| <nowiki>Helpful {{DamageIcon|Healing}} healing!</nowiki>
----
| caption 3 = Bigger icon
You can make it bigger, too:
| <nowiki>Fiery {{DamageIcon|Fire|40}} fire!</nowiki>
 
}}
Usage: Fiery {{code|<nowiki>{{DamageIcon|Fire|40}}</nowiki>}} fire!
 
Result: Fiery {{DamageIcon|Fire|40}} fire!
 
[[Category:Damage info templates]] [[Category:Icon Templates]]


== Template data ==
== Template data ==
Line 44: 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