Difference between revisions of "Template:ElementalResistance"
From DDO Compendium
MNDeveloper (talk | contribs) (Created page with "<noinclude>This template is used for enhancements to Elemental Resistance.Category:Template Used in this manner: <br><nowiki>{{ElementalResistance|(element)|(Modifier)|(M...") |
MNDeveloper (talk | contribs) |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This template is used for | <noinclude>{{TemplateDocumentation | ||
|name = ElementalResistance | |||
|description = This template is used on equipment for the Elemental Resistance enchantment. Elemental Resistance is an enchantment than aides a defender in resisting elemental damage. | |||
|category=Item Enchantment Template | |||
|example1 = <nowiki>{{ElementalResistance|Fire|5|Insightful}}</nowiki> | |||
|example1output = {{ElementalResistance|Fire|5|Insightful}} | |||
|example2 = <nowiki>{{ElementalResistance|All|5|Insightful}}</nowiki> | |||
|example2output = {{ElementalResistance|All|5|Insightful}} | |||
|parameter1name = Element | |||
|parameter1description = This is the element that is being resisted. Use '''all''' for all elements. | |||
|parameter2name = Enhancement Amount | |||
|parameter2description = This is the amount that is being resisted. | |||
|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. | |||
|parameter4name = Title | |||
|parameter4description = This is the title of the enchantment if it isn't the same as the default. | |||
}} | |||
</noinclude> | |||
<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}}}.