Difference between revisions of "Template:Transient list table result format"
Jump to navigation
Jump to search
(modify voice actor, scenario writer output for multiple voice actors, scenario writers; remove debug cell) |
|||
Line 3: | Line 3: | ||
<td>[[{{{?Companion list subobject}}}|{{{?Has English name}}} {{#ifeq: {{{?Has variant}}} | Standard | | ({{{?Has variant}}}) }}]]</td> | <td>[[{{{?Companion list subobject}}}|{{{?Has English name}}} {{#ifeq: {{{?Has variant}}} | Standard | | ({{{?Has variant}}}) }}]]</td> | ||
{{#ifeq: {{#var:show jp name}} | y | <td>{{{?Has Japanese name}}}</td> | {{#ifeq: {{#var:show jp name}} | y | <td>{{{?Has Japanese name}}}</td> | ||
}}{{#ifeq: {{#var:show rarity}} | y | <td>{{{?Has rarity}}}</td> | |||
}}{{#ifeq: {{#var:show cost}} | y | <td>{{{?Has card cost}}}</td> | |||
}}{{#ifeq: {{#var:show element}} | y | <td>{{Element|{{{?Has element}}}}}</td> | |||
}}{{#ifeq: {{#var:show weapon type}} | y | <td>{{Weapon type|{{{?Has weapon type}}}}}</td> | |||
}}{{#ifeq: {{#var:show base stats}} | y | <td>{{{?Has hp value}}}</td><td>{{{?Has atk value}}}</td> | |||
}}{{#ifeq: {{#var:show stats at lv}} | 0 | | <td>{{#expr:{{{?Has hp value}}}+{{{?Has hp growth value}}}*{{#var:show stats at lv}} round 0}}</td><td>{{#expr:{{{?Has atk value}}}+{{{?Has atk growth value}}}*{{#var:show stats at lv}} round 0}}</td> | |||
}}{{#if: | |||
<!-- vardefine skills and match them --> | <!-- vardefine skills and match them --> | ||
{{#vardefine:counter|0}} | {{#vardefine:counter|0}} | ||
Line 41: | Line 41: | ||
<td>{{#ifeq: {{#expr:{{#var:counter}} > 2 }} | 1 |{{#ifeq: {{#var:base skill 2 subobj}} | - | {{#var:base skill 2 name}} | [[{{#var:base skill 2 subobj}}|{{#var:base skill 2 name}}]] }} {{#ifeq: {{#var:show skill description}} | y | / {{#var:base skill 2 desc}} }} | N/A }}</td> | <td>{{#ifeq: {{#expr:{{#var:counter}} > 2 }} | 1 |{{#ifeq: {{#var:base skill 2 subobj}} | - | {{#var:base skill 2 name}} | [[{{#var:base skill 2 subobj}}|{{#var:base skill 2 name}}]] }} {{#ifeq: {{#var:show skill description}} | y | / {{#var:base skill 2 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> | <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 illustrator}} | y | <td>{{#if:{{{?Has illustrator name|}}} | |||
| {{#vardefine:counter|0}} | | {{#vardefine:counter|0}} | ||
{{#arraydefine: illustrator|{{{?Has illustrator name}}}|###}} | {{#arraydefine: illustrator|{{{?Has illustrator name}}}|###}} | ||
Line 53: | Line 53: | ||
| —— | | —— | ||
}}</td> | }}</td> | ||
}}{{#ifeq: {{#var:show scenario writer}} | y | <td>{{#if:{{{?Has scenario writer name|}}} | |||
| {{#vardefine:counter|0}} | | {{#vardefine:counter|0}} | ||
{{#arraydefine: scenario writer|{{{?Has scenario writer name}}}|###}} | {{#arraydefine: scenario writer|{{{?Has scenario writer name}}}|###}} | ||
Line 64: | Line 64: | ||
| —— | | —— | ||
}}</td> | }}</td> | ||
}}{{#ifeq: {{#var:show voice actor}} | y | <td>{{#if:{{{?Has voice actor name|}}} | |||
| {{#vardefine:counter|0}} | | {{#vardefine:counter|0}} | ||
{{#arraydefine: voice actor|{{{?Has voice actor name}}}|###}} | {{#arraydefine: voice actor|{{{?Has voice actor name}}}|###}} |
Revision as of 19:47, 17 April 2017
Description
This template creates a table row using query results. Used by Template:Companion list.