Template:Damage icon: Difference between revisions
Jump to navigation
Jump to search
(temporary edit please ignore) Tag: Reverted |
HiddenDragon (talk | contribs) 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= | ||
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
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 |