Difference between revisions of "Template:ElementalResistance"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
|parameter1name = Element | |parameter1name = Element | ||
|parameter1description = This is the element that is being resisted. Use '''all''' for all elements. | |parameter1description = This is the element that is being resisted. Use '''all''' for all elements. | ||
|parameter2name = Enhancement Amount | |parameter2name = Enhancement Amount | ||
|parameter2description = This is the amount that is being resisted. | |parameter2description = This is the amount that is being resisted. | ||
|parameter3name = Bonus Type | |parameter3name = Bonus Type | ||
|parameter3description = This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement. | |parameter3description = This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement. | ||
| | |parameter4name = Title | ||
}} | |parameter4description = This is the title of the enchantment if it isn't the same as the default. | ||
}} | |||
</noinclude> | </noinclude> | ||
<onlyinclude> | <onlyinclude>{{#switch: {{lc:{{{1}}}}} | ||
|all={{EnchTitle|Elemental Resistance|{{BonusTypeNameConversion|{{{3|}}}|True}} Elemental Resistance {{#ifexpr: {{{2}}} < 0|-|+}}{{{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 Acid Resistance|Items with Sonic Resistance|Items with Cold Resistance|Items with Fire Resistance|Items with Electric Resistance|Items with Elemental Resistance}} | |||
|allnosonic={{EnchTitle|Elemental Resistance|{{BonusTypeNameConversion|{{{3|}}}|True}} Elemental Resistance {{#ifexpr: {{{2}}} < 0|-|+}}{{{2}}}|{{{4|}}}}}{{EnchBody|{{#ifexpr: {{{2}}} < 0||+}}{{{2}}} {{BonusTypeNameConversion|{{#if: {{{3|}}}|{{{3}}}|Enhancement}}}} {{#ifexpr: {{{2}}} < 0|penalty|bonus}} to Resist Acid, Cold, Fire, and Electricity.}}{{EnchCat|ElementalResistance|Items with Acid Resistance|Items with Cold Resistance|Items with Fire Resistance|Items with Electric 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> |
Latest revision as of 12:40, 25 July 2023
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: +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}}}.