Difference between revisions of "Template:Item effect test"
Jump to navigation
Jump to search
Line 12: | 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 {{#switch: {{lc: {{{1|}}}}} | restore hp = HP | restore mp = MP}}{{#if:{{{max|}}}| | | restore hp = Restores up to {{{percent|}}}% of {{#switch: {{lc: {{{1|}}}}} | restore hp = HP | restore mp = MP}}{{#if:{{{max|}}}|<sup style="font-size: 0.7em; font-weight: bold;">{{{max}}}</sup>}}. | ||
| 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|}}}| <sup style="font-size: 0.7em; font-weight: bold;"> | | 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|}}}| <sup style="font-size: 0.7em; font-weight: bold;">{{{max}}}</sup>}} | ||
| #default = {{{value|}}} | | #default = {{{value|}}} | ||
}}|''No effect name provided.''}}</p></onlyinclude><noinclude> | }}|''No effect name provided.''}}</p></onlyinclude><noinclude> | ||
Line 19: | Line 19: | ||
== Description == | == Description == | ||
<pre> | <pre> | ||
{{item effect|<effect>|percent=|max=|value=}} | {{item effect test|<effect>|percent=|max=|value=}} | ||
</pre> | </pre> | ||
Latest revision as of 23:37, 2 July 2019
No effect name provided.
Description
{{item effect test|<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 test|restore hp|percent=24|max=1920}}
Restores up to 24% of HP1920.