Difference between revisions of "Template:Transient list table result format"
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|}}} | ||
| {{#vardefine:counter|0}} | |||
{{#vardefine:counter|0}} | {{#arraydefine: illustrator|{{{?Has illustrator name}}}|###}} | ||
{{#arrayprint: illustrator | |||
|,  | |||
|@@@ | |||
|{{#ifeq: {{#explode:{{{?Has illustrator subobj}}}|###| {{#var:counter}} }} | - | @@@ | [[{{#explode:{{{?Has illustrator subobj}}}|###| {{#var:counter}} }}|@@@]] }} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
| —— | |||
}}</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}}}}}|——}}</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}}}}}|——}}</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}}}}}|——}}</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}}}}}|——}}</td>}} |
Revision as of 03:20, 13 April 2017
Description
This template creates a table row using query results. Used by Template:Companion list.