Difference between revisions of "Template:Transient list table result format"
Jump to navigation
Jump to search
(maybe) |
(maybe) |
||
Line 8: | Line 8: | ||
}}{{#ifeq: {{#var:show weapon type}} | y | <td>{{Weapon type|{{{?Has weapon type}}}}}</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 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|0}}}+{{{?Has hp growth value|0}}}*{{#var:show stats at lv}}-{{{?Has hp growth value|0}}} round 0}}</td><td>{{#expr:{{{?Has atk value|0}}}+{{{?Has atk growth value|0}}}*{{#var:show stats at lv}}-{{{?Has atk growth value|0}}} round 0}}</td> | }}{{#ifeq: {{#var:show stats at lv}} | 0 | | <td>{{#ifeq: {{{?Has hp value|}}}|||{{#expr:{{{?Has hp value|0}}}+{{{?Has hp growth value|0}}}*{{#var:show stats at lv}}-{{{?Has hp growth value|0}}} round 0}}}}</td><td>{{#expr:{{{?Has atk value|0}}}+{{{?Has atk growth value|0}}}*{{#var:show stats at lv}}-{{{?Has atk growth value|0}}} round 0}}</td> | ||
}}{{#if: | }}{{#if: | ||
<!-- vardefine skills and match them --> | <!-- vardefine skills and match them --> |
Revision as of 20:07, 22 March 2018
Description
This template creates a table row using query results. Used by Template:Companion list.