Template:DamageIcon: Difference between revisions

Jump to navigation Jump to search
Add template data, add link= parameter
No edit summary
(Add template data, add link= parameter)
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 | {{trim | {{{1}}} }} Damage Icon.png | {{{2|25}}} | link = Damage Types }}
| #default = {{icon | {{trim | {{{1}}} }} Damage Icon.png | {{{2|25}}} | link = {{{link|Damage Types}}} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Usage: Fiery {{code|<nowiki>{{DamageIcon|Fire}}</nowiki>}} fire!
Usage: Fiery {{code|<nowiki>{{DamageIcon|Fire}}</nowiki>}} fire!
Line 21: Line 21:


[[Category:Damage Info Templates]] [[Category:Icon Templates]]
[[Category:Damage Info Templates]] [[Category:Icon Templates]]
</noinclude>
 
== 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>

Navigation menu