Difference between revisions of "Template:ElementalResistance"

From DDO Compendium
 
(13 intermediate revisions by the same user not shown)
Line 5: Line 5:
|example1 = <nowiki>{{ElementalResistance|Fire|5|Insightful}}</nowiki>
|example1 = <nowiki>{{ElementalResistance|Fire|5|Insightful}}</nowiki>
|example1output = {{ElementalResistance|Fire|5|Insightful}}
|example1output = {{ElementalResistance|Fire|5|Insightful}}
|example2 = <nowiki>{{ElementalResistance|All|5|Insightful}}</nowiki>
|example2output = {{ElementalResistance|All|5|Insightful}}
|parameter1name = Element
|parameter1name = Element
|parameter1description = This is the element that is being resisted.
|parameter1description = This is the element that is being resisted. Use '''all''' for all elements.
|parameter1values =
|parameter2name = Enhancement Amount
|parameter2name = Enhancement Amount
|parameter2description = This is the amount that is being resisted.
|parameter2description = This is the amount that is being resisted.
|parameter2values =
|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.
|parameter3values =  
|parameter4name = Title
}}
|parameter4description = This is the title of the enchantment if it isn't the same as the default.
}}
</noinclude>
</noinclude>
<onlyinclude>[[Category:Items with {{{3|}}} {{{1}}} Resistance]]'''[[{{{3|}}} {{{1}}} Resistance|{{{3|}}} {{{1}}} Resistance {{{2}}}:]]''' {{#ifexpr: {{{2}}} < 0||+}}{{{2}}} {{{3|Enhancement}}} {{#ifexpr: {{{2}}} < 0|penalty|bonus to Resist {{{1}}}}}.</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
ElementThis is the element that is being resisted. Use all for all elements.
Enhancement AmountThis is the amount that is being resisted.
Bonus TypeThis is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement.
TitleThis 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}}}.