Difference between revisions of "Template:Sheltering"
From DDO Compendium
(Created Page) |
MNDeveloper (talk | contribs) |
||
(19 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>{{TemplateDocumentation | ||
|name = Sheltering | |||
|description = This template is used on equipment for the Sheltering enchantment. Sheltering adds Magical Resistance Rating, Physical Resistance Rating, or both | |||
|category=Item Enchantment Template | |||
|example1 = <nowiki>{{Sheltering|20|Physical|Insight}}</nowiki> | |||
|example1output = {{Sheltering|20|Physical|Insight}} | |||
|example2 = <nowiki>{{Sheltering|13||Quality}}</nowiki> | |||
|example2output = {{Sheltering|13||Quality}} | |||
|example3 = <nowiki>{{Sheltering|3}}</nowiki> | |||
|example3output = {{Sheltering|3}} | |||
|example4 = <nowiki>{{Sheltering|30|Both|Profane|Bloodrage Defense|When you are holding a two-handed weapon}}</nowiki> | |||
|example4output = {{Sheltering|30|Both|Profane|Bloodrage Defense|When you are holding a two-handed weapon}} | |||
|parameter1name = Enhancement Amount | |||
|parameter1description = This is the amount that the rating is increased. | |||
|parameter1values = | |||
|parameter2name = Rating | |||
|parameter2description = This is defines which rating is increased. If not specified it defaults to Both | |||
|parameter2values = | |||
* Physical | |||
* Physical Cap | |||
* Magical | |||
* Magical Cap | |||
* Both | |||
|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. | |||
|parameter3values = | |||
|parameter4name = Title | |||
|parameter4description = This is the custom title for the enchantment. | |||
|parameter4values = | |||
|parameter5name = Text | |||
|parameter5description = This is text to display before the actual enchantment description. | |||
|parameter5values = | |||
}} | |||
</noinclude> | |||
<onlyinclude>{{#switch: {{lc:{{{2}}}}} | |||
| magical = {{EnchTitle|Resistance Rating#Magical|{{BonusTypeNameConversion|{{{3|}}}|True}} {{{2}}} Sheltering +{{{1}}}|{{{4|}}}}}{{EnchBody|{{#if: {{{5|}}}|{{{5}}}, {{#ifexpr: {{{1}}} < 0||you gain}}|Passive:}} {{#ifexpr: {{{1}}} < 0||+}}{{{1}}} {{BonusTypeNameConversion|{{{3|Enhancement}}}}} {{#ifexpr: {{{1}}} < 0|penalty|bonus}} to {{{2}}} Resistance Rating.}}{{EnchCat|Sheltering|Items with Magical Sheltering|Items with Sheltering}} | |||
| magical cap = {{EnchTitle|Resistance Rating#Magical Cap|{{BonusTypeNameConversion|{{{3|}}}|True}} Magical Resistance Rating Cap +{{{1}}}|{{{4|}}}}}{{EnchBody|{{#if: {{{5|}}}|{{{5}}}, {{#ifexpr: {{{1}}} < 0||you gain}}|Passive:}} {{#ifexpr: {{{1}}} < 0||+}}{{{1}}} {{BonusTypeNameConversion|{{{3|Enhancement}}}}} {{#ifexpr: {{{1}}} < 0|penalty|bonus}} to Magical Resistance Rating Cap.}}{{EnchCat|Sheltering|Items that modify the Magical Resistance Rating Cap}} | |||
< | |||
< | | physical = {{EnchTitle|Resistance Rating#Physical|{{BonusTypeNameConversion|{{{3|}}}|True}} {{{2}}} Sheltering +{{{1}}}|{{{4|}}}}}{{EnchBody|{{#if: {{{5|}}}|{{{5}}}, {{#ifexpr: {{{1}}} < 0||you gain}}|Passive:}} {{#ifexpr: {{{1}}} < 0||+}}{{{1}}} {{BonusTypeNameConversion|{{{3|Enhancement}}}}} {{#ifexpr: {{{1}}} < 0|penalty|bonus}} to {{{2}}} Resistance Rating.}}{{EnchCat|Sheltering|Items with Physical Sheltering|Items with Sheltering}} | ||
< | | physical cap = {{EnchTitle|Resistance Rating#Physical|{{BonusTypeNameConversion|{{{3|}}}|True}} Physical Reistance Rating Cap +{{{1}}}|{{{4|}}}}}{{EnchBody|{{#if: {{{5|}}}|{{{5}}}, {{#ifexpr: {{{1}}} < 0||you gain}}|Passive:}} {{#ifexpr: {{{1}}} < 0||+}}{{{1}}} {{BonusTypeNameConversion|{{{3|Enhancement}}}}} {{#ifexpr: {{{1}}} < 0|penalty|bonus}} to Physical Resistance Rating Cap.}}{{EnchCat|Sheltering|Items that modify the Physical Resistance Rating Cap}} | ||
| #default = {{EnchTitle|Resistance Rating|{{BonusTypeNameConversion|{{{3|}}}|True}} Sheltering {{#ifexpr: {{{1}}} < 0||+}}{{{1}}}|{{{4|}}}}}{{EnchBody|{{#if: {{{5|}}}|{{{5}}}, {{#ifexpr: {{{1}}} < 0||you gain}}}} {{#ifexpr: {{{1}}} < 0||+}}{{{1}}} {{BonusTypeNameConversion|{{{3|Enhancement}}}}} {{#ifexpr: {{{1}}} < 0|penalty|bonus}} to Physical and Magical Resistance Ratings.}}{{EnchCat|Sheltering|Items with Sheltering|Items with Magical Sheltering|Items with Physical Sheltering}}}}</onlyinclude> | |||
| | |||
}} | |||
</onlyinclude> |
Latest revision as of 01:15, 7 August 2024
Sheltering[edit]
This template is used on equipment for the Sheltering enchantment. Sheltering adds Magical Resistance Rating, Physical Resistance Rating, or both
Example Usage | |
{{Sheltering|20|Physical|Insight}} | Insightful Physical Sheltering +20: Passive: +20 Insight bonus to Physical Resistance Rating. |
{{Sheltering|13||Quality}} | Quality Sheltering +13: +13 Quality bonus to Physical and Magical Resistance Ratings. |
{{Sheltering|3}} | Sheltering +3: +3 Enhancement bonus to Physical and Magical Resistance Ratings. |
{{Sheltering|30|Both|Profane|Bloodrage Defense|When you are holding a two-handed weapon}} | Bloodrage Defense: When you are holding a two-handed weapon, you gain +30 Profane bonus to Physical and Magical Resistance Ratings. |
Usage[edit]
{{Sheltering|(Enhancement Amount)|(Rating)|(Bonus Type)|(Title)|(Text)}}
Parameter Documentation | |
Enhancement Amount | This is the amount that the rating is increased. |
Rating | This is defines which rating is increased. If not specified it defaults to Both Possible Values:
|
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 custom title for the enchantment. |
Text | This is text to display before the actual enchantment description. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
Sheltering Expression error: Unrecognized punctuation character "{".{{{1}}}: Expression error: Unrecognized punctuation character "{".{{{1}}} Enhancement Expression error: Unrecognized punctuation character "{". to Physical and Magical Resistance Ratings.