Difference between revisions of "Template:Transient list table result format"
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> | ||
}} | }}{{#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: | ||
| —— | | —— | ||
}}</td> | }}</td> | ||
}}{{#ifeq: {{#var:show scenario writer}} | y | <td>{{#if:{{{?Has scenario writer name|}}}|{{# | }}{{#ifeq: {{#var:show scenario writer}} | y | <td>{{#if:{{{?Has scenario writer name|}}} | ||
}}{{#ifeq: {{#var:show voice actor}} | y | <td>{{#if:{{{?Has voice actor name|}}}|{{# | | {{#vardefine:counter|0}} | ||
{{#arraydefine: scenario writer|{{{?Has scenario writer name}}}|###}} | |||
{{#arrayprint: scenario writer | |||
|,  | |||
|@@@ | |||
|{{#ifeq: {{#explode:{{{?Has scenario writer subobj}}}|###| {{#var:counter}} }} | - | @@@ | [[{{#explode:{{{?Has scenario writer subobj}}}|###| {{#var:counter}} }}|@@@]] }} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
| —— | |||
}}</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 | |||
|,  | |||
|@@@ | |||
|{{#ifeq: {{#explode:{{{?Has voice actor subobj}}}|###| {{#var:counter}} }} | - | @@@ | [[{{#explode:{{{?Has voice actor subobj}}}|###| {{#var:counter}} }}|@@@]] }} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
| —— | |||
}}</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.