Template:DamageIcon: Difference between revisions

Template page
No edit summary
m (Added Weapon)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{icon|{{{1}}} Damage Icon.png|{{{2|25}}}|link={{{link|Damage Types}}}}}</includeonly><noinclude>
<includeonly>{{#switch: {{{1}}}
| 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!
Usage: Fiery {{code|<nowiki>{{DamageIcon|Fire}}</nowiki>}} fire!


Result: Fiery {{DamageIcon|Fire}} fire!
Result: Fiery {{DamageIcon|Fire}} fire!
----
Also supports healing.


Usage: Helpful {{code|<nowiki>{{DamageIcon|Healing}}</nowiki>}} healing!
Result: Helpful {{DamageIcon|Healing}} healing!
----
You can make it bigger, too:
You can make it bigger, too:


Line 9: Line 20:


Result: Fiery {{DamageIcon|Fire|40}} fire!
Result: Fiery {{DamageIcon|Fire|40}} fire!
</noinclude>
 
[[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>

Latest revision as of 09:22, 20 December 2023

Usage: Fiery {{DamageIcon|Fire}} fire!

Result: Fiery Damage Types fire!


Also supports healing.

Usage: Helpful {{DamageIcon|Healing}} healing!

Result: Helpful healing!


You can make it bigger, too:

Usage: Fiery {{DamageIcon|Fire|40}} fire!

Result: Fiery Damage Types fire!

Template data

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
type1

no description

Stringrequired
size2

Sets the icon size.

Numberoptional
linklink

Overrides the link.

Stringoptional