Difference between revisions of "Template:Transient list table result format"
Jump to navigation
Jump to search
(try converting #arraymap to #array stuff) |
|||
Line 11: | Line 11: | ||
}}{{#if: <!-- vardefine skills and match them --> | }}{{#if: <!-- vardefine skills and match them --> | ||
{{#vardefine:counter|0}} | {{#vardefine:counter|0}} | ||
{{#arraymap: {{{?Has base skill stage|}}} | {{#arraydefine: stage|{{{?Has base skill stage}}}|###}} | ||
{{#arrayprint: stage | |||
| | |||
|@@@ | |||
|{{#vardefine:base skill @@@ subobj|{{#explode:{{{?Has base skill subobj}}}|###| {{#var:counter}} }} }} | |||
{{#vardefine:base skill @@@ name|{{#explode:{{{?Has base skill en name}}}|###| {{#var:counter}} }} }} | |||
{{#vardefine:base skill @@@ desc|{{#explode:{{{?Has base skill desc}}}|###| {{#var:counter}} }} }} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
<!--{{#arraymap: {{{?Has base skill stage|}}} | |||
|### | |### | ||
|@@@ | |@@@ | ||
Line 18: | Line 27: | ||
{{#vardefine:base skill @@@ desc|{{#explode:{{{?Has base skill desc}}}|###| {{#var:counter}} }} }} | {{#vardefine:base skill @@@ desc|{{#explode:{{{?Has base skill desc}}}|###| {{#var:counter}} }} }} | ||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | ||
|}} | |}}--> | ||
}}<!-- end skill vardefine -->{{#switch: {{#var:show skills}} | }}<!-- end skill vardefine -->{{#switch: {{#var:show skills}} | ||
| n = | | n = |
Revision as of 03:22, 12 April 2017
Description
This template creates a table row using query results. Used by Template:Companion list.