User:Coffeesaga/Sandbox: Difference between revisions

From Archon Arcana - The KeyForge Wiki
Line 155: Line 155:
     |{{#vardefine: amount of cards|5 }}
     |{{#vardefine: amount of cards|5 }}
     |}}
     |}}
  |{{#vardefine: amount of cards|{{#var:x}} }} {{#vardefine:x|6}}
}} {{#vardefine: x | {{#expr: {{#var: x }} + 1 }} }}
}}
There are {{#var: amount of cards}} cards for this artist.
===Vladimir Zyrianov===
{{#vardefine: x|0}}{{#while:
| {{#ifexpr: {{#var: x }} < 5 | true }}
| <nowiki />
{{#vardefineecho: image|{{#cargo_query:
tables=CardData
|fields=CONCAT('{{#ifexpr: {{#var:x}} = 4
    |{{#vardefine: amount of cards|5 }}
    |}}')
|where=CardData.Artist='Vladimir Zyrianov'
|order by=CardData.Image DESC
|offset={{#var:x}}
|limit=1
|default=
|intro=
|outro=
|more results text=
}} }}
{{#if: {{#var: image}}
  |
   |{{#vardefine: amount of cards|{{#var:x}} }} {{#vardefine:x|6}}  
   |{{#vardefine: amount of cards|{{#var:x}} }} {{#vardefine:x|6}}  
}} {{#vardefine: x | {{#expr: {{#var: x }} + 1 }} }}  
}} {{#vardefine: x | {{#expr: {{#var: x }} + 1 }} }}