Difference between revisions of "Template:Spearblock"
From DDO Compendium
MNDeveloper (talk | contribs) (Created page with "<noinclude>Category:TemplateCategory:Item Enchantment Template{{TemplateDocumentation |name = Spearblock |description = This template is used on equipment for the Spea...") |
MNDeveloper (talk | contribs) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>{{TemplateDocumentation | ||
|name = Spearblock | |name = Spearblock | ||
|description = This template is used on equipment for the Spearblock enchantment. Axeblock adds specific damage reduction. | |description = This template is used on equipment for the Spearblock enchantment. Axeblock adds specific damage reduction. | ||
|category=Item Enchantment Template | |||
|example1 = <nowiki>{{Spearblock|4}}</nowiki> | |example1 = <nowiki>{{Spearblock|4}}</nowiki> | ||
|example1output = {{Spearblock|4}} | |example1output = {{Spearblock|4}} | ||
|example2 = <nowiki>{{Spearblock|2.5|Spearblock}}</nowiki> | |||
|example2output = {{Spearblock|2.5|Spearblock}} | |||
|example3 = <nowiki>{{Spearblock|X}}</nowiki> | |||
|example3output = {{Spearblock|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. | ||
| | |parameter2name = Title | ||
}}</noinclude> | |parameter2description = The title if it doesn't match the default | ||
<onlyinclude> | }}</noinclude><onlyinclude>{{#if: {{IsNumeric|{{{1}}}}}|{{#dplvar:set|numericvalue|{{{1}}}}}|{{#dplvar:set|numericvalue|{{RomanToNumber|{{{1}}}}}}}}}{{EnchTitle|Damage Reduction|Spearblock {{{1}}}|{{{2|}}}}}{{EnchBody|Passive: Reduces physical damage taken by {{#expr: {{#dplvar:numericvalue}}*2}}, except from Bludgeoning or Slashing weapons. (Damage Reduction: {{#expr: {{#dplvar:numericvalue}}*2}}/Slash, Bludgeon)}}{{EnchCat|Spearblock|Items with Damage Reduction}}</onlyinclude> |
Latest revision as of 15:13, 12 August 2021
Spearblock[edit]
This template is used on equipment for the Spearblock enchantment. Axeblock adds specific damage reduction.
Example Usage | |
{{Spearblock|4}} | Spearblock 4: Passive: Reduces physical damage taken by 8, except from Bludgeoning or Slashing weapons. (Damage Reduction: 8/Slash, Bludgeon) |
{{Spearblock|2.5|Spearblock}} | Spearblock: Passive: Reduces physical damage taken by 5, except from Bludgeoning or Slashing weapons. (Damage Reduction: 5/Slash, Bludgeon) |
{{Spearblock|X}} | Spearblock X: Passive: Reduces physical damage taken by 20, except from Bludgeoning or Slashing weapons. (Damage Reduction: 20/Slash, Bludgeon) |
Usage[edit]
{{Spearblock|(Enhancement Amount)|(Title)}}
Parameter Documentation | |
Enhancement Amount | 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. |
Title | The 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.
Spearblock {{{1}}}: Passive: Reduces physical damage taken by Expression error: Unexpected * operator., except from Bludgeoning or Slashing weapons. (Damage Reduction: Expression error: Unexpected * operator./Slash, Bludgeon)