Difference between revisions of "Template:ElementalResistance"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 18: | Line 18: | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#switch: {{lc:{{{1}}}}} | <onlyinclude>{{#switch: {{lc:{{{1}}}}} | ||
|all={{EnchTitle|Elemental Resistance|{{BonusTypeNameConversion|{{{3|}}}|True}} Elemental Resistance {{{2}}}|{{{4|}}}}}{{EnchBody|{{#ifexpr: {{{2}}} < 0||+}}{{{2}}} {{BonusTypeNameConversion|{{#if: {{{3|}}}|{{{3}}}|Enhancement}}}} {{#ifexpr: {{{2}}} < 0|penalty|bonus}} to Resist Acid, Cold, Fire, Electricity and Sonic.}}{{EnchCat|ElementalResistance|Items with Elemental Resistance}} | |all={{EnchTitle|Elemental Resistance|{{BonusTypeNameConversion|{{{3|}}}|True}} Elemental Resistance {{#ifexpr: {{{2}}} < 0|-|+}}|{{{4|}}}}}{{EnchBody|{{#ifexpr: {{{2}}} < 0||+}}{{{2}}} {{BonusTypeNameConversion|{{#if: {{{3|}}}|{{{3}}}|Enhancement}}}} {{#ifexpr: {{{2}}} < 0|penalty|bonus}} to Resist Acid, Cold, Fire, Electricity and Sonic.}}{{EnchCat|ElementalResistance|Items with Elemental Resistance}} | ||
|#default={{EnchTitle|Elemental Resistance|{{BonusTypeNameConversion|{{{3|}}}|True}} {{{1}}} Resistance {{{2}}}|{{{4|}}}}}{{EnchBody|{{#ifexpr: {{{2}}} < 0||+}}{{{2}}} {{BonusTypeNameConversion|{{#if: {{{3|}}}|{{{3}}}|Enhancement}}}} {{#ifexpr: {{{2}}} < 0|penalty|bonus}} to Resist {{{1}}}.}}{{EnchCat|ElementalResistance|Items with {{{1}}} Resistance|Items with Elemental Resistance}} | |#default={{EnchTitle|Elemental Resistance|{{BonusTypeNameConversion|{{{3|}}}|True}} {{{1}}} Resistance {{#ifexpr: {{{2}}} < 0|-|+}}{{{2}}}|{{{4|}}}}}{{EnchBody|{{#ifexpr: {{{2}}} < 0||+}}{{{2}}} {{BonusTypeNameConversion|{{#if: {{{3|}}}|{{{3}}}|Enhancement}}}} {{#ifexpr: {{{2}}} < 0|penalty|bonus}} to Resist {{{1}}}.}}{{EnchCat|ElementalResistance|Items with {{{1}}} Resistance|Items with Elemental Resistance}} | ||
}}</onlyinclude> | }}</onlyinclude> |
Revision as of 13:03, 12 August 2021
ElementalResistance[edit]
This template is used on equipment for the Elemental Resistance enchantment. Elemental Resistance is an enchantment than aides a defender in resisting elemental damage.
Example Usage | |
{{ElementalResistance|Fire|5|Insightful}} | Insightful Fire Resistance +5: +5 Insight bonus to Resist Fire. |
{{ElementalResistance|All|5|Insightful}} | Insightful Elemental Resistance +: +5 Insight bonus to Resist Acid, Cold, Fire, Electricity and Sonic. |
Usage[edit]
{{ElementalResistance|(Element)|(Enhancement Amount)|(Bonus Type)|(Title)}}
Parameter Documentation | |
Element | This is the element that is being resisted. Use all for all elements. |
Enhancement Amount | This is the amount that is being resisted. |
Bonus Type | This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement. |
Title | This is the title of the enchantment if it isn't the same as the default. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{{1}}} Resistance Expression error: Unrecognized punctuation character "{".{{{2}}}: Expression error: Unrecognized punctuation character "{".{{{2}}} Enhancement Expression error: Unrecognized punctuation character "{". to Resist {{{1}}}.