Difference between revisions of "Template:TendonSlice"

From DDO Compendium
Line 5: Line 5:
|example1 = <nowiki>{{TendonSlice|3}}</nowiki>
|example1 = <nowiki>{{TendonSlice|3}}</nowiki>
|example1output = {{TendonSlice|3}}
|example1output = {{TendonSlice|3}}
|example2 = <nowiki>{{TendonSlice|3|Percent}}</nowiki>
|example2output = {{TendonSlice|3|Percent}}
|parameter1name = Enhancement Amount
|parameter1name = Enhancement Amount
|parameter1description = This is the amount that the slow movement bonus is increased.
|parameter1description = This is the amount that the slow movement bonus is increased.
|parameter1values =  
|parameter2name = Type
|parameter2description = This is the type of the tendon slice
|parameter2values=
* Percent (value is a direct percent)
* default - value is a number, and the percent is calculated
}}
}}
</noinclude>
</noinclude>
<onlyinclude>[[Category: Items with a Bonus to Tendon Slice]][[Tendon Slice | '''Tendon Slice +{{{1}}}:''']] On Hit: {{#expr:{{{1}}}*2}}% chance to slow target's movement by 50% for 3 seconds.</onlyinclude>
<onlyinclude>[[Category: Items with a Bonus to Tendon Slice]]{{#switch: {{lc:{{{2}}}}}
|percent=[[Tendon Slice | '''Tendon Slice {{{1}}}%:''']] This effect gives a {{{1}}}% chance to Hamstring the target for each attack that does damage.
|#default=[[Tendon Slice | '''Tendon Slice +{{{1}}}:''']] On Hit: {{#expr:{{{1}}}*2}}% chance to slow target's movement by 50% for 3 seconds.</onlyinclude>

Revision as of 17:22, 1 January 2019

TendonSlice[edit]

This template is used on equipment for the TendonSlice enchantment.

Example Usage
{{TendonSlice|3}}{{#switch: {{{2}}}

|percent= Tendon Slice 3%: This effect gives a 3% chance to Hamstring the target for each attack that does damage.

|#default= Tendon Slice +3: On Hit: 6% chance to slow target's movement by 50% for 3 seconds.
{{TendonSlice|3|Percent}}{{#switch: percent

|percent= Tendon Slice 3%: This effect gives a 3% chance to Hamstring the target for each attack that does damage.

|#default= Tendon Slice +3: On Hit: 6% chance to slow target's movement by 50% for 3 seconds.

Usage[edit]

{{TendonSlice|(Enhancement Amount)|(Type)}}

Parameter Documentation
Enhancement AmountThis is the amount that the slow movement bonus is increased.
TypeThis is the type of the tendon slice
Possible Values:
  • Percent (value is a direct percent)
  • default - value is a number, and the percent is calculated

Template

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


{{#switch: {{{2}}}

|percent= Tendon Slice {{{1}}}%: This effect gives a {{{1}}}% chance to Hamstring the target for each attack that does damage. |#default= Tendon Slice +{{{1}}}: On Hit: Expression error: Unrecognized punctuation character "{".% chance to slow target's movement by 50% for 3 seconds.