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
m
 
(2 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}}]]
 
<!--
 
<!--
     Effect Columns
+
 
 +
     Effect Columns: check whether any var "show X" is set
 +
 
 
-->{{#if: {{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y|y}}|}}
 
-->{{#if: {{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y|y}}|}}
 
| <!--
 
| <!--
    Effect Columns: columns set
 
-->{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y| {{!!}} {{#vardefine:queryresult|
 
  
{{Equipment effect retrieval|{{{2}}}#@@@pcseteffect}}
+
    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|}}
 
{{#vardefine:br|}}
{{#arraymap:{{lc:{{Stat enumeration|base=only}}}}|,|@@@|
+
{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted base stats text|link=none|default=}}
{{#if:{{#var:@@@}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{Stat|@@@|{{#var:@@@}} }} |}}
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|}}{{#if:{{#var:inflicts elemental damage}}|{{#arraymap:{{#var:inflicts elemental damage}}|,|@@@|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}Inflict @@@ Damage|}}
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted stat bonuses text|link=none|default=}}
|}}{{#arraymap:{{lc:{{Stat enumeration|base=exclude}}}}|,|@@@|
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
{{#if:{{#var:@@@}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{Stat|@@@|{{#var:@@@}} }} |}}
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted skill bonuses text|link=none|default=}}
|}}{{#if:{{#var:skill level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill level bonus}}
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|}}{{#if:{{#var:skill range level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill range level bonus}}
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has effect description|link=none|default=}}
|}}{{#if:{{#var:aura effect}}|{{#arraymap:{{#var:aura effect}}|;|@@@|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}@@@|}}
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|}}{{#if:{{#var:effect description}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}
+
}}
{{#var:effect description}}
 
|}}{{#if:{{#var:flavor text}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:flavor text}}
 
|}}
 
  
}}
+
}}<!-- end vardefine --><nowiki></nowiki>
{{#if:{{#var:queryresult|}}|{{#var:queryresult}}|<center>&mdash;</center>}}
+
{{!}} {{#if:{{#var:queryresult|}}|<div class="compact">
}}<!-- end if -->| }} <!-- end arraymap -->
+
{{#var:queryresult}}</div>|<center>&mdash;</center>}}
 +
}}<!-- end ifeq -->|}} <!-- end arraymap -->
 
| <!--
 
| <!--
     Effect Columns: no column set
+
 
 +
     Effect Columns: no var set, print everything in a single column
 +
 
 
-->{{!!}} {{#vardefine:seteffectbr|}}{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#vardefine:queryresult|
 
-->{{!!}} {{#vardefine:seteffectbr|}}{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#vardefine:queryresult|
  
{{Equipment effect retrieval|{{{2}}}#@@@pcseteffect}}
 
 
{{#vardefine:br|}}
 
{{#vardefine:br|}}
{{#arraymap:{{lc:{{Stat enumeration|base=only}}}}|,|@@@|
+
{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted base stats text|link=none|default=}}
{{#if:{{#var:@@@}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{Stat|@@@|{{#var:@@@}} }} |}}
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|}}{{#if:{{#var:inflicts elemental damage}}|{{#arraymap:{{#var:inflicts elemental damage}}|,|@@@|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}Inflict @@@ Damage|}}
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted stat bonuses text|link=none|default=}}
|}}{{#arraymap:{{lc:{{Stat enumeration|base=exclude}}}}|,|@@@|
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
{{#if:{{#var:@@@}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{Stat|@@@|{{#var:@@@}} }} |}}
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted skill bonuses text|link=none|default=}}
|}}{{#if:{{#var:skill level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill level bonus}}
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|}}{{#if:{{#var:skill range level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill range level bonus}}
+
}}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has effect description|link=none|default=}}
|}}{{#if:{{#var:aura effect}}|{{#arraymap:{{#var:aura effect}}|;|@@@|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}@@@|}}
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|}}{{#if:{{#var:effect description}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:effect description}}
+
}}
|}}{{#if:{{#var:flavor text}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}''{{#var:flavor text}}''
 
|}}
 
  
}}
+
}}<!-- end vardefine -->
 
{{#if:{{#var:queryresult|}}|{{#if:{{#var:seteffectbr}}|<br>|{{#vardefine:seteffectbr|1}}}}<nowiki></nowiki>
 
{{#if:{{#var:queryresult|}}|{{#if:{{#var:seteffectbr}}|<br>|{{#vardefine:seteffectbr|1}}}}<nowiki></nowiki>
  
'''[@@@]'''<br>{{#var:queryresult}}}}
+
'''[@@@]'''<br><div class="compact">
 +
{{#var:queryresult}}</div>}}
 
|}}
 
|}}
 
}}
 
}}

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.