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"
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: | + | |
− | -->{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|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| | ||
{{Equipment effect retrieval|{{{2}}}#@@@pcseteffect}} | {{Equipment effect retrieval|{{{2}}}#@@@pcseteffect}} | ||
Line 22: | Line 28: | ||
|}}{{#if:{{#var:skill level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill level bonus}} | |}}{{#if:{{#var:skill level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill level bonus}} | ||
|}}{{#if:{{#var:skill range level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill range level bonus}} | |}}{{#if:{{#var:skill range level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill range level bonus}} | ||
− | |||
|}}{{#if:{{#var:effect description}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}} | |}}{{#if:{{#var:effect description}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}} | ||
− | {{#var:effect description}} | + | <div class="compact">{{#var:effect description}}</div> |
|}}{{#if:{{#var:flavor text}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:flavor text}} | |}}{{#if:{{#var:flavor text}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:flavor text}} | ||
|}} | |}} | ||
− | }} | + | }}<!-- end vardefine --> |
− | {{#if:{{#var:queryresult|}}|{{#var:queryresult}}|<center>—</center>}} | + | {{!!}} {{#if:{{#var:queryresult|}}|{{#var:queryresult}}|<center>—</center>}} |
− | }}<!-- end | + | }}<!-- end ifeq -->|}} <!-- end arraymap --> |
| <!-- | | <!-- | ||
− | Effect Columns: no column | + | |
+ | 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| | ||
Line 44: | Line 51: | ||
|}}{{#if:{{#var:skill level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill level bonus}} | |}}{{#if:{{#var:skill level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill level bonus}} | ||
|}}{{#if:{{#var:skill range level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill range level bonus}} | |}}{{#if:{{#var:skill range level bonus}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:skill range level bonus}} | ||
− | |}}{{#if:{{#var: | + | |}}{{#if:{{#var:effect description}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}<div class="compact">{{#var:effect description}}</div> |
− | |||
|}}{{#if:{{#var:flavor text}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}''{{#var:flavor text}}'' | |}}{{#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> | ||
Revision as of 18:13, 17 March 2016
Description
This template creates a table row using query results. Used by Template:Set list and Template:Set list row.