Difference between revisions of "Template:Game list entry"

From Co-Optitude Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
<pre>
 
<pre>
 
{{Game list entry
 
{{Game list entry
   |Show=Co-Optitude
+
   |Shows=Co-Optitude; Co-Optitude
   |EpisodeNum=3
+
   |EpisodeNums=012; 013
   |Game=Sonic the Hedgehog 2
+
   |Game=Secret of Mana
   |System=Sega Genesis
+
   |System=SNES
   |Publisher=Sega
+
   |Publisher=Square
   |Year=1992
+
   |Year=1993
   |AirDate=2013-06-10
+
   |AirDates=2013-08-26; 2013-09-02
   |Link=https://youtube.com/watch?v=xxxx}}
+
   |Links=https://youtube.com/watch?v=xxxx; https://youtube.com/watch?v=yyyy}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>
<includeonly>{{#vardefine:showCode|{{#ifeq:{{{Show}}}|The Flog|A|B}}}}{{#vardefine:epNum|{{{EpisodeNum}}}}}{{#vardefine:paddedEpNum|{{padleft:{{#var:epNum}}|3}}}}|-
+
<includeonly>|-
| style="vertical-align:top;" data-sort-value="{{#var:showCode}}{{#var:paddedEpNum}}"|[[Episode {{{EpisodeNum}}}|{{{Show}}} {{{EpisodeNum}}}]]</td>
+
| style="vertical-align:top;" data-sort-value="{{#ifeq:{{#sub:{{{Game}}}|0|4}}|The |{{#sub:{{{Game}}}|4}}|{{{Game}}}}}"|'''{{{Game}}}'''
| style="vertical-align:top;" data-sort-value="{{#ifeq:{{#sub:{{{Game}}}|0|4}}|The |{{#sub:{{{Game}}}|4}}|{{{Game}}}}}"|{{{Game}}}
+
| style="vertical-align:top;"|{{#if:{{{System|}}}|[[{{{System|}}}]]}}
| style="vertical-align:top;"|{{{System|}}}
 
 
| style="vertical-align:top;"|{{{Publisher|}}}
 
| style="vertical-align:top;"|{{{Publisher|}}}
 
| style="text-align:right;vertical-align:top;"|{{{Year|}}}
 
| style="text-align:right;vertical-align:top;"|{{{Year|}}}
| style="text-align:right;vertical-align:top;" data-sort-value="{{#dateformat:{{{AirDate}}}|yyyy-mm-dd}}"|{{#dateformat:{{{AirDate|}}}|mdy}}</includeonly>
+
| style="vertical-align:top; white-space: nowrap;"|{{#vardefine:vals|{{{EpisodeNums|}}}}}{{#vardefine:i|0}}{{#while:
 +
  |{{#vardefine:val|{{#explode:{{#var:vals}}|;|{{#var:i}} }}}}{{#var:val}}
 +
  |<nowiki/>{{#vardefine:show|{{#explode:{{{Shows|}}}|;|{{#var:i}} }}}}{{#vardefine:paddedEpNum|{{#explode:{{{EpisodeNums}}}|;|{{#var:i}} }}}}{{#vardefine:epNum|{{#expr:{{#var:paddedEpNum}}*1}}}}{{#vardefine:linkPrefix|{{#ifeq:{{#var:show}}|The Flog|The Flog episode|Episode}}}}{{#ifexpr:{{#var:i}} > 0|<br/>}}[[{{#var:linkPrefix}} {{#var:epNum}}]]{{#vardefine:i|{{#expr:{{#var:i}}+1}} }}}}
 +
| style="text-align:right;vertical-align:top; white-space: nowrap;" data-sort-value="{{#explode:{{{AirDates|}}}|;|0}}"|{{#vardefine:vals|{{{AirDates|}}}}}{{#vardefine:i|0}}{{#while:
 +
  |{{#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}} }}}}
 +
| style="vertical-align:top; white-space: nowrap;"|{{#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>

Latest revision as of 05:40, 27 May 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}}