Difference between revisions of "Template:Sheltering"

From DDO Compendium
m (added special type to naming of magical and physical)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>[[Category:Template]][[Category:Item Enchantment Template]]{{TemplateDocumentation
<noinclude>{{TemplateDocumentation
|name = Sheltering  
|name = Sheltering  
|description = This template is used on equipment for the Sheltering enchantment.  Sheltering adds Magical Resistance Rating, Physical Resistance Rating, or both
|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>
|example1 = <nowiki>{{Sheltering|20|Physical|Insight}}</nowiki>
|example1output = {{Sheltering|20|Physical|Insight}}
|example1output = {{Sheltering|20|Physical|Insight}}
Line 8: Line 9:
|example3 = <nowiki>{{Sheltering|3}}</nowiki>
|example3 = <nowiki>{{Sheltering|3}}</nowiki>
|example3output = {{Sheltering|3}}
|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
|parameter1name = Enhancement Amount
|parameter1description = This is the amount that the rating is increased.
|parameter1description = This is the amount that the rating is increased.
Line 20: Line 23:
|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 =  
|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>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{2}}}}}
<onlyinclude>{{#switch: {{lc:{{{2}}}}}
| magical = [[Category:Items with Magical Sheltering]]'''[[Resistance Rating#Magical|{{{3|}}} {{{2}}} Sheltering +{{{1}}}:]]''' Passive: +{{{1}}} {{{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 = [[Category:Items with Physical Sheltering]]'''[[Resistance Rating#Physical|{{{3|}}}{{{2}}} Sheltering +{{{1}}}:]]''' Passive: +{{{1}}} {{{3|Enhancement}}} bonus to {{{2}}} Resistance Rating
 
| #default = [[Category: Items with Sheltering]]'''[[Resistance Rating|{{{3|}}} Sheltering +{{{1}}}:]]''' +{{{1}}} {{{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.