Difference between revisions of "Template:Item effect"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Add restore mp)
(Updated "restore mp" to match current in-game descriptions giving fixed value rather than percent and max. So as to not break existing implementations, the amount of MP restored can be specified with either "value" or "max", defaulting to "value" if both are provided)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude><p>{{#if:{{{1|}}}|<!--
<onlyinclude><p>{{#if:{{{1|}}}|<!--
-->{{#switch:{{lc:{{{1|}}}}}<!-- Effect name -->
-->{{#switch:{{lc:{{{1|}}}}}<!-- Effect name -->
   | restore hp = HP
   | restore hp =  
   | restore mp = MP
   | restore mp =
  | restore gp =
   | spell speed = Spell Speed
   | spell speed = Spell Speed
   | skill speed = Skill Speed
   | skill speed = Skill Speed
Line 8: Line 9:
   | magic defense = Magic Defense
   | magic defense = Magic Defense
   | direct hit rate = Direct Hit Rate
   | direct hit rate = Direct Hit Rate
  | increased spiritbond gain = Increased Spiritbond Gain
   | cp = CP
   | cp = CP
   | gp = GP
   | gp = GP
  | exp =
  | reduced durability loss =
  | desynthesis skill gain =
   | #default = {{ucfirst:{{{1|}}}}}
   | #default = {{ucfirst:{{{1|}}}}}
   }}{{#switch:{{lc:{{{1|}}}}}<!-- Effect value -->
   }}{{#switch:{{lc:{{{1|}}}}}<!-- Effect value -->
   | restore hp | restore mp = Restores up to {{{percent|}}}% of {{value}}{{#if:{{{max|}}}|&nbsp;({{{max}}} points max)}}.
   | restore hp = Restores up to {{{percent|}}} of {{#switch: {{lc: {{{1|}}}}} | restore hp = HP | restore mp = MP}}{{#if:{{{max|}}}|&nbsp;({{{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 = &nbsp;+{{#if:{{{value|}}}|{{{value}}}}}{{#if:{{{percent|}}}|{{{percent}}}%}}{{#if:{{{max|}}}|&nbsp;(Max {{{max}}})}}
  | restore mp = Restores {{#if: {{{value|}}} | {{{value|}}} | {{{max|}}}}} MP.
  | restore gp = Restores {{{value|}}} GP.
   | exp = Increases EXP earned by {{{percent|}}}.
  | reduced durability loss = Reduced Durability Loss +{{{value|}}}
  | desynthesis skill gain = Desynthesis Skill Gain +{{{value|}}}
  | 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 | increased spiritbond gain = &nbsp;+{{#if:{{{value|}}}|{{{value}}}}}{{#if:{{{percent|}}}|{{{percent}}}}}{{#if:{{{max|}}}|&nbsp;(Max {{{max}}})}}
   | #default = {{{value|}}}
   | #default = {{{value|}}}
   }}|''No effect name provided.''}}</p></onlyinclude><noinclude>
   }}|''No effect name provided.''}}</p></onlyinclude><noinclude>
Line 19: Line 29:
== 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''. (types under construction).
: Item effect. Accepts: ''restore hp'', ''restore mp'', ''restore gp'', ''spell speed'', ''skill speed'', ''critical hit'', ''magic defense'', ''direct hit rate'', ''cp'', ''gp'', ''reduced durability loss'', ''desynthesis skill gain''.
; 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 ==
<pre>{{Item effect|restore hp|percent=24|max=1920}}</pre>
<pre>{{Item effect|restore hp|percent=24%|max=1920}}</pre>
{{Item effect|restore hp|percent=24|max=1920}}
{{Item effect|restore hp|percent=24%|max=1920}}
 
<pre>{{Item effect|restore mp|value=1800}}</pre>
{{Item effect|restore mp|value=1800}}
 
<pre>{{Item effect|restore gp|value=350}}</pre>
{{Item effect|restore gp|value=350}}
 
<pre>{{Item effect|exp|percent=30%}}</pre>
{{Item effect|exp|percent=30%}}
 
<pre>{{Item effect|reduced durability loss|value=30}}</pre>
{{Item effect|reduced durability loss|value=30}}


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 14:09, 1 August 2024

No effect name provided.

Description

{{item effect|<effect>|percent=|max=|value=}}

Parameters

Unnamed parameter 1
Item effect. Accepts: restore hp, restore mp, restore gp, spell speed, skill speed, critical hit, magic defense, direct hit rate, cp, gp, reduced durability loss, desynthesis skill gain.
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).

{{Item effect|restore mp|value=1800}}

Restores 1800 MP.

{{Item effect|restore gp|value=350}}

Restores 350 GP.

{{Item effect|exp|percent=30%}}

Increases EXP earned by 30%.

{{Item effect|reduced durability loss|value=30}}

Reduced Durability Loss +30