Difference between revisions of "Template:Transient list table result format"
Jump to navigation
Jump to search
(mayb one more time) |
|||
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>{{#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>{{#ifeq: {{{?Has atk value|}}}|||{{#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|}}}|||{{#ifeq: {{{?Has hp growth 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>{{#ifeq: {{{?Has atk growth value|}}}|||{{#ifeq: {{{?Has atk value|}}}|||{{#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:09, 22 March 2018
Description
This template creates a table row using query results. Used by Template:Companion list.