Template:Resistance: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
(Reverting since we are solving this another way, should still be removed elsehwer) |
||
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 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}} | ||
Line 44: | Line 41: | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata></noinclude> |
Revision as of 20:28, 29 December 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 |