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
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
 
-->{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y|{{#vardefine:queryresult|
 
-->{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y|{{#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:effect description}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
<div class="compact">{{#var:effect description}}</div>
+
}}
|}}{{#if:{{#var:flavor text}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:flavor text}}
 
|}}
 
  
}}<!-- end vardefine -->
+
}}<!-- end vardefine --><nowiki></nowiki>
{{!!}} {{#if:{{#var:queryresult|}}|{{#var:queryresult}}|<center>&mdash;</center>}}
+
{{!}} {{#if:{{#var:queryresult|}}|<div class="compact">
 +
{{#var:queryresult}}</div>|<center>&mdash;</center>}}
 
}}<!-- end ifeq -->|}} <!-- end arraymap -->
 
}}<!-- end ifeq -->|}} <!-- end arraymap -->
 
| <!--
 
| <!--
Line 42: Line 40:
 
-->{{!!}} {{#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:effect description}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}<div class="compact">{{#var:effect description}}</div>
+
}}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}}
|}}{{#if:{{#var:flavor text}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}''{{#var:flavor text}}''
+
}}
|}}
 
  
 
}}<!-- end vardefine -->
 
}}<!-- 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.