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 header"
(Created page with "<includeonly><!-- create variable to prevent a set to appear multiple times -->{{#vardefine:checked set|}}{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#vardefine:show @@@|n}}|}...") |
|||
Line 1: | Line 1: | ||
− | <includeonly><!-- create variable to prevent a set to appear multiple times -->{{#vardefine:checked set|}}{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#vardefine:show @@@|n}}|}}{{#if:{{{show columns|}}}|{{#arraymap:{{{show columns}}}|,|@@@|{{#vardefine:show @@@|y}}|}}}}{{#vardefine:show equipment|{{{show equipment|n}}}}}{| class="wikitable sortable" | + | <includeonly><!-- create variable to prevent a set to appear multiple times -->{{#vardefine:checked set|}}{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#vardefine:show @@@|n}}|}}{{#if:{{{show columns|}}}|{{#arraymap:{{{show columns}}}|,|@@@|{{#vardefine:show @@@|y}}|}}}}{{#vardefine:show equipment|{{{show equipment|n}}}}}<!-- |
+ | |||
+ | begin table | ||
+ | |||
+ | -->{| class="wikitable sortable" | ||
! Set {{#if: {{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y|y}}|}} | ! Set {{#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|!! [@@@] Effect}}|}} | | <!-- columns set -->{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|@@@|{{#ifeq:{{#var:show @@@}}|y|!! [@@@] Effect}}|}} |
Revision as of 19:48, 12 March 2016
Description
This template creates the header used in set lists. Used by Template:Set list.
Usage
{{Shop list header | show columns = | show equipment = }}
Parameters
All parameters are optional unless stated otherwise.
- show columns
- Specify which set effect columns are shown. E.g.
3, 6, 9
to show the set effect for 3 pieces, 6 pieces and 9 pieces in a separate column. If nothing is set, all effects will be shown in a single column. - show equipment
- Set to y to display all equipment that is part of the set, n to hide. Defaults to n.