Difference between revisions of "Template:Sheltering"

From DDO Compendium
(Fixed Magical)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>Usage: <nowiki>{{Sheltering|(Modifier)|(Type)|(Mod Type)}}</nowiki><br><br>
<noinclude>{{TemplateDocumentation
 
|name = Sheltering
* (Type) Leave this blank or include "All" if it is for both Physical and Magical
|description = This template is used on equipment for the Sheltering enchantment.  Sheltering adds Magical Resistance Rating, Physical Resistance Rating, or both
* (Mod Type) This is insight or such, leave blank if regular
|category=Item Enchantment Template
<br><br>Examples:
|example1 = <nowiki>{{Sheltering|20|Physical|Insight}}</nowiki>
 
|example1output = {{Sheltering|20|Physical|Insight}}
<br><nowiki>{{Sheltering|20|Physical|Insight}}</nowiki>
|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
* Magical
* 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}}


<br>{{Sheltering|20|Physical|Insight}}
| 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}}


<br><nowiki>{{Sheltering|13||Quality}}</nowiki>
| #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>
 
<br>{{Sheltering|13||Quality}}
 
<br><nowiki>{{Sheltering|3}}</nowiki>
 
<br>{{Sheltering|3}}
[[Category:Template]]
 
 
<br><br>
</noinclude>
<onlyinclude>{{#switch: {{{2}}}
| Magical
| Physical = [[Category:Items with {{{2}}} Sheltering]][[{{{3|}}} {{{2}}} Resistance Rating|{{{2}}} Sheltering +{{{1}}}:]] Passive: +{{{1}}} {{{3|Enhancement}}} bonus to {{{2}}} Resistance Rating
| #default = [[Category: Items with Sheltering]][[Sheltering|{{{3|}}} Sheltering +{{{1}}}:]] +{{{1}}} {{{3|Enhancement}}} bonus to Physical and Magical Resistance Ratings
}}
</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.