Template:Resistance: Difference between revisions
Jump to navigation
Jump to search
(add tooltip) |
(make inline-block) |
||
Line 1: | Line 1: | ||
<includeonly>{{#lvardef:degree|{{#switch: {{{2|}}}| magical = Resistant | vulnerable = Vulnerable | double = Resistant | immunity = Immune | immune = Immune | resistant = Resistant | Magical = Resistant | Vulnerable = Vulnerable | Double = Resistant | Immunity = Immune | Immune = Immune | Resistant = Resistant}} | <includeonly>{{#lvardef:degree|{{#switch: {{{2|}}}| magical = Resistant | vulnerable = Vulnerable | double = Resistant | immunity = Immune | immune = Immune | resistant = Resistant | Magical = Resistant | Vulnerable = Vulnerable | Double = Resistant | Immunity = Immune | Immune = Immune | Resistant = Resistant}} | ||
}}<span aria-label="{{#lvar:degree}} to {{{1}}}">[[File:{{{1}}} {{#switch: {{{2|}}}| magical = M | vulnerable = V | double = R | immunity = Immunity | immune = Immunity | resistant = NM | Magical = M | Vulnerable = V | Double = R | Immunity = Immunity | Immune = Immunity | Resistant = NM}}.png|{{{3|28px}}}|link=Damage Types]]</span>{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:degree}} to {{{1}}}]]}}}}</includeonly><noinclude>[[Category:Templates]] | }}<span style="display: inline-block;" aria-label="{{#lvar:degree}} to {{{1}}}">[[File:{{{1}}} {{#switch: {{{2|}}}| magical = M | vulnerable = V | double = R | immunity = Immunity | immune = Immunity | resistant = NM | Magical = M | Vulnerable = V | Double = R | Immunity = Immunity | Immune = Immunity | Resistant = NM}}.png|{{{3|28px}}}|link=Damage Types]]</span>{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:degree}} to {{{1}}}]]}}}}</includeonly><noinclude>[[Category:Templates]] | ||
Example: | Example: | ||
{{Resistance|Psychic|resistant|nocat=1}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}} | {{Resistance|Psychic|resistant|nocat=1}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}} |
Revision as of 13:02, 19 October 2023
Example: {{Resistance|Psychic|resistant}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}}
You can also use {{Resistance|Acid|immune|40px}} to make it bigger
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
type | 1 | The damage type | String | required |
resistance | 2 | How resistant?
| String | required |
size | 3 | Size of the icon.
| Number | optional |
nocat | nocat | If specified, does not insert categories. | Unknown | optional |