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:Equipment effect retrieval"
m |
m |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{# | + | <includeonly>{{#if: |
− | + | {{#if:{{{var prefix|}}}|{{#vardefine:prefix|{{{var prefix}}}}}|{{#vardefine:prefix|}}}} | |
− | {{# | + | {{#if:{{{var suffix|}}}|{{#vardefine:suffix|{{{var suffix}}}}}|{{#vardefine:suffix|}}}} |
− | {{#vardefine: | ||
− | |||
− | <!-- | + | <!-- Split into two queries, since the maximum number of printout statements |
− | + | is 100. Looks terribly long, but this is much, much faster than doing it | |
− | + | in a loop using #show. | |
− | + | If you change any printout statement here, make sure to also change | |
+ | "Template:Equipment effect retrieval result format" accordingly. | ||
+ | Userparam is used to differentiate the two queries in the result format | ||
+ | template. | ||
+ | The stat order of the printout statements is the same as the order in | ||
+ | "Template:Stat enumeration". | ||
+ | --> | ||
− | + | {{#ask:[[{{{1}}}]] | |
− | {{# | + | |?Has adventurer fame |
+ | |?Has weapon physical attack | ||
+ | |?Has weapon magical attack | ||
+ | |?Has independent attack | ||
+ | |?Has equipment physical defense | ||
+ | |?Has equipment magical defense | ||
+ | |?Has strength | ||
+ | |?Has intelligence | ||
+ | |?Has vitality | ||
+ | |?Has spirit | ||
+ | |?Has exorcism | ||
+ | |?Has hp maximum bonus | ||
+ | |?Has mp maximum bonus | ||
+ | |?Has hp recovery bonus | ||
+ | |?Has mp recovery bonus | ||
+ | |?Has damage value | ||
+ | |?Has buff power | ||
+ | |?Has attack speed bonus | ||
+ | |?Has movement speed bonus | ||
+ | |?Has casting speed bonus | ||
+ | |?Has all elemental resistances bonus | ||
+ | |?Has fire resist bonus | ||
+ | |?Has water resist bonus | ||
+ | |?Has light resist bonus | ||
+ | |?Has shadow resist bonus | ||
+ | |?Has all elemental damage bonus | ||
+ | |?Has fire damage bonus | ||
+ | |?Has water damage bonus | ||
+ | |?Has light damage bonus | ||
+ | |?Has shadow damage bonus | ||
+ | |?Has evasion rate bonus | ||
+ | |?Has inventory weight limit bonus | ||
+ | |?Has hit recovery bonus | ||
+ | |?Has immobility bonus | ||
+ | |?Has jump strength bonus | ||
+ | |?Has physical critical chance bonus | ||
+ | |?Has magical critical chance bonus | ||
+ | |?Has hit rate bonus | ||
+ | |?Has town movement speed bonus | ||
+ | |?Has poison damage bonus | ||
+ | |?Has poison level bonus | ||
+ | |?Has poison tolerance bonus | ||
+ | |?Has poison duration bonus | ||
+ | |?Has burn damage bonus | ||
+ | |?Has burn level bonus | ||
+ | |?Has burn tolerance bonus | ||
+ | |?Has burn duration bonus | ||
+ | |?Has bleeding damage bonus | ||
+ | |?Has bleeding level bonus | ||
+ | |?Has bleeding tolerance bonus | ||
+ | |?Has bleeding duration bonus | ||
+ | |?Has electrocution damage bonus | ||
+ | |?Has electrocution level bonus | ||
+ | |?Has electrocution tolerance bonus | ||
+ | |?Has electrocution duration bonus | ||
+ | |?Has blind level bonus | ||
+ | |?Has blind tolerance bonus | ||
+ | |?Has blind duration bonus | ||
+ | |?Has frozen level bonus | ||
+ | |?Has frozen tolerance bonus | ||
+ | |?Has frozen duration bonus | ||
+ | |?Has slow down level bonus | ||
+ | |?Has slow down tolerance bonus | ||
+ | |?Has slow down duration bonus | ||
+ | |?Has immobility level bonus | ||
+ | |?Has immobility tolerance bonus | ||
+ | |?Has immobility duration bonus | ||
+ | |?Has stone curse damage bonus | ||
+ | |?Has stone curse level bonus | ||
+ | |?Has stone curse tolerance bonus | ||
+ | |?Has stone curse duration bonus | ||
+ | |?Has stun level bonus | ||
+ | |?Has stun tolerance bonus | ||
+ | |?Has stun duration bonus | ||
+ | |?Has sleep level bonus | ||
+ | |?Has sleep tolerance bonus | ||
+ | |?Has sleep duration bonus | ||
+ | |?Has confuse level bonus | ||
+ | |?Has confuse tolerance bonus | ||
+ | |?Has confuse duration bonus | ||
+ | |?Has curse level bonus | ||
+ | |?Has curse tolerance bonus | ||
+ | |?Has curse duration bonus | ||
+ | |?Has all abnormal status resist bonus | ||
+ | | link = none | ||
+ | | format = template | ||
+ | | template = Equipment effect retrieval result format | ||
+ | | userparam = 1 | ||
+ | | default ={{Equipment effect retrieval result format|userparam = 1}} | ||
+ | }}<!-- | ||
− | + | -->{{#ask:[[{{{1}}}]] | |
− | {{# | + | |?Inflicts elemental damage |
− | + | |?Has skill level bonus|+index=1 | |
− | + | |?Has skill level bonus|+index=2 | |
− | + | |?Has skill level bonus|+index=3 | |
− | + | |?Has skill range level bonus|+index=1 | |
− | + | |?Has skill range level bonus|+index=2 | |
− | + | |?Has skill range level bonus|+index=3 | |
− | + | |?Has skill range level bonus|+index=4 | |
− | + | |?Has effect description | |
− | + | |?Has flavor text | |
− | + | | link = none | |
− | + | | format = template | |
− | + | | template = Equipment effect retrieval result format | |
− | + | | userparam = 2 | |
− | + | | default ={{Equipment effect retrieval result format|userparam = 2}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | + | |}}</includeonly><noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}</includeonly><noinclude> | ||
== Description == | == Description == | ||
This template retrieves all stat properties and effects of a piece of equipment and saves the values in variables. There is no visible output. | This template retrieves all stat properties and effects of a piece of equipment and saves the values in variables. There is no visible output. | ||
+ | |||
+ | Use this template sparingly as query times add up quickly. | ||
The default variable names match the name of the stats, e.g. <code>#var:weapon physical attack</code> or <code>#var:fire damage</code>. For the properties [[Property:Has skill level bonus|Has skill level bonus]] and [[Property:Has skill range level bonus|Has skill range level bonus]], the variables contain formatted text, but the variables for the properties that make up the record such as [[Property:Has skill level bonus class|Has skill level bonus class]] contain the raw data. | The default variable names match the name of the stats, e.g. <code>#var:weapon physical attack</code> or <code>#var:fire damage</code>. For the properties [[Property:Has skill level bonus|Has skill level bonus]] and [[Property:Has skill range level bonus|Has skill range level bonus]], the variables contain formatted text, but the variables for the properties that make up the record such as [[Property:Has skill level bonus class|Has skill level bonus class]] contain the raw data. | ||
+ | |||
+ | Uses [[Template:Equipment effect retrieval result format]]. | ||
== Usage == | == Usage == |
Latest revision as of 13:33, 25 September 2023
Contents
[hide]Description
This template retrieves all stat properties and effects of a piece of equipment and saves the values in variables. There is no visible output.
Use this template sparingly as query times add up quickly.
The default variable names match the name of the stats, e.g. #var:weapon physical attack
or #var:fire damage
. For the properties Has skill level bonus and Has skill range level bonus, the variables contain formatted text, but the variables for the properties that make up the record such as Has skill level bonus class contain the raw data.
Uses Template:Equipment effect retrieval result format.
Usage
{{Equipment effect retrieval |<item page> = | var prefix = | var suffix = }}
Parameters
All parameters are optional unless stated otherwise.
- item page
- Required. Item page. The wiki page of the item.
- var prefix
- The prefix for the variable names. Always followed by a whitespace.
- var suffix
- The suffix for the variable names. Always preceded by a whitespace.
Examples
{{Equipment effect retrieval|Corrupt Imposter Death Scythe}} {{#var:intelligence}}
{{Equipment effect retrieval|Garroter Sickle|var prefix = scythe|var suffix = suf}} {{#var:scythe inflicts elemental damage suf}}
{{Equipment effect retrieval|Frozen Resonance Sickle}} {{#var:skill level bonus}}