Template:Resistance: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Reverted |
||
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}} | ||
}}<div class="bg3wiki-imagetext" style="display: inline-table; margin-top 0.3em; margin-right: 0.1em; margin-bottom; 0.3em; margin-left: 0.1em;"> | }}<div class="bg3wiki-imagetext" style="display: inline-table; margin-top 0.3em; margin-right: 0.1em; margin-bottom; 0.3em; margin-left: 0.1em;"> | ||
<div class="bg3wiki-imagetext-text" style="width: {{{3|5em}}}; text-align: center; font-size: | <div class="bg3wiki-imagetext-text" style="width: {{{3|5em}}}; text-align: center; font-size:73%; font-weight: bold; padding: 0.1em; padding-bottom: 0.3em;">{{damageColor|{{{1}}}|{{{1}}}}}</div> | ||
<div class="bg3wiki-imagetext-image" style="display: flex; justify-content: center; align-items: center; height: {{{3|28px}}};">[[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=Resistance]]</div> | <div class="bg3wiki-imagetext-image" style="display: flex; justify-content: center; align-items: center; height: {{{3|28px}}};">[[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=Resistance]]</div> | ||
<div class="bg3wiki-imagetext-text {{#ifeq: {{#lvar:degree}} | Vulnerable | bg3wiki-imagetext-text-vulnerable}} {{#ifeq: {{#lvar:degree}} | Resistant | bg3wiki-imagetext-text-resistant}} {{#ifeq: {{#lvar:degree}} | Immune | bg3wiki-imagetext-text-immune}}" style="width: {{{3|5em}}}; text-align: center; font-size:73%; font-weight: bold; padding: 0.1em; padding-top: 0.5em;">{{#lvar:degree}}</div></div>{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:degree}} to {{{1}}}]]}}}}</includeonly><noinclude>{{documentation|content=[[Category:Templates]] | <div class="bg3wiki-imagetext-text {{#ifeq: {{#lvar:degree}} | Vulnerable | bg3wiki-imagetext-text-vulnerable}} {{#ifeq: {{#lvar:degree}} | Resistant | bg3wiki-imagetext-text-resistant}} {{#ifeq: {{#lvar:degree}} | Immune | bg3wiki-imagetext-text-immune}}" style="width: {{{3|5em}}}; text-align: center; font-size:73%; font-weight: bold; padding: 0.1em; padding-top: 0.5em;">{{#lvar:degree}}</div></div>{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:degree}} to {{{1}}}]]}}}}</includeonly><noinclude>{{documentation|content=[[Category:Templates]] |
Revision as of 18:47, 27 December 2023
Template documentation
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 biggerTemplate 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 |