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

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(add debug cell)
(test illustrator output for multiple illustrators)
Line 48: Line 48:
Has illustrator name: {{{?Has illustrator name}}}
Has illustrator name: {{{?Has illustrator name}}}


END</td>{{#ifeq: {{#var:show illustrator}} | y | <td>{{#if:
END</td>{{#ifeq: {{#var:show illustrator}} | y | <td>{{#if:{{{?Has illustrator name|}}}
    <!-- match illustrator subobj with names -->
     | {{#vardefine:counter|0}}
     {{#vardefine:counter|0}}
      {{#arraydefine: illustrator|{{{?Has illustrator name}}}|###}}
    {{#arraydefine: illustrator|{{{?Has illustrator name}}}|###}}
      {{#arrayprint: illustrator
    {{#arrayprint: illustrator
      |,&#32;
    |
      |@@@
    |@@@
      |{{#ifeq: {{#explode:{{{?Has illustrator subobj}}}|###| {{#var:counter}} }} | - | @@@ | [[{{#explode:{{{?Has illustrator subobj}}}|###| {{#var:counter}} }}|@@@]] }}
    |{{#vardefine:base skill @@@ subobj|{{#explode:{{{?Has base skill subobj}}}|###| {{#var:counter}} }} }}
      {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
    {{#vardefine:base skill @@@ name|{{#explode:{{{?Has base skill en name}}}|###| {{#var:counter}} }} }}
      }}
    {{#vardefine:base skill @@@ desc|{{#explode:{{{?Has base skill desc}}}|###| {{#var:counter}} }} }}
    | &mdash;&mdash;
    {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
    }}</td>
    }}
 
 
 
  }}
 
 
 
 
 
{{#if:{{{?Has illustrator name|}}}|{{#if:{{{?Has illustrator subobj|}}}|[[{{{?Has illustrator subobj}}}|{{{?Has illustrator name}}}]]|{{{?Has illustrator name}}}}}|&mdash;&mdash;}}</td>
   }}{{#ifeq: {{#var:show scenario writer}} | y | <td>{{#if:{{{?Has scenario writer name|}}}|{{#if:{{{?Has scenario writer subobj|}}}|[[{{{?Has scenario writer subobj}}}|{{{?Has scenario writer name}}}]]|{{{?Has scenario writer name}}}}}|&mdash;&mdash;}}</td>
   }}{{#ifeq: {{#var:show scenario writer}} | y | <td>{{#if:{{{?Has scenario writer name|}}}|{{#if:{{{?Has scenario writer subobj|}}}|[[{{{?Has scenario writer subobj}}}|{{{?Has scenario writer name}}}]]|{{{?Has scenario writer name}}}}}|&mdash;&mdash;}}</td>
   }}{{#ifeq: {{#var:show voice actor}} | y | <td>{{#if:{{{?Has voice actor name|}}}|{{#if:{{{?Has voice actor subobj|}}}|[[{{{?Has voice actor subobj}}}|{{{?Has voice actor name}}}]]|{{{?Has voice actor name}}}}}|&mdash;&mdash;}}</td>}}
   }}{{#ifeq: {{#var:show voice actor}} | y | <td>{{#if:{{{?Has voice actor name|}}}|{{#if:{{{?Has voice actor subobj|}}}|[[{{{?Has voice actor subobj}}}|{{{?Has voice actor name}}}]]|{{{?Has voice actor name}}}}}|&mdash;&mdash;}}</td>}}

Revision as of 03:20, 13 April 2017

Description

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