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"
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: 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|}} | ||
− | {{# | + | {{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted base stats text|link=none|default=}} |
− | {{#if:{{#var: | + | }}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}} |
− | + | }}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted stat bonuses text|link=none|default=}} | |
− | | | + | }}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}} |
− | {{#if:{{#var: | + | }}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted skill bonuses text|link=none|default=}} |
− | + | }}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}} | |
− | + | }}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has effect description|link=none|default=}} | |
− | + | }}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}} | |
− | + | }} | |
− | |||
− | |||
− | |||
− | }} | + | }}<!-- end vardefine --><nowiki></nowiki> |
− | {{#if:{{#var:queryresult|}}|{{#var:queryresult}}|<center>—</center>}} | + | {{!}} {{#if:{{#var:queryresult|}}|<div class="compact"> |
− | }}<!-- end | + | {{#var:queryresult}}</div>|<center>—</center>}} |
+ | }}<!-- 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| | ||
− | |||
{{#vardefine:br|}} | {{#vardefine:br|}} | ||
− | {{# | + | {{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted base stats text|link=none|default=}} |
− | {{#if:{{#var: | + | }}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}} |
− | + | }}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted stat bonuses text|link=none|default=}} | |
− | | | + | }}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}} |
− | {{#if:{{#var: | + | }}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has preformatted skill bonuses text|link=none|default=}} |
− | + | }}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}} | |
− | + | }}{{#vardefine:text lookup|{{#show:{{{2}}}#@@@pcseteffect|?Has effect description|link=none|default=}} | |
− | + | }}{{#if:{{#var:text lookup}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:text lookup}} | |
− | + | }} | |
− | |||
− | |||
− | }} | + | }}<!-- 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.