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 query"
(Created page with "<includeonly> {{#ask: Has item type::Equipment {{#if:{{{name|}}}|[[Has name::~*{{{name}}}*]]}} {{#if:{{{rarity|}}}|[[Has item rarity::{{{rarity}}}]]}} {{#if:{{{min l...") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><!-- |
− | {{#ask: [[Has item type::Equipment]] | + | 2 queries: First one to count the results, second for the actual query. If you change one, make sure to also change the other. |
− | {{#if:{{{name|}}}|[[Has name::~*{{{name}}}*]]}} | + | -->{{#vardefine:result number|{{#ask: [[Has item type::Equipment]][[Has availability status::Available]] |
+ | {{#if:{{{name|}}}|[[Has lowercase name::~*{{lc:{{{name}}}}}*]]}} | ||
{{#if:{{{rarity|}}}|[[Has item rarity::{{{rarity}}}]]}} | {{#if:{{{rarity|}}}|[[Has item rarity::{{{rarity}}}]]}} | ||
{{#if:{{{min level|}}}|[[Has level requirement::>{{{min level}}}]]|}} | {{#if:{{{min level|}}}|[[Has level requirement::>{{{min level}}}]]|}} | ||
{{#if:{{{max level|}}}|[[Has level requirement::<{{{max level}}}]]|}} | {{#if:{{{max level|}}}|[[Has level requirement::<{{{max level}}}]]|}} | ||
{{#switch:{{{equipment type|}}} | {{#switch:{{{equipment type|}}} | ||
− | | Weapon | + | | Weapon = {{#if:{{{weapon type|}}} |
− | + | | [[Has weapon type::{{{weapon type}}}]] | |
− | + | | {{#if:{{{weapon class|}}} | |
− | | | + | | [[Category:{{{weapon class}}} Weapons]] |
− | + | | [[Has equipment slot::Weapon]] | |
− | + | }} | |
− | |||
− | |||
}} | }} | ||
− | | Armor = {{# | + | | Armor = {{#if:{{{armor slot|}}} |
− | | | + | | [[Has equipment slot::{{{armor slot}}}]] |
− | + | {{#if:{{{armor weight|}}} | |
− | + | | [[Has armor weight class::{{{armor weight}}}]] | |
− | + | | [[Has equipment slot::Top||Head/Shoulder||Bottom||Belt||Shoes]] | |
− | + | }} | |
− | + | | {{#if:{{{armor weight|}}} | |
− | + | | [[Has armor weight class::{{{armor weight}}}]] | |
− | + | | [[Has equipment slot::Top||Head/Shoulder||Bottom||Belt||Shoes]] | |
− | + | }} | |
− | |||
− | |||
− | |||
}} | }} | ||
− | | | + | | Accessory = {{#if:{{{accessory slot|}}} |
− | | | + | | [[Has equipment slot::{{{accessory slot}}}]] |
− | + | | [[Category:Accessories]][[Has equipment slot::!Title]] | |
− | | | + | }} |
+ | | Special Equipment = {{#if:{{{special equipment slot|}}} | ||
+ | | [[Has equipment slot::{{{accessory slot}}}]] | ||
+ | | [[Category:Special Equipment]] | ||
}}{{#if:{{{class|}}}|[[Has class requirement::{{{class}}}]]}} | }}{{#if:{{{class|}}}|[[Has class requirement::{{{class}}}]]}} | ||
| Title = [[Has equipment slot::Title]] | | Title = [[Has equipment slot::Title]] | ||
Line 49: | Line 48: | ||
{{#if:{{{other value max 1|}}}|[[Has {{lc:{{{other name 1}}}}} bonus::<{{{other value max 1|}}}]]}} | {{#if:{{{other value max 1|}}}|[[Has {{lc:{{{other name 1}}}}} bonus::<{{{other value max 1|}}}]]}} | ||
}} | }} | ||
− | {{#if:{{{skill class|}}}{{{skill name|}}}|[[Has skill level bonus::{{{skill class|?}}};~*{{{skill name|}}}*;?]]}} | + | {{#if:{{{other name 2|}}}| |
− | {{#if:{{{all skill class|}}}{{{all skill min|}}}{{{all skill max|}}}| [[Has skill range level bonus::{{{all skill class|?}}};{{#if:{{{all skill min|}}}|<{{{all skill min|}}}}};{{#if:{{{all skill max|}}}|>{{{all skill max|}}}}};?]] }} | + | {{#if:{{{other value min 2|}}}|[[Has {{lc:{{{other name 2}}}}} bonus::>{{{other value min 2|}}}]]}} |
+ | {{#if:{{{other value max 2|}}}|[[Has {{lc:{{{other name 2}}}}} bonus::<{{{other value max 2|}}}]]}} | ||
+ | }} | ||
+ | {{#if:{{{other name 3|}}}| | ||
+ | {{#if:{{{other value min 3|}}}|[[Has {{lc:{{{other name 3}}}}} bonus::>{{{other value min 3|}}}]]}} | ||
+ | {{#if:{{{other value max 3|}}}|[[Has {{lc:{{{other name 3}}}}} bonus::<{{{other value max 3|}}}]]}} | ||
+ | }} | ||
+ | {{#if:{{{skill bonus class|}}}{{{skill bonus name|}}}|[[Has skill level bonus::{{{skill bonus class|?}}};{{#if:{{{skill bonus name|}}}|~*{{{skill bonus name}}}*|?}};?]]}} | ||
+ | {{#if:{{{skill alteration class|}}}{{{skill alteration name|}}}|[[Has skill alteration::{{{skill alteration class|?}}};{{#if:{{{skill alteration name|}}}|~*{{{skill alteration name}}}*|?}};?]]}} | ||
+ | {{#if:{{{all skill bonus class|}}}{{{all skill bonus min|}}}{{{all skill bonus max|}}}| [[Has skill range level bonus::{{{all skill bonus class|?}}};{{#if:{{{all skill bonus min|}}}|<{{{all skill bonus min|}}}}};{{#if:{{{all skill bonus max|}}}|>{{{all skill bonus max|}}}}};?]] }} | ||
+ | {{#if:{{{set|}}}|[[Is part of set::{{{set}}}]]}} | ||
+ | {{#ifeq:{{{aura|}}}|Yes|[[Has aura effect::true]]}} | ||
+ | {{#if:{{{inflict ele|}}}|[[Inflicts elemental damage::{{{inflict ele}}}]]}} | ||
+ | | link = none | ||
+ | | format = count | ||
+ | | default = 0 | ||
+ | }} | ||
+ | }}<!-- end var result number | ||
+ | -->{{#ifexpr:{{#var:result number}} > 0|{{#ifexpr:{{#var:result number}} < {{{offset|0}}} | The offset selected it too large to display any of the {{#var:result number}} results. | {{#var:result number}} {{plural:{{#var:result number}}|result|results}} found. Displaying results {{#expr:{{{offset|0}}}+1}} to {{#ifexpr: {{#var:result number}} - {{{offset|0}}} > 200| {{#expr: {{{offset|0}}} + 200}}| {{#var:result number}} }}. }} | ||
+ | }} | ||
+ | {{#ask: [[Has item type::Equipment]][[Has availability status::Available]] | ||
+ | {{#if:{{{name|}}}|[[Has lowercase name::~*{{lc:{{{name}}}}}*]]}} | ||
+ | {{#if:{{{rarity|}}}|[[Has item rarity::{{{rarity}}}]]}} | ||
+ | {{#if:{{{min level|}}}|[[Has level requirement::>{{{min level}}}]]|}} | ||
+ | {{#if:{{{max level|}}}|[[Has level requirement::<{{{max level}}}]]|}} | ||
+ | {{#switch:{{{equipment type|}}} | ||
+ | | Weapon = {{#if:{{{weapon type|}}} | ||
+ | | [[Has weapon type::{{{weapon type}}}]] | ||
+ | | {{#if:{{{weapon class|}}} | ||
+ | | [[Category:{{{weapon class}}} Weapons]] | ||
+ | | [[Has equipment slot::Weapon]] | ||
+ | }} | ||
+ | }} | ||
+ | | Armor = {{#if:{{{armor slot|}}} | ||
+ | | [[Has equipment slot::{{{armor slot}}}]] | ||
+ | {{#if:{{{armor weight|}}} | ||
+ | | [[Has armor weight class::{{{armor weight}}}]] | ||
+ | | [[Has equipment slot::Top||Head/Shoulder||Bottom||Belt||Shoes]] | ||
+ | }} | ||
+ | | {{#if:{{{armor weight|}}} | ||
+ | | [[Has armor weight class::{{{armor weight}}}]] | ||
+ | | [[Has equipment slot::Top||Head/Shoulder||Bottom||Belt||Shoes]] | ||
+ | }} | ||
+ | }} | ||
+ | | Accessory = {{#if:{{{accessory slot|}}} | ||
+ | | [[Has equipment slot::{{{accessory slot}}}]] | ||
+ | | [[Category:Accessories]][[Has equipment slot::!Title]] | ||
+ | }} | ||
+ | | Special Equipment = {{#if:{{{special equipment slot|}}} | ||
+ | | [[Has equipment slot::{{{accessory slot}}}]] | ||
+ | | [[Category:Special Equipment]] | ||
+ | }}{{#if:{{{class|}}}|[[Has class requirement::{{{class}}}]]}} | ||
+ | | Title = [[Has equipment slot::Title]] | ||
+ | |#default = | ||
+ | }} | ||
+ | {{#if:{{{base name 1|}}}| | ||
+ | {{#if:{{{base value min 1|}}}|[[Has {{lc:{{{base name 1}}}}}::>{{{base value min 1|}}}]]}} | ||
+ | {{#if:{{{base value max 1|}}}|[[Has {{lc:{{{base name 1}}}}}::<{{{base value max 1|}}}]]}} | ||
+ | }} | ||
+ | {{#if:{{{base name 2|}}}| | ||
+ | {{#if:{{{base value min 2|}}}|[[Has {{lc:{{{base name 2}}}}}::>{{{base value min 2|}}}]]}} | ||
+ | {{#if:{{{base value max 2|}}}|[[Has {{lc:{{{base name 2}}}}}::<{{{base value max 2|}}}]]}} | ||
+ | }} | ||
+ | {{#if:{{{other name 1|}}}| | ||
+ | {{#if:{{{other value min 1|}}}|[[Has {{lc:{{{other name 1}}}}} bonus::>{{{other value min 1|}}}]]}} | ||
+ | {{#if:{{{other value max 1|}}}|[[Has {{lc:{{{other name 1}}}}} bonus::<{{{other value max 1|}}}]]}} | ||
+ | }} | ||
+ | {{#if:{{{other name 2|}}}| | ||
+ | {{#if:{{{other value min 2|}}}|[[Has {{lc:{{{other name 2}}}}} bonus::>{{{other value min 2|}}}]]}} | ||
+ | {{#if:{{{other value max 2|}}}|[[Has {{lc:{{{other name 2}}}}} bonus::<{{{other value max 2|}}}]]}} | ||
+ | }} | ||
+ | {{#if:{{{other name 3|}}}| | ||
+ | {{#if:{{{other value min 3|}}}|[[Has {{lc:{{{other name 3}}}}} bonus::>{{{other value min 3|}}}]]}} | ||
+ | {{#if:{{{other value max 3|}}}|[[Has {{lc:{{{other name 3}}}}} bonus::<{{{other value max 3|}}}]]}} | ||
+ | }} | ||
+ | {{#if:{{{skill bonus class|}}}{{{skill bonus name|}}}|[[Has skill level bonus::{{{skill bonus class|?}}};{{#if:{{{skill bonus name|}}}|~*{{{skill bonus name}}}*|?}};?]]}} | ||
+ | {{#if:{{{skill alteration class|}}}{{{skill alteration name|}}}|[[Has skill alteration::{{{skill alteration class|?}}};{{#if:{{{skill alteration name|}}}|~*{{{skill alteration name}}}*|?}};?]]}} | ||
+ | {{#if:{{{all skill bonus class|}}}{{{all skill bonus min|}}}{{{all skill bonus max|}}}| [[Has skill range level bonus::{{{all skill bonus class|?}}};{{#if:{{{all skill bonus min|}}}|<{{{all skill bonus min|}}}}};{{#if:{{{all skill bonus max|}}}|>{{{all skill bonus max|}}}}};?]] }} | ||
{{#if:{{{set|}}}|[[Is part of set::{{{set}}}]]}} | {{#if:{{{set|}}}|[[Is part of set::{{{set}}}]]}} | ||
{{#ifeq:{{{aura|}}}|Yes|[[Has aura effect::+]]}} | {{#ifeq:{{{aura|}}}|Yes|[[Has aura effect::+]]}} | ||
Line 62: | Line 138: | ||
|?Has level requirement <!-- 8 --> | |?Has level requirement <!-- 8 --> | ||
|?Has class requirement | |?Has class requirement | ||
− | |?Has | + | |?Has preformatted base stats text <!-- 10 --> |
− | |?Has | + | |?Has preformatted shortened base stats text |
− | |?Has | + | |?Has preformatted stat bonuses text <!-- 12 --> |
− | |?Has | + | |?Has preformatted skill bonuses text |
− | + | |?Has effect description <!-- 14 --> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |?Has effect description <!-- | ||
|?Has flavor text | |?Has flavor text | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| link = none | | link = none | ||
| format = template | | format = template | ||
| template = Equipment list result format | | template = Equipment list result format | ||
− | | intro = {{Equipment list header|show flavor text = n}} | + | | intro = {{Equipment list header|show flavor text = n|show type={{#if:{{{weapon type|}}}|n|y}}|show skill bonus = y}} |
| outro = {{!}}} | | outro = {{!}}} | ||
− | + | | sort = Has level requirement, Has name | |
− | | sort = Has name | + | | sortorder = ascending, ascending |
− | | sortorder = ascending | + | | limit = 200 |
− | | searchlabel = | + | | offset = {{{offset}}} |
+ | | searchlabel = | ||
| default = No equipment found that satisfy the search criteria. | | default = No equipment found that satisfy the search criteria. | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 159: | Line 162: | ||
=== Parameters === | === Parameters === | ||
− | ; | + | ; name : |
− | ; | + | ; min level : |
− | ; | + | ; max level : |
− | ; | + | ; rarity : |
− | ; | + | ; equipment type : |
− | ; | + | ; weapon class : |
− | ; | + | ; armor slot : |
− | ; | + | ; armor weight : |
− | ; | + | ; accessory slot : |
− | ; | + | ; special equipment slot : |
− | ; | + | ; class : |
− | ; | + | ; base name 1 : |
− | ; | + | ; base value min 1 : |
− | ; | + | ; base value max 1 : |
− | ; | + | ; base name 2 : |
− | ; | + | ; base value min 2 : |
− | ; | + | ; base value max 2 : |
− | ; | + | ; other name 1 : |
− | ; | + | ; other value min 1 : |
− | ; | + | ; other value max 1 : |
− | ; | + | ; other name 2 : |
− | ; | + | ; other value min 2 : |
− | ; | + | ; other value max 2 : |
− | ; | + | ; other name 3 : |
− | ; | + | ; other value min 3 : |
− | ; | + | ; other value max 3 : |
− | ; | + | ; skill bonus class : |
− | ; | + | ; skill bonus name : |
− | ; | + | ; skill alteration class : |
− | ; | + | ; skill alteration name : |
− | ; | + | ; all skill bonus class : |
− | ; | + | ; all skill bonus min : |
− | ; | + | ; all skill bonus max : |
− | ; | + | ; set : |
+ | ; aura : | ||
+ | ; inflict ele : | ||
== See also == | == See also == |
Latest revision as of 09:47, 4 April 2016
Contents
[hide]Description
Template used by Form:Equipment query. Similar to Template:Equipment list in function.
Usage
Parameters
- name
- min level
- max level
- rarity
- equipment type
- weapon class
- armor slot
- armor weight
- accessory slot
- special equipment slot
- class
- base name 1
- base value min 1
- base value max 1
- base name 2
- base value min 2
- base value max 2
- other name 1
- other value min 1
- other value max 1
- other name 2
- other value min 2
- other value max 2
- other name 3
- other value min 3
- other value max 3
- skill bonus class
- skill bonus name
- skill alteration class
- skill alteration name
- all skill bonus class
- all skill bonus min
- all skill bonus max
- set
- aura
- inflict ele