Template:DamageTypeIcon

From Noita Wiki
Jump to navigation Jump to search



List of possible icons
In Out ~ In Out
{{DamageTypeIcon|Curse}}
Curse Damage
{{DamageTypeIcon|Drill}}
Drill Damage
{{DamageTypeIcon|Electricity}}
Electricity Damage
{{DamageTypeIcon|Explosion}}
Explosion Damage
{{DamageTypeIcon|Fall}}
Fall Damage
{{DamageTypeIcon|Heal}}
Heal Damage
{{DamageTypeIcon|Holy}}
Holy Damage
{{DamageTypeIcon|Ice}}
Ice Damage
{{DamageTypeIcon|Lackofair}}
Lackofair Damage
{{DamageTypeIcon|Material}}
Material Damage
{{DamageTypeIcon|Melee}}
Melee Damage
{{DamageTypeIcon|Melee-bite}}
Melee-bite Damage
{{DamageTypeIcon|Melee-dash}}
Melee-dash Damage
{{DamageTypeIcon|Midas}}
Midas Damage
{{DamageTypeIcon|Physics-blackhole}}
Physics-blackhole Damage
{{DamageTypeIcon|Physics-crush}}
Physics-crush Damage
{{DamageTypeIcon|Physics-impact}}
Physics-impact Damage
{{DamageTypeIcon|Poison}}
Poison Damage
{{DamageTypeIcon|Projectile}}
Projectile Damage
{{DamageTypeIcon|Radioactive}}
Radioactive Damage
{{DamageTypeIcon|Slice}}
Slice Damage
{{DamageTypeIcon|Fire}}
Fire Damage


Example 1:
Inline using px and em

You can use em units so the image scales with the text. The default size for the image is 1.4em, meaning it will generally look good with the size of containing text. If you need the image to always be a fixed size, use a px value.

Fixed px value:

Damage instead comes from a combination of {{DamageTypeIcon|Explosion|size=24px}} [[Explosion]] and {{DamageTypeIcon|Projectile|size=10px}} [[Projectile]] types.

Custom em size:

Damage instead comes from a combination of {{DamageTypeIcon|Explosion|size=2em}} [[Explosion]] and {{DamageTypeIcon|Projectile|size=1em}} [[Projectile]] types.

Table showing how em sizes scale with the text.

Result:
size = 16px size = 1.4em (default)
1em = 8px
(50%)
Damage instead comes from a combination of Explosion Damage Explosion and Projectile Damage Projectile types.
Damage instead comes from a combination of Explosion Damage Explosion and Projectile Damage Projectile types.
1em = 16px
(100%)
Damage instead comes from a combination of Explosion Damage Explosion and Projectile Damage Projectile types.
Damage instead comes from a combination of Explosion Damage Explosion and Projectile Damage Projectile types.
1em = 24px
(150%)
Damage instead comes from a combination of Explosion Damage Explosion and Projectile Damage Projectile types.
Damage instead comes from a combination of Explosion Damage Explosion and Projectile Damage Projectile types.
1em = 32px
(200%)
Damage instead comes from a combination of Explosion Damage Explosion and Projectile Damage Projectile types.
Damage instead comes from a combination of Explosion Damage Explosion and Projectile Damage Projectile types.
Example 2:
Specifying size
{{DamageTypeIcon|Holy}}
{{DamageTypeIcon|Holy|size=1em}}
{{DamageTypeIcon|Holy|size=2em}}

{{DamageTypeIcon|Holy|size=8px}}
{{DamageTypeIcon|Holy|size=16px}}
{{DamageTypeIcon|Holy|size=24px}}
{{DamageTypeIcon|Holy|size=32px}}
{{DamageTypeIcon|Holy|size=40px}}
{{DamageTypeIcon|Holy|size=48px}}
Result:
Holy Damage
Holy Damage
Holy Damage
Holy Damage
Holy Damage
Holy Damage
Holy Damage
Holy Damage
Holy Damage


Example 3:
Labels
{{DamageTypeIcon|Holy|label=1}}
{{DamageTypeIcon|Holy|label=1|size=1em}}
{{DamageTypeIcon|Holy|label=1|size=2em}}

{{DamageTypeIcon|Holy|label=1|size=8px}}
{{DamageTypeIcon|Holy|label=1|size=16px}}
{{DamageTypeIcon|Holy|label=Yes|size=24px}}
{{DamageTypeIcon|Holy|label=1|size=32px}}
{{DamageTypeIcon|Holy|label=1|size=40px}}
{{DamageTypeIcon|Holy|label|size=48px}}
Result:

Holy Damage Holy Damage Holy Damage Holy Damage Holy Damage Holy Damage Holy Damage Holy Damage Holy Damage


Example 4:
Invalid or missing damage type
{{DamageTypeIcon|not a valid damage type}}

{{DamageTypeIcon}}
Result:

[DamageTypeIcon: Invalid input 'not a valid damage type']

[DamageTypeIcon: Empty input]