Difference between revisions of "Template:Game art list entry"

From Co-Optitude Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
</pre>
 
</pre>
 
</noinclude><includeonly><div style="display: inline-block; vertical-align: top; width: 170px; margin: 0.5em 0.5em 2em 0.5em;"><table border="0"><tr><td style="width: 170px; height: 170px; text-align: center; vertical-align: middle; background-color: #f6f6f6;">[[File:{{{Image}}}|center|170x170px|link=|{{{Title}}}]]</td></tr></table>
 
</noinclude><includeonly><div style="display: inline-block; vertical-align: top; width: 170px; margin: 0.5em 0.5em 2em 0.5em;"><table border="0"><tr><td style="width: 170px; height: 170px; text-align: center; vertical-align: middle; background-color: #f6f6f6;">[[File:{{{Image}}}|center|170x170px|link=|{{{Title}}}]]</td></tr></table>
<table role="presentation" align="center" width="170" border="0">{{#vardefine:i|0}}{{#while:|{{#vardefine:epNum|{{#explode:{{{Episodes}}}|; |{{#var:i}}}}}}{{#var:epNum}}|<nowiki/>{{#vardefine:youTubeLink|{{#explode:{{{YouTube}}}|; |{{#var:i}}}}}}<tr><td style="text-align: left; vertical-align: top;">{{#ifeq:{{#sub:{{#var:epNum}}|0|1}}|F|{{#vardefine:flogNum|{{#expr:{{#sub:{{#var:epNum}}|1}}*1}}}}[[The Flog episode {{#var:flogNum}}|The Flog #{{#var:flogNum}}]]|{{#vardefine:coopNum|{{#expr:{{#var:epNum}}*1}}}}[[Episode {{#var:coopNum}}|Co-Optitude #{{#var:coopNum}}]]}}</td><td style="text-align: right; vertical-align: top;">[[File:YouTube logo.png|16px|sub|link={{#var:youTubeLink}}|YouTube link]]</td></tr>{{#vardefine:i|{{#expr:{{#var:i}} + 1}}}}}}</table></div></div></includeonly>
+
<table role="presentation" align="center" width="170" border="0">{{#vardefine:i|0}}{{#while:|{{#vardefine:epNum|{{#explode:{{{Episodes}}}|; |{{#var:i}}}}}}{{#var:epNum}}|<nowiki/>{{#vardefine:youTubeLink|{{#explode:{{{YouTube}}}|; |{{#var:i}}}}}}<tr><td style="text-align: left; vertical-align: top;">{{#ifeq:{{#sub:{{#var:epNum}}|0|1}}|F|{{#vardefine:flogNum|{{#expr:{{#sub:{{#var:epNum}}|1}}*1}}}}[[The Flog episode {{#var:flogNum}}|The Flog #{{#var:flogNum}}]]|{{#vardefine:coopNum|{{#expr:{{#var:epNum}}*1}}}}[[Episode {{#var:coopNum}}|Co-Optitude #{{#var:coopNum}}]]}}</td><td style="text-align: right; vertical-align: top;">[[File:YouTube logo.png|16px|baseline|link={{#var:youTubeLink}}|YouTube link]]</td></tr>{{#vardefine:i|{{#expr:{{#var:i}} + 1}}}}}}</table></div></div></includeonly>

Revision as of 18:40, 20 April 2020

{{GameArtListEntry
    |Title=Battletoads
    |Image=028 - Battletoads.jpg
    |Episodes=F39; 028
    |YouTube=https://www.youtube.com/watch?v=KQh_6p9_ndc; https://www.youtube.com/watch?v=X-IJHU3xiGk}}