1,931
edits
m
Added Weapon
No edit summary Tag: Manual revert |
m (Added Weapon) |
||
(13 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#switch: {{{1}}} | ||
Usage: {{code|<nowiki>{{DamageIcon|Fire}}</nowiki>}} | | Healing = {{icon | Healing Icon.png | {{{2|25}}} | link = {{{link|}}}}} | ||
| 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}}} }} | |||
}}</includeonly><noinclude> | |||
Usage: Fiery {{code|<nowiki>{{DamageIcon|Fire}}</nowiki>}} fire! | |||
Result: {{DamageIcon|Fire}} | Result: Fiery {{DamageIcon|Fire}} fire! | ||
</noinclude> | ---- | ||
Also supports healing. | |||
Usage: Helpful {{code|<nowiki>{{DamageIcon|Healing}}</nowiki>}} healing! | |||
Result: Helpful {{DamageIcon|Healing}} healing! | |||
---- | |||
You can make it bigger, too: | |||
Usage: Fiery {{code|<nowiki>{{DamageIcon|Fire|40}}</nowiki>}} fire! | |||
Result: Fiery {{DamageIcon|Fire|40}} fire! | |||
[[Category:Damage info templates]] [[Category:Icon Templates]] | |||
== 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></noinclude> |