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"

From DFO World Wiki
Jump to: navigation, search
m
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexist:{{{1|}}}|
+
<includeonly>{{#if:
 
{{#if:{{{var prefix|}}}|{{#vardefine:prefix|{{{var prefix}}}}}|{{#vardefine:prefix|}}}}
 
{{#if:{{{var prefix|}}}|{{#vardefine:prefix|{{{var prefix}}}}}|{{#vardefine:prefix|}}}}
 
{{#if:{{{var suffix|}}}|{{#vardefine:suffix|{{{var suffix}}}}}|{{#vardefine:suffix|}}}}
 
{{#if:{{{var suffix|}}}|{{#vardefine:suffix|{{{var suffix}}}}}|{{#vardefine:suffix|}}}}
Line 10: Line 10:
 
     Userparam is used to differentiate the two queries in the result format
 
     Userparam is used to differentiate the two queries in the result format
 
     template.
 
     template.
 +
    The stat order of the printout statements is the same as the order in
 +
    "Template:Stat enumeration".
 
-->
 
-->
  
 
{{#ask:[[{{{1}}}]]
 
{{#ask:[[{{{1}}}]]
 +
|?Has adventurer fame
 
|?Has weapon physical attack
 
|?Has weapon physical attack
 
|?Has weapon magical attack
 
|?Has weapon magical attack
Line 27: Line 30:
 
|?Has hp recovery bonus
 
|?Has hp recovery bonus
 
|?Has mp recovery bonus
 
|?Has mp recovery bonus
 +
|?Has damage value
 +
|?Has buff power
 
|?Has attack speed bonus
 
|?Has attack speed bonus
 
|?Has movement speed bonus
 
|?Has movement speed bonus
Line 98: Line 103:
 
| template = Equipment effect retrieval result format
 
| template = Equipment effect retrieval result format
 
| userparam = 1
 
| userparam = 1
| default =
+
| default ={{Equipment effect retrieval result format|userparam = 1}}
 
}}<!--
 
}}<!--
  
Line 110: Line 115:
 
|?Has skill range level bonus|+index=3
 
|?Has skill range level bonus|+index=3
 
|?Has skill range level bonus|+index=4
 
|?Has skill range level bonus|+index=4
 +
|?Has effect description
 +
|?Has flavor text
 
| link = none
 
| link = none
 
| format = template
 
| format = template
 
| template = Equipment effect retrieval result format
 
| template = Equipment effect retrieval result format
 
| userparam = 2
 
| userparam = 2
| default =
+
| default ={{Equipment effect retrieval result format|userparam = 2}}
 
}}
 
}}
  
<!-- aura effect -->
+
|}}</includeonly><noinclude>
{{#vardefine:{{#if:{{{var prefix|}}}|{{{var prefix}}}}} aura effect {{#if:{{{var suffix|}}}|{{{var suffix}}}}}|{{#show:{{{1}}}|?Has aura effect|link=none}}}}
 
 
 
<!-- effect description -->
 
{{#vardefine:{{#if:{{{var prefix|}}}|{{{var prefix}}}}} effect description {{#if:{{{var suffix|}}}|{{{var suffix}}}}}|{{#show:{{{1}}}|?Has effect description|link=none}}}}
 
 
 
<!-- flavor text -->
 
{{#vardefine:{{#if:{{{var prefix|}}}|{{{var prefix}}}}} flavor text {{#if:{{{var suffix|}}}|{{{var suffix}}}}}|{{#show:{{{1}}}|?Has flavor text|link=none}}}}
 
}}</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

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}}