Difference between revisions of "Template:Sheltering"

From DDO Compendium
 
(6 intermediate revisions by the same user not shown)
Line 32: Line 32:
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{2}}}}}
<onlyinclude>{{#switch: {{lc:{{{2}}}}}
| magical = {{#ifeq: {{FULLPAGENAME}} |Template:Sheltering||[[Category:Items with Magical Sheltering]]}}'''[[Resistance Rating#Magical|{{#if: {{{4|}}}|{{{4}}}|{{BonusTypeNameConversion|{{{3|}}}|True}} {{{2}}} Sheltering +{{{1}}}}}:]]''' {{#if: {{{5|}}}|{{{5}}}, you gain|Passive:}} +{{{1}}} {{BonusTypeNameConversion|{{{3|Enhancement}}}}} bonus to {{{2}}} Resistance Rating
| 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}}
| physical = {{#ifeq: {{FULLPAGENAME}} |Template:Sheltering||[[Category:Items with Physical Sheltering]]}}'''[[Resistance Rating#Physical|{{#if: {{{4|}}}|{{{4}}}|{{BonusTypeNameConversion|{{{3|}}}|True}} {{{2}}} Sheltering +{{{1}}}}}:]]''' {{#if: {{{5|}}}|{{{5}}}, you gain|Passive:}} +{{{1}}} {{BonusTypeNameConversion|{{{3|Enhancement}}}}} bonus to {{{2}}} Resistance Rating
 
| #default = {{#ifeq: {{FULLPAGENAME}} |Template:Sheltering||[[Category: Items with Sheltering]]}}'''[[Resistance Rating|{{#if: {{{4|}}}|{{{4}}}|{{BonusTypeNameConversion|{{{3|}}}|True}} Sheltering +{{{1}}}}}:]]''' {{#if: {{{5|}}}|{{{5}}}, you gain}} +{{{1}}} {{BonusTypeNameConversion|{{{3|Enhancement}}}}} bonus to Physical and Magical Resistance Ratings
| 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}}
}}
 
</onlyinclude>
| #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>

Latest revision as of 16:16, 18 August 2021

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 AmountThis is the amount that the rating is increased.
RatingThis is defines which rating is increased. If not specified it defaults to Both
Possible Values:
  • Physical
  • Magical
  • Both
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 custom title for the enchantment.
TextThis 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.