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"
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:result number|{{#ask: [[Has item type::Equipment]] | + | <includeonly><!-- |
+ | 2 queries: First one to count the results, second for the actual query. If you change one, make sure to also change the other. | ||
+ | -->{{#vardefine:result number|{{#ask: [[Has item type::Equipment]][[Has availability status::Available]] | ||
{{#if:{{{name|}}}|[[Has lowercase name::~*{{lc:{{{name}}}}}*]]}} | {{#if:{{{name|}}}|[[Has lowercase name::~*{{lc:{{{name}}}}}*]]}} | ||
{{#if:{{{rarity|}}}|[[Has item rarity::{{{rarity}}}]]}} | {{#if:{{{rarity|}}}|[[Has item rarity::{{{rarity}}}]]}} | ||
Line 5: | Line 7: | ||
{{#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 56: | Line 56: | ||
{{#if:{{{other value max 3|}}}|[[Has {{lc:{{{other name 3}}}}} bonus::<{{{other value max 3|}}}]]}} | {{#if:{{{other value max 3|}}}|[[Has {{lc:{{{other name 3}}}}} bonus::<{{{other value max 3|}}}]]}} | ||
}} | }} | ||
− | {{#if:{{{skill class|}}}{{{skill name|}}}|[[Has skill level bonus::{{{skill class|?}}};~*{{{skill name|}}}*;?]]}} | + | {{#if:{{{skill bonus class|}}}{{{skill bonus name|}}}|[[Has skill level bonus::{{{skill bonus class|?}}};{{#if:{{{skill bonus name|}}}|~*{{{skill bonus name}}}*|?}};?]]}} |
− | {{#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:{{{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::true]]}} |
{{#if:{{{inflict ele|}}}|[[Inflicts elemental damage::{{{inflict ele}}}]]}} | {{#if:{{{inflict ele|}}}|[[Inflicts elemental damage::{{{inflict ele}}}]]}} | ||
| link = none | | link = none | ||
Line 66: | Line 67: | ||
}} | }} | ||
}}<!-- end var result number | }}<!-- end var result number | ||
− | -->{{#ifexpr:{{#var:result number}} > 0|{{#ifexpr:{{#var:result number}} < {{{offset}}} | The offset selected it too large to display any of the {{#var:result number}} results. | {{#var:result number}} results found. Displaying results {{#expr:{{{offset}}}+1}} to {{#ifexpr: {{#var:result number}} - {{{offset}}} > 200| {{#expr: {{{offset}}} + 200}}| {{#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]] | + | {{#ask: [[Has item type::Equipment]][[Has availability status::Available]] |
{{#if:{{{name|}}}|[[Has lowercase name::~*{{lc:{{{name}}}}}*]]}} | {{#if:{{{name|}}}|[[Has lowercase name::~*{{lc:{{{name}}}}}*]]}} | ||
{{#if:{{{rarity|}}}|[[Has item rarity::{{{rarity}}}]]}} | {{#if:{{{rarity|}}}|[[Has item rarity::{{{rarity}}}]]}} | ||
Line 74: | Line 75: | ||
{{#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 = {{#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 = {{# | + | | 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 125: | Line 124: | ||
{{#if:{{{other value max 3|}}}|[[Has {{lc:{{{other name 3}}}}} bonus::<{{{other value max 3|}}}]]}} | {{#if:{{{other value max 3|}}}|[[Has {{lc:{{{other name 3}}}}} bonus::<{{{other value max 3|}}}]]}} | ||
}} | }} | ||
− | {{#if:{{{skill class|}}}{{{skill name|}}}|[[Has skill level bonus::{{{skill class|?}}};~*{{{skill name|}}}*;?]]}} | + | {{#if:{{{skill bonus class|}}}{{{skill bonus name|}}}|[[Has skill level bonus::{{{skill bonus class|?}}};{{#if:{{{skill bonus name|}}}|~*{{{skill bonus name}}}*|?}};?]]}} |
− | {{#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:{{{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 138: | 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|show type={{#if:{{{weapon type|}}}|n|y}}}} | + | | 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 level requirement, Has name | ||
Line 275: | Line 188: | ||
; other value min 3 : | ; other value min 3 : | ||
; other value max 3 : | ; other value max 3 : | ||
− | ; skill class : | + | ; skill bonus class : |
− | ; skill name : | + | ; skill bonus name : |
− | ; all skill class : | + | ; skill alteration class : |
− | ; all skill min : | + | ; skill alteration name : |
− | ; all skill max : | + | ; all skill bonus class : |
+ | ; all skill bonus min : | ||
+ | ; all skill bonus max : | ||
; set : | ; set : | ||
; aura : | ; aura : |
Latest revision as of 09:47, 4 April 2016
Contents
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