Difference between revisions of "Template:Vitality"

From DDO Compendium
(Created page with "=== Vitality === <noinclude>This template is used for all bonuses to hit points via Vitality.Category:Template Used in this manner: <br><nowiki>{{Vitality|Modifier}}</now...")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Vitality ===
<noinclude>{{TemplateDocumentation
<noinclude>This template is used for all bonuses to hit points via Vitality.[[Category:Template]]
|name = Vitality  
 
|description = This template is used on equipment for the Vitality enchantment.  Vitality is an enchantment that adds a specific bonus to hit points.
Used in this manner:
|category=Item Enchantment Template
<br><nowiki>{{Vitality|Modifier}}</nowiki><br>
|example1 = <nowiki>{{Vitality|3}}</nowiki>
<br>Such that <nowiki>{{Vitality|+3}}</nowiki> results in<br>
|example1output = {{Vitality|3}}
<br>{{Vitality|+3}}<br>
|example2 = <nowiki>{{Vitality|3|Pirate}}</nowiki>
|example2output = {{Vitality|3|Pirate}}
|parameter1name = Enhancement Amount
|parameter1description = This is the amount that hit points are increased.
|parameter1values =
|parameter2name = Bonus Type
|parameter2description = This is used to add special types of bonuses.
|parameter2values =
* Pirate
}}
</noinclude>
</noinclude>


=== Template ===
<onlyinclude>{{EnchTitle|Vitality#{{{2|}}}|{{ucfirst:{{lc:{{{2|}}}}}}} Vitality {{#ifexpr: {{{1}}} < 0||+}}{{{1}}}}}{{EnchBody|{{#switch: {{lc:{{{2}}}}}
<onlyinclude>[[Category: Items with a {{{2|}}} Vitality]][[Combat Mastery | '''{{{2|}}} Vitality {{{1}}}:''']] Passive: {{{1}}} Vitality {{#ifexpr: {{{1}}} < 0|penalty|bonus}} to Hit Points.</onlyinclude>
| pirate = You gain the toughness of a pirate, which bestows a +{{{1}}} bonus to your maximum hit points.  This stacks with all bonuses except itself.
| #default = Passive: {{#ifexpr: {{{1}}} < 0||+}}{{{1}}} Vitality {{#ifexpr: {{{1}}} < 0|penalty|bonus}} to Hit Points.}}}}{{EnchCat|Vitality|Items with a {{ucfirst:{{lc:{{{2|}}}}}}} Vitality|Items that Increase Hit Points}}</onlyinclude>

Latest revision as of 17:37, 14 December 2019

Vitality[edit]

This template is used on equipment for the Vitality enchantment. Vitality is an enchantment that adds a specific bonus to hit points.

Example Usage
{{Vitality|3}}Vitality +3: Passive: +3 Vitality bonus to Hit Points.
{{Vitality|3|Pirate}}Pirate Vitality +3: You gain the toughness of a pirate, which bestows a +3 bonus to your maximum hit points. This stacks with all bonuses except itself.

Usage[edit]

{{Vitality|(Enhancement Amount)|(Bonus Type)}}

Parameter Documentation
Enhancement AmountThis is the amount that hit points are increased.
Bonus TypeThis is used to add special types of bonuses.
Possible Values:
  • Pirate

Template

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



Vitality Expression error: Unrecognized punctuation character "{".{{{1}}}: Passive: Expression error: Unrecognized punctuation character "{".{{{1}}} Vitality Expression error: Unrecognized punctuation character "{". to Hit Points.