Difference between revisions of "MissedReleasesDisplay"

From Sega Retro

Line 1: Line 1:
<includeonly>{{
+
<includeonly>{{#vardefine:formats|SG,SMS,MD,GG,MCD,32X,SAT,DC,PS2,XBOX,GC,PC}}{{#vardefine:i|0}}{{#while:
#if:{{#var:MissedReleases_SMS}}|{{
+
| {{#if:{{#explode:{{#var:formats}}|,|{{#var:i}}}}|true}}
#if:{{#var:mr_multiFormat}}|<p><div style="display:inline;">{{SMS}} {{#var:MissedReleases_SMS}}</div></p>|{{#var:MissedReleases_SMS}}}}}}{{
+
| {{#vardefine:output|{{#explode:{{#var:formats}}|,|{{#var:i}}}}}}{{
#if:{{#var:MissedReleases_MD}}|{{
+
#if:{{#var:MissedReleases_{{#var:output}}}}|{{
#if:{{#var:mr_multiFormat}}|<p><div style="display:inline;">{{MD}} {{#var:MissedReleases_MD}}</div></p>|{{#var:MissedReleases_MD}}}}}}{{
+
#if:{{#var:mr_multiFormat}}|<p><div style="display:inline;">{{ {{#var:output}} }} {{#var:MissedReleases_{{#var:output}}}}</div></p>|{{#var:MissedReleases_{{#var:output}}}}}}}}{{incvar|i}}
#if:{{#var:MissedReleases_SAT}}|{{
+
}}{{clearvar|MissedReleases_MD|MissedReleases_MD|mr_multiFormat|mr_lastFormat}}</includeonly><noinclude>
#if:{{#var:mr_multiFormat}}|<p><div style="display:inline;">{{SAT}} {{#var:MissedReleases_SAT}}</div></p>|{{#var:MissedReleases_SAT}}}}}}
 
{{clearvar|MissedReleases_MD|MissedReleases_MD|mr_multiFormat|mr_lastFormat}}</includeonly><noinclude>
 
 
{{TODO}}
 
{{TODO}}
 
Displays missed releases after they've been declared with [[Template:MissedRelease]].
 
Displays missed releases after they've been declared with [[Template:MissedRelease]].
 
  
  

Revision as of 09:45, 14 April 2022


Clock.svg
This task is unfinished
This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of Sega Retro:Todo until this message is removed.

Displays missed releases after they've been declared with Template:MissedRelease.


Examples

{{MissedRelease|MD|1991-02-03{{ref|http://www.google.com}}}}
{{MissedRelease|MD|1992-03-04{{magref|egm|1|1}}}}
{{MissedReleasesDisplay}}


1991-02-03[1], 1992-03-04[2]


{{MissedRelease|MD|1991-02-03{{ref|http://www.google.com}}}}
{{MissedRelease|MD|1992-03-04{{magref|egm|1|1}}}}
{{MissedRelease|SMS|1993-04-05{{magref|egm|1|1}}}}
{{MissedRelease|SMS|1994-05-06{{magref|egm|1|1}}}}
{{MissedReleasesDisplay}}



Sega Master System
1993-04-05[2], 1994-05-06[2]

Sega Mega Drive
1991-02-03[1], 1992-03-04[2]


  1. store the data
  2. add to a string in each MissedRelease
  3. show that string at the end of this template

would have recalled the cargo data but you get UNIQ/QINU problems with references