Difference between revisions of "Template:Speed"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|example2 = <nowiki>{{Speed|III}}</nowiki> | |example2 = <nowiki>{{Speed|III}}</nowiki> | ||
|example2output = {{Speed|III}} | |example2output = {{Speed|III}} | ||
|example3 = <nowiki>{{Speed|XV|Ranged}}</nowiki> | |||
|example3output = {{Speed|XV|Ranged}} | |||
|example4 = <nowiki>{{Speed|16||5}}</nowiki> | |||
|example4output = {{Speed|16||5}} | |||
|parameter1name = Enhancement Amount | |parameter1name = Enhancement Amount | ||
|parameter1description = This is the amount that speed is increased. It can either be an actual amount found in newer speed items, or the older speed with is a Roman Numeral from I to XX. | |parameter1description = This is the amount that speed is increased. It can either be an actual amount found in newer speed items, or the older speed with is a Roman Numeral from I to XX. | ||
| | |parameter2name = Attack Type | ||
|parameter2description = This is the attack type this applies to. The default is Melee and Ranged. | |||
|parameter3name = Attack Speed | |||
|parameter3description = Optional to specify the attack speed increase if it isn't the calculated 1/2 of movement. | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude> | <onlyinclude>{{#switch: {{lc:{{{1}}}}} | ||
| | |i|ii|iii|iv|v|vi|vii|viii|ix|x|xi|xii|xiii|xiv|xv|xvi|xvii|xiii|xiv|xx={{EnchTitle|Speed|{{{2|}}} Speed {{uc:{{{1}}}}}}} | ||
|#default={{EnchTitle|Speed|Speed +{{{1}}}%}} | |||
| | }}{{EnchBody|{{#switch: {{lc:{{{1}}}}} | ||
| | |i = Passive: +5% Enhancement Bonus to Movement Speed, +1% Enhancement Bonus to {{#if: {{{2|}}}|{{{2}}}|Melee and Ranged}} Attack Speed. | ||
| | |ii = Passive: +10% Enhancement Bonus to Movement Speed, +2% Enhancement Bonus to {{#if: {{{2|}}}|{{{2}}}|Melee and Ranged}} Attack Speed. | ||
| | |iii = Passive: +15% Enhancement Bonus to Movement Speed, +3% Enhancement Bonus to {{#if: {{{2|}}}|{{{2}}}|Melee and Ranged}} Attack Speed. | ||
| | |iv = Passive: +20% Enhancement Bonus to Movement Speed, +4% Enhancement Bonus to {{#if: {{{2|}}}|{{{2}}}|Melee and Ranged}} Attack Speed. | ||
| | |v = Passive: +25% Enhancement Bonus to Movement Speed, +5% Enhancement Bonus to {{#if: {{{2|}}}|{{{2}}}|Melee and Ranged}} Attack Speed. | ||
| | |vi|vii|viii|ix|x|xi|xii|xiii|xiv|xv|xvi|xvii|xiii|xiv|xx = Passive: +30% Enhancement Bonus to Movement Speed, +{{RomanToNumber|{{{1}}}}}% Enhancement Bonus to {{#if: {{{2|}}}|{{{2}}}|Melee and Ranged}} Attack Speed. | ||
| | |#default = +{{{1}}}% Enhancement bonus to Movement speed and +{{#if: {{{3|}}}|{{{3}}}|{{#expr:trunc({{{1}}}/2)}}}}% bonus to Attack speed.}}}}{{EnchCat|Speed|Items with a Bonus to Movement Speed|Items with a Bonus to {{#if: {{{2|}}}|{{{2}}}|Melee and Ranged}} Attack Speed}}</onlyinclude> | ||
| | |||
| | |||
| | |||
| | |||
Latest revision as of 18:39, 25 June 2020
Speed[edit]
This template is used on equipment for the Speed enchantment. Speed adds movement speed and in some cases adds alacrity to weapons.
Example Usage | |
{{Speed|8}} | Speed +8%: +8% Enhancement bonus to Movement speed and +4% bonus to Attack speed. |
{{Speed|III}} | Speed III: Passive: +15% Enhancement Bonus to Movement Speed, +3% Enhancement Bonus to Melee and Ranged Attack Speed. |
{{Speed|XV|Ranged}} | Ranged Speed XV: Passive: +30% Enhancement Bonus to Movement Speed, +15% Enhancement Bonus to Ranged Attack Speed. |
{{Speed|16||5}} | Speed +16%: +16% Enhancement bonus to Movement speed and +5% bonus to Attack speed. |
Usage[edit]
{{Speed|(Enhancement Amount)|(Attack Type)|(Attack Speed)}}
Parameter Documentation | |
Enhancement Amount | This is the amount that speed is increased. It can either be an actual amount found in newer speed items, or the older speed with is a Roman Numeral from I to XX. |
Attack Type | This is the attack type this applies to. The default is Melee and Ranged. |
Attack Speed | Optional to specify the attack speed increase if it isn't the calculated 1/2 of movement. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
Speed +{{{1}}}%: +{{{1}}}% Enhancement bonus to Movement speed and +Expression error: Unrecognized punctuation character "{".% bonus to Attack speed.