Difference between revisions of "Template:Item effect"
Jump to navigation
Jump to search
(Update parameters, add restore mp) |
|||
Line 2: | Line 2: | ||
-->{{#switch:{{lc:{{{1|}}}}}<!-- Effect name --> | -->{{#switch:{{lc:{{{1|}}}}}<!-- Effect name --> | ||
| restore hp = | | restore hp = | ||
| restore mp = | |||
| spell speed = Spell Speed | | spell speed = Spell Speed | ||
| skill speed = Skill Speed | | skill speed = Skill Speed | ||
Line 11: | Line 12: | ||
| #default = {{ucfirst:{{{1|}}}}} | | #default = {{ucfirst:{{{1|}}}}} | ||
}}{{#switch:{{lc:{{{1|}}}}}<!-- Effect value --> | }}{{#switch:{{lc:{{{1|}}}}}<!-- Effect value --> | ||
| restore hp = Restores up to {{{percent|}}}% of HP{{#if:{{{max|}}}| ({{{max}}} points max)}}. | | restore hp = Restores up to {{{percent|}}}% of {{#switch: {{lc: {{{1|}}}}} | restore hp = HP | restore mp = MP}}{{#if:{{{max|}}}| ({{{max}}} points max)}}. | ||
| exp | gear durability| spell speed | skill speed | critical hit | magic defense | direct hit rate | vitality | piety | mind | intelligence | strength | dexterity | tenacity | determination | craftsmanship | control | gathering | perception | gp | cp = +{{#if:{{{value|}}}|{{{value}}}}}{{#if:{{{percent|}}}|{{{percent}}}%}}{{#if:{{{max|}}}| (Max {{{max}}})}} | | exp | gear durability| spell speed | skill speed | critical hit | magic defense | direct hit rate | vitality | piety | mind | intelligence | strength | dexterity | tenacity | determination | craftsmanship | control | gathering | perception | gp | cp = +{{#if:{{{value|}}}|{{{value}}}}}{{#if:{{{percent|}}}|{{{percent}}}%}}{{#if:{{{max|}}}| (Max {{{max}}})}} | ||
| #default = {{{value|}}} | | #default = {{{value|}}} | ||
Line 18: | Line 19: | ||
== Description == | == Description == | ||
<pre> | <pre> | ||
{{item effect|<effect>|percent=|max=}} | {{item effect|<effect>|percent=|max=|value=}} | ||
</pre> | </pre> | ||
== Parameters == | == Parameters == | ||
;Unnamed parameter 1 | ; Unnamed parameter 1 | ||
: Item effect. Accepts: ''restore hp'' | : Item effect. Accepts: ''restore hp'', ''restore mp'', ''spell speed'', ''skill speed'', ''critical hit'', ''magic defense'', ''direct hit rate'', ''cp'', ''gp''. | ||
; percent | ; percent | ||
: Effect percent. | : Effect percent. | ||
; max | ; max | ||
: Effect max value. | : Effect max value. | ||
; value | |||
: Effect's constant value (not a percent). If using value, do not use percent or max. | |||
== Example == | == Example == |
Revision as of 07:56, 4 April 2019
No effect name provided.
Description
{{item effect|<effect>|percent=|max=|value=}}
Parameters
- Unnamed parameter 1
- Item effect. Accepts: restore hp, restore mp, spell speed, skill speed, critical hit, magic defense, direct hit rate, cp, gp.
- percent
- Effect percent.
- max
- Effect max value.
- value
- Effect's constant value (not a percent). If using value, do not use percent or max.
Example
{{Item effect|restore hp|percent=24|max=1920}}
Restores up to 24% of HP (1920 points max).