Difference between revisions of "Template:Vitality"

From DDO Compendium
Line 1: Line 1:
=== Vitality ===
<noinclude>[[Category:Template]][[Category:Item Enchantment Template]]{{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:
|example1 = <nowiki>{{Vitality|3}}</nowiki>
<br><nowiki>{{Vitality|amount|modifier (opt)}}</nowiki><br>
|example1output = {{Vitality|3}}
<br>Such that <nowiki>{{Vitality|+3}}</nowiki> results in<br>
|example2 = <nowiki>{{Vitality|3|Pirate}}</nowiki>
<br>{{Vitality|+3}}<br>
|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>[[Category: Items with a {{{2|}}} Vitality]][[{{{2|}}} Vitality | '''{{{2|}}} Vitality {{{1}}}:''']] {{#switch: {{lc:{{{2}}}}}
<onlyinclude>[[Category: Items with a {{{2|}}} Vitality]][[{{{2|}}} Vitality | '''{{{2|}}} Vitality {{{1}}}:''']] {{#switch: {{{2}}}
| 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.
| 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.}}</onlyinclude>
| #default = Passive: {{{1}}} Vitality {{#ifexpr: {{{1}}} < 0|penalty|bonus}} to Hit Points.}}</onlyinclude>

Revision as of 01:21, 6 May 2018

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 {{{1}}}: Passive: Expression error: Unrecognized punctuation character "{".{{{1}}} Vitality Expression error: Unrecognized punctuation character "{". to Hit Points.