User:Coffeesaga/Sandbox: Difference between revisions
From Archon Arcana - The KeyForge Wiki
631 bytes removed
, 14 June 2020
|
|
Line 133: |
Line 133: |
| There are {{#var: amount of cards}} cards for this artist.</div><div class="artistName" style="font-family:Lato">[[{{{Artist}}}]]</div></div> | | There are {{#var: amount of cards}} cards for this artist.</div><div class="artistName" style="font-family:Lato">[[{{{Artist}}}]]</div></div> |
| </div> | | </div> |
|
| |
|
| |
| ===Vladimir Zyrianov===
| |
| {{#vardefine: x|0}}{{#while:
| |
| | {{#ifexpr: {{#var: x }} < 5 | true }}
| |
| | <nowiki />
| |
| {{#vardefineecho: image|{{#cargo_query:
| |
| tables=CardData
| |
| |fields=CONCAT('Image')
| |
| |where=CardData.Artist='Vladimir Zyrianov'
| |
| |order by=CardData.Image DESC
| |
| |offset={{#var:x}}
| |
| |limit=1
| |
| |default=
| |
| |intro=
| |
| |outro=
| |
| |more results text=
| |
| }} }}
| |
| {{#if: {{#var: image}}
| |
| |{{#ifexpr: {{#var:x}} = 4
| |
| |{{#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.
| |
|
| |
|
| |
|
|
| |
|