Template:Resistance: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 3: Line 3:
<div class="bg3wiki-imagetext-text" style="width: {{{3|5em}}}; text-align: center; font-size:77%; font-weight: bold;  margin: 0.3em 0.1em 0.2em 0.1em; padding: 0.3em 0.1em 0.3em 0.1em;">{{damageColor|{{{1}}}|{{{1}}}}}</div>
<div class="bg3wiki-imagetext-text" style="width: {{{3|5em}}}; text-align: center; font-size:77%; font-weight: bold;  margin: 0.3em 0.1em 0.2em 0.1em; padding: 0.3em 0.1em 0.3em 0.1em;">{{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;  margin: 0.2em 0.1em 0.3em 0.1em; padding: 0.5em 0.1em 0.3em 0.1em;">{{#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;  margin: 0.2em 0.1em 0.3em 0.1em; padding: 0.5em 0.1em 0.3em 0.1em;">&nbsp;{{#lvar:degree}}&nbsp;</div></div>{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:degree}} to {{{1}}}]]}}}}</includeonly><noinclude>{{documentation|content=[[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 17:11, 28 December 2023

Template documentation

Example:

Psychic
Psychic NM.png
 Resistant 
Fire
Fire R.png
 Resistant 
Magic
Magic M.png
 Resistant 
Thunder
Thunder Immunity.png
 Immune 
Radiant
Radiant V.png
 Vulnerable 

{{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
Acid
Acid Immunity.png
 Immune 

Template data

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
type1

The damage type

Stringrequired
resistance2

How resistant?

Suggested values
immune magic vulnerable resistant
Stringrequired
size3

Size of the icon.

Default
28
Numberoptional
nocatnocat

If specified, does not insert categories.

Unknownoptional