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"

From DFO World Wiki
Jump to: navigation, search
(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 = {{#switch:{{{weapon class|}}}
+
     | Weapon = {{#if:{{{weapon type|}}}
      | Slayer = {{#if:{{{weapon type|}}}|[[Has weapon type::{{{weapon type}}}]]|[[Has weapon type::Short Sword||Katana||Bludgeon||Zanbato||Lightsabre]]}}
+
       | [[Has weapon type::{{{weapon type}}}]]
       | Fighter = {{#if:{{{weapon type|}}}|[[Has weapon type::{{{weapon type}}}]]|[[Has weapon type::Knuckle||Gauntlets||Claw||Boxing Gloves||Tonfa]]}}
+
       | {{#if:{{{weapon class|}}}
       | Gunner = {{#if:{{{weapon type|}}}|[[Has weapon type::{{{weapon type}}}]]|[[Has weapon type::Revolver||Auto Gun||Musket||Hand Cannon||Bowgun]]}}
+
        | [[Category:{{{weapon class}}} Weapons]]
      | Mage = {{#if:{{{weapon type|}}}|[[Has weapon type::{{{weapon type}}}]]|[[Has weapon type::Spear||Pole||Rod||Staff||Broomstick]]}}
+
        | [[Has equipment slot::Weapon]]
      | Priest = {{#if:{{{weapon type|}}}|[[Has weapon type::{{{weapon type}}}]]|[[Has weapon type::Cross||Rosary||Totem||Scythe||Battle Axe]]}}
+
       }}
       | Thief = {{#if:{{{weapon type|}}}|[[Has weapon type::{{{weapon type}}}]]|[[Has weapon type::Dagger||Dual Blade||Wand||Chakra Weapon]]}}
 
      |#default = [[Has equipment slot::Weapon]]
 
 
     }}
 
     }}
     | Armor = {{#switch:{{{armor slot|}}}
+
     | Armor = {{#if:{{{armor slot|}}}
       | Head/Shoulder
+
       | [[Has equipment slot::{{{armor slot}}}]]
      | Top
+
        {{#if:{{{armor weight|}}}
      | Bottom
+
        | [[Has armor weight class::{{{armor weight}}}]]
      | Belt
+
        | [[Has equipment slot::Top||Head/Shoulder||Bottom||Belt||Shoes]]
      | Shoes = [[Has equipment slot::{{{armor slot}}}]]
+
      }}
      |#default = [[Has equipment slot::Top||Head/Shoulder||Bottom||Belt||Shoes]]
+
      | {{#if:{{{armor weight|}}}
    }}{{#if:{{{armor weight|}}}|[[Has armor weight class::{{{armor weight}}}]]|}}
+
        | [[Has armor weight class::{{{armor weight}}}]]
    | Accessory = {{#switch: {{{accessory slot|}}}
+
        | [[Has equipment slot::Top||Head/Shoulder||Bottom||Belt||Shoes]]
      | Necklace =
+
      }}
      | Ring =
 
      | Bracelet = [[Has equipment slot::{{{accessory slot}}}]]
 
      |#default = [[Has equipment slot::Necklace||Bracelet||Ring]]
 
 
     }}
 
     }}
     | Special Equipment = {{#switch: {{{special equipment slot|}}}
+
     | Accessory = {{#if:{{{accessory slot|}}}
       | Sub Equipment =
+
       | [[Has equipment slot::{{{accessory slot}}}]]
      | Magic Stone = [[Has equipment slot::{{{accessory slot}}}]]
+
       | [[Category:Accessories]][[Has equipment slot::!Title]]
       |#default = [[Has equipment slot::Sub Equipment||Magic Stone]]
+
    }}
 +
    | 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 physical power <!-- 10 -->
+
|?Has preformatted base stats text <!-- 10 -->
|?Has magical power
+
|?Has preformatted shortened base stats text
|?Has base attack <!-- 12 -->
+
|?Has preformatted stat bonuses text <!-- 12 -->
|?Has physical defense
+
|?Has preformatted skill bonuses text
|?Has magical defense <!-- 14 -->
+
|?Has effect description <!-- 14 -->
|?Has strength
 
|?Has intelligence <!-- 16 -->
 
|?Has vitality
 
|?Has spirit <!-- 18 -->
 
|?Has exorcism
 
|?Has hp maximum bonus <!-- 20 -->
 
|?Has mp maximum bonus
 
|?Has hp recovery bonus <!-- 22 -->
 
|?Has mp recovery bonus
 
|?Has attack speed bonus <!-- 24 -->
 
|?Has movement speed bonus
 
|?Has casting speed bonus <!-- 26 -->
 
|?Has all elemental resistances bonus
 
|?Has fire resist bonus <!-- 28 -->
 
|?Has water resist bonus
 
|?Has light resist bonus <!-- 30 -->
 
|?Has shadow resist bonus
 
|?Has all elemental damage bonus <!-- 32 -->
 
|?Has fire damage bonus
 
|?Has water damage bonus <!-- 34 -->
 
|?Has light damage bonus
 
|?Has shadow damage bonus <!-- 36 -->
 
|?Inflicts elemental damage
 
|?Has evasion rate bonus <!-- 38 -->
 
|?Has inventory weight limit bonus
 
|?Has hit recovery bonus <!-- 40 -->
 
|?Has immobility bonus
 
|?Has jump strength bonus <!-- 42 -->
 
|?Has physical critical hit bonus
 
|?Has magic critical hit bonus <!-- 44 -->
 
|?Has hit rate bonus
 
|?Has town movement speed bonus <!-- 46 -->
 
|?Has poison damage bonus
 
|?Has poison level bonus <!-- 48 -->
 
|?Has poison tolerance bonus
 
|?Has burn damage bonus <!-- 50 -->
 
|?Has burn level bonus
 
|?Has burn tolerance bonus <!-- 52 -->
 
|?Has bleeding damage bonus
 
|?Has bleeding level bonus <!-- 54 -->
 
|?Has bleeding tolerance bonus
 
|?Has electrocution damage bonus <!-- 56 -->
 
|?Has electrocution level bonus
 
|?Has electrocution tolerance bonus <!-- 58 -->
 
|?Has blind level bonus
 
|?Has blind tolerance bonus <!-- 60 -->
 
|?Has frozen level bonus
 
|?Has frozen tolerance bonus <!-- 62 -->
 
|?Has slow down level bonus
 
|?Has slow down tolerance bonus <!-- 64 -->
 
|?Has immobility level bonus
 
|?Has immobility tolerance bonus <!-- 66 -->
 
|?Has stone curse level bonus
 
|?Has stone curse tolerance bonus <!-- 68 -->
 
|?Has stun level bonus
 
|?Has stun tolerance bonus <!-- 70 -->
 
|?Has sleep level bonus
 
|?Has sleep tolerance bonus <!-- 72 -->
 
|?Has confuse level bonus
 
|?Has confuse tolerance bonus <!-- 74 -->
 
|?Has curse level bonus
 
|?Has curse tolerance bonus <!-- 76 -->
 
|?Has all abnormal status resist bonus
 
|?Has effect description <!-- 78 -->
 
 
|?Has flavor text
 
|?Has flavor text
|?Has skill level bonus|+index=1 <!-- 80 -->
 
|?Has skill level bonus|+index=2
 
|?Has skill level bonus|+index=3 <!-- 82 -->
 
|?Has aura effect
 
|?Has slow down duration <!-- 84 -->
 
|?Has skill range level bonus|+index=1
 
|?Has skill range level bonus|+index=2 <!-- 86 -->
 
|?Has skill range level bonus|+index=3
 
|?Has skill range level bonus|+index=4 <!-- 88 -->
 
|?Has level restriction
 
 
| 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 = {{!}}}
| limit = 150
+
| sort = Has level requirement, Has name
| sort = Has name
+
| sortorder = ascending, ascending
| sortorder = ascending
+
| limit = 200
| searchlabel = List of equipment that satisfy the search criteria.
+
| 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'' :  
+
; name :  
; ''min level'' :  
+
; min level :  
; ''max level'' :  
+
; max level :  
; ''rarity'' :  
+
; rarity :  
; ''equipment type'' :  
+
; equipment type :  
; ''weapon class'' :  
+
; weapon class :  
; ''armor slot'' :  
+
; armor slot :  
; ''armor weight'' :  
+
; armor weight :  
; ''accessory slot'' :  
+
; accessory slot :  
; ''special equipment slot'' :  
+
; special equipment slot :  
; ''class'' :  
+
; class :  
; ''base name 1'' :  
+
; base name 1 :  
; ''base value min 1'' :  
+
; base value min 1 :  
; ''base value max 1'' :  
+
; base value max 1 :  
; ''base name 2'' :  
+
; base name 2 :  
; ''base value min 2'' :  
+
; base value min 2 :  
; ''base value max 2'' :  
+
; base value max 2 :  
; ''other name 1'' :  
+
; other name 1 :  
; ''other value min 1'' :  
+
; other value min 1 :  
; ''other value max 1'' :  
+
; other value max 1 :  
; ''other name 2'' :  
+
; other name 2 :  
; ''other value min 2'' :  
+
; other value min 2 :  
; ''other value max 2'' :  
+
; other value max 2 :  
; ''other name 3'' :  
+
; other name 3 :  
; ''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 :  
; ''set'' :  
+
; all skill bonus min :  
; ''aura'' :  
+
; all skill bonus max :  
; ''inflict ele'' :
+
; set :  
 +
; aura :  
 +
; inflict ele :
  
 
== See also ==
 
== See also ==

Latest revision as of 10:47, 4 April 2016

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 

See also