Template:DamageTypeIcon
Jump to navigation
Jump to search
Documentation
In | Out | ~ | In | Out |
---|---|---|---|---|
{{DamageTypeIcon|Curse}} |
{{DamageTypeIcon|Drill}} |
|||
{{DamageTypeIcon|Electricity}} |
{{DamageTypeIcon|Explosion}} |
|||
{{DamageTypeIcon|Fall}} |
{{DamageTypeIcon|Heal}} |
|||
{{DamageTypeIcon|Holy}} |
{{DamageTypeIcon|Ice}} |
|||
{{DamageTypeIcon|Lackofair}} |
{{DamageTypeIcon|Material}} |
|||
{{DamageTypeIcon|Melee}} |
{{DamageTypeIcon|Melee-bite}} |
|||
{{DamageTypeIcon|Melee-dash}} |
{{DamageTypeIcon|Midas}} |
|||
{{DamageTypeIcon|Physics-blackhole}} |
{{DamageTypeIcon|Physics-crush}} |
|||
{{DamageTypeIcon|Physics-impact}} |
{{DamageTypeIcon|Poison}} |
|||
{{DamageTypeIcon|Projectile}} |
{{DamageTypeIcon|Radioactive}} |
|||
{{DamageTypeIcon|Slice}} |
{{DamageTypeIcon|Fire}} |
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 and Projectile types.
|
Damage instead comes from a combination of Explosion and Projectile types.
|
1em = 16px (100%) |
Damage instead comes from a combination of Explosion and Projectile types.
|
Damage instead comes from a combination of Explosion and Projectile types.
|
1em = 24px (150%) |
Damage instead comes from a combination of Explosion and Projectile types.
|
Damage instead comes from a combination of Explosion and Projectile types.
|
1em = 32px (200%) |
Damage instead comes from a combination of Explosion and Projectile types.
|
Damage instead comes from a combination of Explosion and Projectile types.
|
{{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:
{{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:
{{DamageTypeIcon|not a valid damage type}}
{{DamageTypeIcon}}
Result: