Difference between revisions of "Template:Game art list entry"
Jump to navigation
Jump to search
Rocketsoup (talk | contribs) |
Rocketsoup (talk | contribs) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
+ | Creates a box with game art up top and a list of links to the episodes that feature that game below. YouTube links will be shown off to the right with small YouTube icons. Episode numbers are 3 characters, with ''The Flog'' episodes starting with an "F". Multiple such boxes will flow and wrap to the page width. | ||
+ | |||
+ | Usage: | ||
<pre> | <pre> | ||
− | {{ | + | {{Game art list entry |
|Title=Battletoads | |Title=Battletoads | ||
|Image=028 - Battletoads.jpg | |Image=028 - Battletoads.jpg | ||
Line 7: | Line 10: | ||
|YouTube=https://www.youtube.com/watch?v=KQh_6p9_ndc; https://www.youtube.com/watch?v=X-IJHU3xiGk}} | |YouTube=https://www.youtube.com/watch?v=KQh_6p9_ndc; https://www.youtube.com/watch?v=X-IJHU3xiGk}} | ||
</pre> | </pre> | ||
− | </noinclude><includeonly> | + | </noinclude><includeonly>{{Wrapping caption image block |
− | <table role="presentation" align="center" width=" | + | |ImageName={{{Image}}} |
+ | |ImageAlt={{{Title}}} | ||
+ | |CaptionContent=<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>}}</includeonly> |
Latest revision as of 06:36, 25 April 2020
Creates a box with game art up top and a list of links to the episodes that feature that game below. YouTube links will be shown off to the right with small YouTube icons. Episode numbers are 3 characters, with The Flog episodes starting with an "F". Multiple such boxes will flow and wrap to the page width.
Usage:
{{Game art list entry |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}}