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
 
(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 = {{#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 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 = {{#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 = {{#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]]
 +
       }}
 
     }}
 
     }}
     | Armor = {{#switch:{{{armor slot|}}}
+
     | Accessory = {{#if:{{{accessory slot|}}}
       | Head/Shoulder
+
       | [[Has equipment slot::{{{accessory slot}}}]]
      | Top
+
       | [[Category:Accessories]][[Has equipment slot::!Title]]
      | Bottom
 
      | Belt
 
      | Shoes = [[Has equipment slot::{{{armor slot}}}]]
 
       |#default = [[Has equipment slot::Top||Head/Shoulder||Bottom||Belt||Shoes]]
 
    }}{{#if:{{{armor weight|}}}|[[Has armor weight class::{{{armor weight}}}]]|}}
 
    | Accessory = {{#switch: {{{accessory slot|}}}
 
      | Necklace =
 
      | Ring =
 
      | Bracelet = [[Has equipment slot::{{{accessory slot}}}]]
 
      |#default = [[Has equipment slot::Necklace||Bracelet||Ring]]
 
 
     }}
 
     }}
     | Special Equipment = {{#switch: {{{special equipment slot|}}}
+
     | Special Equipment = {{#if:{{{special equipment slot|}}}
       | Sub Equipment =
+
       | [[Has equipment slot::{{{accessory slot}}}]]
      | Magic Stone = [[Has equipment slot::{{{accessory slot}}}]]
+
       | [[Category:Special Equipment]]
       |#default = [[Has equipment slot::Sub Equipment||Magic Stone]]
 
 
     }}{{#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 weapon physical attack <!-- 10 -->
+
|?Has preformatted base stats text <!-- 10 -->
|?Has weapon magical attack
+
|?Has preformatted shortened base stats text
|?Has independent attack <!-- 12 -->
+
|?Has preformatted stat bonuses text <!-- 12 -->
|?Has equipment physical defense
+
|?Has preformatted skill bonuses text
|?Has equipment 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 chance bonus
 
|?Has magic critical chance 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
 
|?Has stone curse damage bonus <!-- 90 -->
 
|?Has poison duration
 
|?Has burn duration <!-- 92 -->
 
|?Has bleeding duration
 
|?Has electrocution duration <!-- 94 -->
 
|?Has blind duration
 
|?Has frozen duration <!-- 96 -->
 
|?Has immobility duration
 
|?Has stone curse duration <!-- 98 -->
 
|?Has stun duration
 
|?Has sleep duration <!-- 100 -->
 
|?Has confuse duration
 
|?Has curse duration <!-- 102 -->
 
 
| 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

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