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
(Created page with "<includeonly>{{#switch:{{lc:{{{1|}}}}} | physical power | patk = Physical Power {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}} | magical power | matk ...")
 
m
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1|}}}}}
+
<includeonly>{{#switch:{{lc:{{{format|}}}}}
| physical power | patk             = Physical Power {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| value =
| magical power | matk               = Magical Power {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
{{#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
 +
| weapon physical attack | wpatk
 +
| phys attack | physical attack
 +
| patk                               = Weapon Physical Atk. {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 +
| mag power | magical power  
 +
| weapon magical attack | wmatk
 +
| mag attack | magical attack
 +
| matk                               = Weapon Magical Atk. {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| independent attack power
 
| independent attack power
| independent attack | base attack  = Base Attack {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| independent attack | base attack  = Independent Attack {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| str | strength                    = Strength {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| str | strength                    = Strength {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| int | intelligence                = Intelligence {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| int | intelligence                = Intelligence {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
Line 9: 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}}}
+
| fame | adventurer fame            = Adventurer Fame {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| mp | max mp | mp max               = MP MAX {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| damage value                      = Damage Value {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| pdef | physical defense           = Physical Defense {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| buff power                        = Buff Power {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| mdef | magical defense             = Magical Defense {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| hp | max hp | hp max | hp maximum  = HP MAX {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| pcrit | physical critical power
+
| mp | max mp | mp max | mp maximum  = MP MAX {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| physical crit                      = Physical Critical Hit {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
+
| pdef | phys defense | epdef
| mcrit | magic critical power
+
| physical defense
| magic crit | magical crit          = Magic Critical Hit {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
+
| equipment physical defense         = Equipment Physical Def. {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 +
| mdef | mag defense | emdef
 +
| magical defense
 +
| equipment magical defense          = Equipment Magical Def. {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 +
| pcrit | physical critical chance
 +
| physical crit                      = Physical Critical Chance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| mcrit | magic critical chance
 +
| magical critical chance
 +
| magic crit | magical crit          = Magic Critical Chance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| aspd | attack speed                = Attack Speed {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| aspd | attack speed                = Attack Speed {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| cspd | casting speed              = Casting Speed {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| cspd | casting speed              = Casting Speed {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| 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}}}%
 +
| hit rec | hit recovery            = Hit Recovery {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 +
| immobility                        = Immobility {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| hp rec | hp recovery              = {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}} HP per Min
 
| 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
 
| mp rec | mp recovery              = {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}} MP per Min
Line 51: Line 111:
 
| electrocution dmg
 
| electrocution dmg
 
| electrocution damage              = Electrocution Damage {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| electrocution damage              = Electrocution Damage {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
| all abnormal resist               = All Abnormal Status Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| stone curse dmg
 +
| stone curse damage                = Stone Curse Damage {{#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 74: Line 137:
 
| confuse res | confuse tolerance    = Confuse Tolerance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| confuse res | confuse tolerance    = Confuse Tolerance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| curse res | curse tolerance        = Curse Tolerance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| curse res | curse tolerance        = Curse Tolerance {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 +
| poison duration                    = Poison Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| burn duration                      = Burn Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| bleed duration | bleeding duration = Bleeding Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| blind duration                    = Blinding Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| electrocution duration            = Electrocution Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| freeze duration | frozen duration  = Frozen Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| slow duration | slow down duration = Slow Down Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| immobilize duration
 +
| immobility duration                = Immobility Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| stone curse duration              = Stone Curse Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| stun duration                      = Stun Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| sleep duration                    = Sleep Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| confusion duration
 +
| confuse duration                  = Confuse Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 +
| curse duration                    = Curse Duration {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}%
 
| all ele dmg | all elemental damage = All Elemental Damage {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| all ele dmg | all elemental damage = All Elemental Damage {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| fire dmg | fire damage            = Fire Damage {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| fire dmg | fire damage            = Fire Damage {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
Line 81: Line 159:
 
| all ele res
 
| all ele res
 
| all elemental resistances          = All Elemental Resistances {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 
| all elemental resistances          = All Elemental Resistances {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| fire res | fire resistance         = Fire Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| fire res | fire resist
| water res | water resistance       = Water Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| fire resistance                   = Fire Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
| light res | light resistance       = Light Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| water res | water resist
| shadow res | shadow resistance     = Shadow Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
+
| water resistance                   = Water Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 +
| light res | light resist
 +
| light resistance                   = Light Resist {{#ifeq: {{#expr:{{{2|}}} < 0}} |1||+}}{{{2|x}}}
 +
| shadow res | shadow resist
 +
| 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 93: Line 176:
  
 
== Usage ==
 
== Usage ==
<pre>{{Attribute
+
<pre>{{Stat
| <attribute>
+
|<stat> =
| <value>
+
|<value> =
 +
| format =
 
}}</pre>
 
}}</pre>
  
 
=== Parameters ===
 
=== Parameters ===
  
; unnamed parameter 1 : Name of the attribute.
+
; stat: Name of the attribute.
; unnamed parameter 2 : 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}}
  
</noinclude>
+
[[Category:Formatting Templates]]</noinclude>

Latest revision as of 13:31, 25 September 2023

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