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

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(test explode further)
Line 47: Line 47:
explode Has base skill stage at pos=0 with delimiter="###": {{#explode:{{{?Has base skill stage}}}|###| 0 }}
explode Has base skill stage at pos=0 with delimiter="###": {{#explode:{{{?Has base skill stage}}}|###| 0 }}


explode Has base skill stage at pos=0 with delimiter="### ": {{#explode:{{{?Has base skill stage}}}|### | 0 }}
counter var: {{#var:counter}}
 
arraymap through stage: {{#arraymap: {{{?Has base skill stage|}}}
    |###
    |@@@
    |@@@-->|}}
 
base skill 0 subobj: {{#var:base skill 0 subobj}}
 
base skill 1 subobj: {{#var:base skill 1 subobj}}
 
base skill 2 subobj: {{#var:base skill 2 subobj}}


END</td><td>{{#ifeq: {{#expr:{{#var:counter}} > 0 }} | 1 |{{#ifeq: {{#var:base skill 0 subobj}} | - | {{#var:base skill 0 name}} | [[{{#var:base skill 0 subobj}}|{{#var:base skill 0 name}}]] }} {{#ifeq: {{#var:show skill description}} | y | / {{#var:base skill 0 desc}} }} | N/A}}</td>
END</td><td>{{#ifeq: {{#expr:{{#var:counter}} > 0 }} | 1 |{{#ifeq: {{#var:base skill 0 subobj}} | - | {{#var:base skill 0 name}} | [[{{#var:base skill 0 subobj}}|{{#var:base skill 0 name}}]] }} {{#ifeq: {{#var:show skill description}} | y | / {{#var:base skill 0 desc}} }} | N/A}}</td>

Revision as of 03:05, 12 April 2017

Description

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