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

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(test illustrator output for multiple illustrators)
(modify voice actor, scenario writer output for multiple voice actors, scenario writers; remove debug cell)
Line 42: Line 42:
   <td>{{#ifeq: {{#expr:{{#var:counter}} > 3 }} | 1 |{{#ifeq: {{#var:base skill 3 subobj}} | - | {{#var:base skill 3 name}} | [[{{#var:base skill 3 subobj}}|{{#var:base skill 3 name}}]] }} {{#ifeq: {{#var:show skill description}} | y | / {{#var:base skill 3 desc}} }} | N/A }}</td>
   <td>{{#ifeq: {{#expr:{{#var:counter}} > 3 }} | 1 |{{#ifeq: {{#var:base skill 3 subobj}} | - | {{#var:base skill 3 name}} | [[{{#var:base skill 3 subobj}}|{{#var:base skill 3 name}}]] }} {{#ifeq: {{#var:show skill description}} | y | / {{#var:base skill 3 desc}} }} | N/A }}</td>
   }}{{#ifeq: {{#var:show charge skill}} | y | <td>[[{{{?Has charge skill pattern}}}|50px]]</td><td>{{{?Has charge skill name|}}} {{#ifeq: {{#var:show skill description}} | y |/ {{{?Has charge skill desc|}}} }}</td>
   }}{{#ifeq: {{#var:show charge skill}} | y | <td>[[{{{?Has charge skill pattern}}}|50px]]</td><td>{{{?Has charge skill name|}}} {{#ifeq: {{#var:show skill description}} | y |/ {{{?Has charge skill desc|}}} }}</td>
   }}<td>DEBUG
   }}{{#ifeq: {{#var:show illustrator}} | y | <td>{{#if:{{{?Has illustrator name|}}}
 
Has illustrator subobj: {{{?Has illustrator subobj}}}
 
Has illustrator name: {{{?Has illustrator name}}}
 
END</td>{{#ifeq: {{#var:show illustrator}} | y | <td>{{#if:{{{?Has illustrator name|}}}
     | {{#vardefine:counter|0}}
     | {{#vardefine:counter|0}}
       {{#arraydefine: illustrator|{{{?Has illustrator name}}}|###}}
       {{#arraydefine: illustrator|{{{?Has illustrator name}}}|###}}
Line 59: Line 53:
     | &mdash;&mdash;
     | &mdash;&mdash;
     }}</td>
     }}</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|}}}
   }}{{#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>}}
    | {{#vardefine:counter|0}}
      {{#arraydefine: scenario writer|{{{?Has scenario writer name}}}|###}}
      {{#arrayprint: scenario writer
      |,&#32;
      |@@@
      |{{#ifeq: {{#explode:{{{?Has scenario writer subobj}}}|###| {{#var:counter}} }} | - | @@@ | [[{{#explode:{{{?Has scenario writer subobj}}}|###| {{#var:counter}} }}|@@@]] }}
      {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
      }}
    | &mdash;&mdash;
    }}</td>
   }}{{#ifeq: {{#var:show voice actor}} | y | <td>{{#if:{{{?Has voice actor name|}}}
    | {{#vardefine:counter|0}}
      {{#arraydefine: voice actor|{{{?Has voice actor name}}}|###}}
      {{#arrayprint: voice actor
      |,&#32;
      |@@@
      |{{#ifeq: {{#explode:{{{?Has voice actor subobj}}}|###| {{#var:counter}} }} | - | @@@ | [[{{#explode:{{{?Has voice actor subobj}}}|###| {{#var:counter}} }}|@@@]] }}
      {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
      }}
    | &mdash;&mdash;
    }}</td>}}
</tr></includeonly><noinclude>== Description ==
</tr></includeonly><noinclude>== Description ==



Revision as of 03:23, 13 April 2017

Description

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