Template:Resistance: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Category only in main) |
||
Line 1: | Line 1: | ||
<includeonly>[[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]]{{#if:{{{nocat|}}}||[[Category:{{#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}} to {{{1}}}]]}}</includeonly><noinclude>[[Category:Templates]] | <includeonly>[[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]]{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#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}} to {{{1}}}]]}}}}</includeonly><noinclude>[[Category:Templates]] | ||
Example: | Example: | ||
{{Resistance|Psychic|resistant|nocat=1}}{{Resistance|Fire|double | {{Resistance|Psychic|resistant|nocat=1}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}} | ||
{{InfoBlob|<nowiki>{{Resistance|Psychic|resistant}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}}</nowiki>}} | {{InfoBlob|<nowiki>{{Resistance|Psychic|resistant}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}}</nowiki>}} | ||
You can also use {{InfoBlob|<nowiki>{{Resistance|Acid|immune|40px}}</nowiki>}} to make it bigger {{Resistance|Acid|immune|40px | You can also use {{InfoBlob|<nowiki>{{Resistance|Acid|immune|40px}}</nowiki>}} to make it bigger {{Resistance|Acid|immune|40px}} | ||
== Template data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "type", | |||
"description": "The damage type", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "resistance", | |||
"description": "How resistant?", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"immune", | |||
"magic", | |||
"vulnerable", | |||
"resistant" | |||
], | |||
"required": true | |||
}, | |||
"3": { | |||
"label": "size", | |||
"description": "Size of the icon.", | |||
"type": "number", | |||
"default": "28" | |||
}, | |||
"nocat": { | |||
"description": "If specified, does not insert categories." | |||
} | |||
}, | |||
"format": "inline" | |||
} | |||
</templatedata></noinclude> |
Revision as of 21:52, 10 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 |