Difference between revisions of "Template:Transient list table result format"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(trying to find out what's wrong with skill display)
(set explode delimiter for base skill values to ###)
Line 12: Line 12:
     {{#vardefine:counter|0}}
     {{#vardefine:counter|0}}
     {{#arraymap: {{{?Has base skill stage|}}}
     {{#arraymap: {{{?Has base skill stage|}}}
     |,
     |###
     |@@@
     |@@@
     |{{#vardefine:base skill @@@ subobj|{{#explode:{{{?Has base skill subobj}}}|,| {{#var:counter}} }} }}
     |{{#vardefine:base skill @@@ subobj|{{#explode:{{{?Has base skill subobj}}}|###| {{#var:counter}} }} }}
     {{#vardefine:base skill @@@ name|{{#explode:{{{?Has base skill en name}}}|,| {{#var:counter}} }} }}
     {{#vardefine:base skill @@@ name|{{#explode:{{{?Has base skill en name}}}|###| {{#var:counter}} }} }}
     {{#vardefine:base skill @@@ desc|{{#explode:{{{?Has base skill desc}}}|%,| {{#var:counter}} }} }}
     {{#vardefine:base skill @@@ desc|{{#explode:{{{?Has base skill desc}}}|###| {{#var:counter}} }} }}
    {{#ifeq:{{#sub:{{#var:base skill @@@ desc}}|-1}}|%|| {{#vardefine:base skill @@@ desc|{{#var:base skill @@@ desc}}%}} }}
     {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
     {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
     |}}
     |}}

Revision as of 02:45, 12 April 2017

Description

This template creates a table row using query results. Used by Template:Companion list.