Difference between revisions of "Template:Hammerblock"

From DDO Compendium
 
Line 7: Line 7:
|example2 = <nowiki>{{Hammerblock|2.5|Hammerblock}}</nowiki>
|example2 = <nowiki>{{Hammerblock|2.5|Hammerblock}}</nowiki>
|example2output = {{Hammerblock|2.5|Hammerblock}}
|example2output = {{Hammerblock|2.5|Hammerblock}}
|example3 = <nowiki>{{Hammerblock|X}}</nowiki>
|example3output = {{Hammerblock|X}}
|parameter1name = Enhancement Amount
|parameter1name = Enhancement Amount
|parameter1description = This is 1/2 the amount that is reduced.  Items have this number in the title, and it is doubled in the description automatically by this template.
|parameter1description = This is 1/2 the amount that is reduced.  Items have this number in the title, and it is doubled in the description automatically by this template.
Line 12: Line 14:
|parameter2description = The title if it doesn't match the default
|parameter2description = The title if it doesn't match the default
}}</noinclude>
}}</noinclude>
<onlyinclude>{{EnchTitle|Damage Reduction|Hammerblock {{{1}}}|{{{2|}}}}}{{EnchBody|Passive: Reduces physical damage taken by {{#expr: {{{1}}}*2}}, except from Piercing or Slashing weapons. (Damage Reduction: {{#expr: {{{1}}}*2}}/Slash, Pierce)}}{{EnchCat|Hammerblock|Items with Damage Reduction}}</onlyinclude>
<onlyinclude>{{#if: {{IsNumeric|{{{1}}}}}|{{#dplvar:set|numericvalue|{{{1}}}}}|{{#dplvar:set|numericvalue|{{RomanToNumber|{{{1}}}}}}}}}{{EnchTitle|Damage Reduction|Hammerblock {{{1}}}|{{{2|}}}}}{{EnchBody|Passive: Reduces physical damage taken by {{#expr: {{#dplvar:numericvalue}}*2}}, except from Piercing or Slashing weapons. (Damage Reduction: {{#expr: {{#dplvar:numericvalue}}*2}}/Slash, Pierce)}}{{EnchCat|Hammerblock|Items with Damage Reduction}}</onlyinclude>

Latest revision as of 18:17, 20 August 2021

Hammerblock[edit]

This template is used on equipment for the Hammerblock enchantment.

Example Usage
{{Hammerblock|4}}Hammerblock 4: Passive: Reduces physical damage taken by 8, except from Piercing or Slashing weapons. (Damage Reduction: 8/Slash, Pierce)
{{Hammerblock|2.5|Hammerblock}}Hammerblock: Passive: Reduces physical damage taken by 5, except from Piercing or Slashing weapons. (Damage Reduction: 5/Slash, Pierce)
{{Hammerblock|X}}Hammerblock X: Passive: Reduces physical damage taken by 20, except from Piercing or Slashing weapons. (Damage Reduction: 20/Slash, Pierce)

Usage[edit]

{{Hammerblock|(Enhancement Amount)|(Title)}}

Parameter Documentation
Enhancement AmountThis is 1/2 the amount that is reduced. Items have this number in the title, and it is doubled in the description automatically by this template.
TitleThe title if it doesn't match the default

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


Hammerblock {{{1}}}: Passive: Reduces physical damage taken by Expression error: Unexpected * operator., except from Piercing or Slashing weapons. (Damage Reduction: Expression error: Unexpected * operator./Slash, Pierce)