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:Set list result format"

From DFO World Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#if: {{#arraymap:{{#var:checked set}}|,|@@@|{{#ifeq:@@@|{{{2}}}|checked|}}|}} |<!-- set already listed, do nothing --> |<!-- set not yet listed, display it -->{...")
 
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{#arraymap:{{#var:checked set}}|,|@@@|{{#ifeq:@@@|{{{2}}}|checked|}}|}}
+
<includeonly>{{#css:User:Gardios/Compact.css}}{{#if: {{#arraymap:{{#var:checked set}}|,|@@@|{{#ifeq:@@@|{{{2}}}|checked|}}|}}
 
|<!-- set already listed, do nothing -->
 
|<!-- set already listed, do nothing -->
 
|<!-- set not yet listed, display it -->{{#vardefine:checked set|{{#var:checked set|}}, {{{2}}}}}
 
|<!-- set not yet listed, display it -->{{#vardefine:checked set|{{#var:checked set|}}, {{{2}}}}}
 
{{!-}}
 
{{!-}}
 
<!--
 
<!--
 +
 
     Set Name
 
     Set Name
 +
 
-->{{!}} [[{{{2}}}|{{#show:{{{2}}}|?Has name}}]]
 
-->{{!}} [[{{{2}}}|{{#show:{{{2}}}|?Has name}}]]
{{#if: {{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y|y}}|}}
+
<!--
| <!-- columns set -->{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y| {{!!}} {{#ask:
+
 
[[Is set effect of set::{{{2}}}]]
+
    Effect Columns: check whether any var "show X" is set
[[Has required number of set pieces::@@@]]
+
 
|?
+
-->{{#if: {{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y|y}}|}}
|?
+
| <!--
|?
+
 
|?
+
    Effect Columns: var set, print column X if var "show X" is set
|?
+
 
|?
+
-->{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y|{{#vardefine:queryresult|
|?
+
 
|?
+
{{#vardefine:br|}}
|?Has weapon physical attack <!-- 10 -->
+
{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted base stats text|link=none|default=}}
|?Has weapon magical attack
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|?Has independent attack <!-- 12 -->
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted stat bonuses text|link=none|default=}}
|?Has equipment physical defense
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|?Has equipment magical defense <!-- 14 -->
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted skill bonuses text|link=none|default=}}
|?Has strength
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|?Has intelligence <!-- 16 -->
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has effect description|link=none|default=}}
|?Has vitality
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|?Has spirit <!-- 18 -->
+
}}
|?Has exorcism
+
 
|?Has hp maximum bonus <!-- 20 -->
+
}}<!-- end vardefine --><nowiki></nowiki>
|?Has mp maximum bonus
+
{{!}} {{#if:{{#var:queryresult|}}|<div class="compact">
|?Has hp recovery bonus <!-- 22 -->
+
{{#var:queryresult}}</div>|<center>&mdash;</center>}}
|?Has mp recovery bonus
+
}}<!-- end ifeq -->|}} <!-- end arraymap -->
|?Has attack speed bonus <!-- 24 -->
+
| <!--
|?Has movement speed bonus
+
 
|?Has casting speed bonus <!-- 26 -->
+
    Effect Columns: no var set, print everything in a single column
|?Has all elemental resistances bonus
+
 
|?Has fire resist bonus <!-- 28 -->
+
-->{{!!}} {{#vardefine:seteffectbr|}}{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#vardefine:queryresult|
|?Has water resist bonus
+
 
|?Has light resist bonus <!-- 30 -->
+
{{#vardefine:br|}}
|?Has shadow resist bonus
+
{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted base stats text|link=none|default=}}
|?Has all elemental damage bonus <!-- 32 -->
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|?Has fire damage bonus
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted stat bonuses text|link=none|default=}}
|?Has water damage bonus <!-- 34 -->
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|?Has light damage bonus
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted skill bonuses text|link=none|default=}}
|?Has shadow damage bonus <!-- 36 -->
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|?Inflicts elemental damage
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has effect description|link=none|default=}}
|?Has evasion rate bonus <!-- 38 -->
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|?Has inventory weight limit bonus
+
}}
|?Has hit recovery bonus <!-- 40 -->
+
 
|?Has immobility bonus
+
}}<!-- end vardefine -->
|?Has jump strength bonus <!-- 42 -->
+
{{#if:{{#var:queryresult|}}|{{#if:{{#var:seteffectbr}}|<br>|{{#vardefine:seteffectbr|1}}}}<nowiki></nowiki>
|?Has physical critical chance bonus
+
 
|?Has magic critical chance bonus <!-- 44 -->
+
'''[@@@]'''<br><div class="compact">
|?Has hit rate bonus
+
{{#var:queryresult}}</div>}}
|?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 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
 
| format = template
 
| template = Set effects
 
| default =
 
}} <!-- end ask -->}}| }}
 
| <!-- no column set -->{{!!}} {{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#vardefine:queryresult|{{#ask:
 
[[{{{2}}}#@@@pcseteffect]]
 
|?
 
|?
 
|?
 
|?
 
|?
 
|?
 
|?
 
|?
 
|?Has weapon physical attack <!-- 10 -->
 
|?Has weapon magical attack
 
|?Has independent attack <!-- 12 -->
 
|?Has equipment physical defense
 
|?Has equipment magical defense <!-- 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 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
 
| format = template
 
| template = Set effects
 
| default =
 
 
}}
 
}}
}}{{#if:{{#var:queryresult|}}|'''[@@@]'''<br>{{#var:queryresult}}}}
+
<!--
|<br>}}
+
    Equipment
}} {{#ifeq:{{#var:show equipment}}|y|{{!!}} {{#ask:[[Has item type::Equipment]] [[Is part of set::{{{2}}}]]
+
-->{{#ifeq:{{#var:show equipment}}|y|{{!!}} {{#ask:[[Has item type::Equipment]] [[Is part of set::{{{2}}}]]
 
|?Has name
 
|?Has name
 
| format = ul
 
| format = ul
Line 235: Line 69:
 
}} <!-- end ask -->
 
}} <!-- end ask -->
 
}}
 
}}
}}</includeonly><noinclude>== Description ==
+
}}
 +
</includeonly><noinclude>== Description ==
  
 
This template creates a table row using query results. Used by [[Template:Set list]] and [[Template:Set list row]].
 
This template creates a table row using query results. Used by [[Template:Set list]] and [[Template:Set list row]].

Latest revision as of 12:45, 27 April 2016

Description

This template creates a table row using query results. Used by Template:Set list and Template:Set list row.