Template:Damage icon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) m (HiddenDragon moved page Template:DamageIcon to Template:Damage icon) |
||
(8 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1}}} | <includeonly>{{#switch: {{{1}}} | ||
| Healing = {{icon|Healing Icon.png|{{{2|25}}}|link=}} | | Healing = {{icon | Healing Icon.png | {{{2|25}}} | link = {{{link|}}}}} | ||
| Physical = {{icon|Slashing Damage Icon.png|{{{2|25}}}|link=Damage Types}} | | Physical = {{icon | Slashing Damage Icon.png | {{{2|25}}} | link = {{{link|Damage Types}}} }} | ||
| #default = {{icon|{{{1}}} Damage Icon.png|{{{2|25}}}|link=Damage Types}} | | Weapon = {{icon | Slashing Damage Icon.png | {{{2|25}}} | link = {{{link|Damage Types}}} }} | ||
}}</includeonly><noinclude> | | #default = {{icon | {{trim | {{{1}}} }} Damage Icon.png | {{{2|25}}} | link = {{{link|Damage Types}}} }} | ||
}}</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 == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "type", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "size", | |||
"description": "Sets the icon size.", | |||
"type": "number" | |||
}, | |||
"link": { | |||
"description": "Overrides the link.", | |||
"type": "string" | |||
} | |||
}, | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
}} | |||
[[Category:Templates]] | |||
[[Category:Damage info templates]] | |||
[[Category:Icon templates]] | |||
[[Category:Damage | |||
</noinclude> | </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 |