Difference between revisions of "Template:Game list entry"

From Co-Optitude Wiki
Jump to navigation Jump to search
Line 23: Line 23:
 
| style="text-align:right;vertical-align:top;"|{{#vardefine:vals|{{{AirDates|}}}}}{{#vardefine:i|0}}{{#while:
 
| style="text-align:right;vertical-align:top;"|{{#vardefine:vals|{{{AirDates|}}}}}{{#vardefine:i|0}}{{#while:
 
   |{{#vardefine:val|{{#explode:{{#var:vals}}|;|{{#var:i}} }}}}{{#var:val}}
 
   |{{#vardefine:val|{{#explode:{{#var:vals}}|;|{{#var:i}} }}}}{{#var:val}}
   |<nowiki/>{{#vardefine:date|{{#explode:{{{AirDates|}}}|;|{{#var:i}} }}}}{{#ifexpr:{{#var:i}} > 0|<br/>}}{{#dateformat:{{#var:date}}|mdy}}{{#vardefine:i|{{#expr:{{#var:i}}+1}} }}}}</includeonly>
+
   |<nowiki/>{{#vardefine:date|{{#explode:{{{AirDates|}}}|;|{{#var:i}} }}}}{{#ifexpr:{{#var:i}} > 0|<br/>}}{{#dateformat:{{#var:date}}|mdy}}{{#vardefine:i|{{#expr:{{#var:i}}+1}} }}}}
 +
| style="vertical-align:top;"|{{#vardefine:vals|{{{Links|}}}}}{{#vardefine:i|0}}{{#while:
 +
  |{{#vardefine:val|{{#explode:{{#var:vals}}|;|{{#var:i}} }}}}{{#var:val}}
 +
  |<nowiki/>{{#vardefine:link|{{#explode:{{{Links|}}}|;|{{#var:i}} }}}}{{#ifexpr:{{#var:i}} > 0|<br/>}}[{{#var:link}} YouTube]{{#vardefine:i|{{#expr:{{#var:i}}+1}} }}}}</includeonly>

Revision as of 18:04, 15 January 2020

Usage example:

{{Game list entry
  |Shows=Co-Optitude; Co-Optitude
  |EpisodeNums=012; 013
  |Game=Secret of Mana
  |System=SNES
  |Publisher=Square
  |Year=1993
  |AirDates=2013-08-26; 2013-09-02
  |Links=https://youtube.com/watch?v=xxxx; https://youtube.com/watch?v=yyyy}}