Template:Damage icon: Difference between revisions
Jump to navigation
Jump to search
m (Added Weapon) |
HiddenDragon (talk | contribs) 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= | ||
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 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
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
type | 1 | no description | String | required |
size | 2 | Sets the icon size. | Number | optional |
link | link | Overrides the link. | String | optional |