Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Difference between revisions of "Template:Stat"

From DFO World Wiki
Jump to: navigation, search
m (Gardios moved page Template:Attribute to Template:Stat)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1|}}}}}
+
<includeonly>{{#switch:{{lc:{{{format|}}}}}
 +
| value =
 +
{{#switch:{{lc:{{{1|}}}}}
 +
| weight | weight limit
 +
| inventory weight limit            = {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}kg
 +
| hp rec | hp recovery              = {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}} HP per Min
 +
| mp rec | mp recovery              = {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}} MP per Min
 +
| pcrit | physical critical chance
 +
| physical crit
 +
| mcrit | magic critical chance
 +
| magical critical chance
 +
| magic crit | magical crit
 +
| aspd | attack speed
 +
| cspd | casting speed
 +
| mspd | movement speed
 +
| hit | hit rate
 +
| eva | evasion rate
 +
| poison dmg | poison damage
 +
| burn dmg | burn damage
 +
| bleeding dmg | bleeding damage
 +
| electrocution dmg
 +
| electrocution damage
 +
| stone curse dmg
 +
| stone curse damage
 +
| poison duration
 +
| burn duration
 +
| bleed duration | bleeding duration
 +
| blind duration
 +
| electrocution duration
 +
| freeze duration | frozen duration
 +
| slow duration | slow down duration
 +
| immobilize duration
 +
| immobility duration
 +
| stone curse duration
 +
| stun duration
 +
| sleep duration
 +
| confusion duration
 +
| confuse duration
 +
| curse duration
 +
| town mspd | town movement speed    = {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
|#default                            = {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 +
}}
 +
|#default =
 +
{{#switch:{{lc:{{{1|}}}}}
 
| phys power | physical power
 
| phys power | physical power
 
| weapon physical attack | wpatk
 
| weapon physical attack | wpatk
Line 15: Line 58:
 
| spr | spirit                      = Spirit {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| spr | spirit                      = Spirit {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| exo | exorcism | exorcism parameter= Exorcism {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| exo | exorcism | exorcism parameter= Exorcism {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| hp | max hp | hp max               = HP MAX {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| hp | max hp | hp max | hp maximum  = HP MAX {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| mp | max mp | mp max               = MP MAX {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| mp | max mp | mp max | mp maximum  = MP MAX {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| pdef | phys defense | epdef
 
| pdef | phys defense | epdef
 
| physical defense
 
| physical defense
Line 32: Line 75:
 
| mspd | movement speed              = Movement Speed {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| mspd | movement speed              = Movement Speed {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| jump | jump strength              = Jump Strength {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| jump | jump strength              = Jump Strength {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| weight | weight limit             = Inventory Weight Limit {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}kg
+
| weight | weight limit
 +
| inventory weight limit            = Inventory Weight Limit {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}kg
 
| hit | hit rate                    = Hit Rate {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| hit | hit rate                    = Hit Rate {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| eva | evasion rate                = Evasion Rate {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| eva | evasion rate                = Evasion Rate {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
Line 66: Line 110:
 
| stone curse dmg
 
| stone curse dmg
 
| stone curse damage                = Stone Curse Damage {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| stone curse damage                = Stone Curse Damage {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
| all abnormal resist               = All Abnormal Status Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| all abnormal resist
 +
| all abnormal status resist        = All Abnormal Status Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| poison res | poison tolerance      = Poison Tolerance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| poison res | poison tolerance      = Poison Tolerance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| burn res | burn tolerance          = Burn Tolerance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| burn res | burn tolerance          = Burn Tolerance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
Line 120: Line 165:
 
| shadow resistance                  = Shadow Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| shadow resistance                  = Shadow Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| town mspd | town movement speed    = Town Movement Speed {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| town mspd | town movement speed    = Town Movement Speed {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
| #default                           = {{{1}}} {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
|#default                           = {{{1}}} {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 +
}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
== Description ==
 
== Description ==
Line 127: Line 173:
  
 
== Usage ==
 
== Usage ==
<pre>{{Attribute
+
<pre>{{Stat
|<attribute>
+
|<stat> =
|<value>
+
|<value> =
 +
| format =
 
}}</pre>
 
}}</pre>
  
 
=== Parameters ===
 
=== Parameters ===
  
; attribute : Name of the attribute.
+
; stat: Name of the attribute.
 
; value : Value of the attribute.
 
; value : Value of the attribute.
 +
; format : Output format. Set to ''value'' to display the value only.
  
 
== Examples ==
 
== Examples ==
  
<pre>{{Attribute|poison dmg|20}}</pre>
+
<pre>{{Stat|poison dmg|20}}</pre>
{{Attribute|poison dmg|20}}
+
{{Stat|poison dmg|20}}
 +
 
 +
<pre>{{Stat|hit|-20}}</pre>
 +
{{Stat|hit|-20}}
  
<pre>{{Attribute|hit|-20}}</pre>
+
<pre>{{Stat|weight limit|20|format=value}}</pre>
{{Attribute|hit|-20}}
+
{{Stat|weight limit|20|format=value}}
  
 
[[Category:Formatting Templates]]</noinclude>
 
[[Category:Formatting Templates]]</noinclude>

Revision as of 20:41, 12 March 2016

Description

This templates formats attribute facts as they appear ingame.

Usage

{{Stat
|<stat> = 
|<value> = 
| format = 
}}

Parameters

stat
Name of the attribute.
value 
Value of the attribute.
format 
Output format. Set to value to display the value only.

Examples

{{Stat|poison dmg|20}}

Poison Damage +20%

{{Stat|hit|-20}}

Hit Rate -20%

{{Stat|weight limit|20|format=value}}

+20kg