Difference between revisions of "MissedReleasesDisplay"

From Sega Retro

m (+SYSC2)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div style="display:none">{{{1|}}}</div>{{#ifeq:{{{visible|}}}|yes|{{
+
<includeonly>{{#vardefine:formats|{{#if:{{{1|}}}|{{{1}}}{{#vardefine:mr_multiFormat|}}|ARC,SYSC2,SG,SMS,MD,GG,MCD,32X,MCD32X,MLD,PICO,SAT,DC,PS2,XBOX,GC,PC,SYS18,SYS32,NAOMI,RW,PS4,PS5,XBONE,SWITCH}}}}{{#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}}{{clearvar|MissedReleases_{{#var:output}}}}
}}{{clearvar|MissedReleases_MD|MissedReleases_MD|mr_multiFormat|mr_lastFormat}}</includeonly><noinclude>
+
}}{{clearvar|mr_multiFormat|mr_lastFormat}}</includeonly><noinclude>
{{TODO}}
+
Displays missed releases after they've been declared with [[Template:MissedRelease]].
A means of storing "missed" release dates, i.e. precise date (or rough period) that a product was meant to be released on/in before it was delayed.
 
  
The idea is to store this data in a cargo table, but this template will only be visible for unreleased games.
 
  
I'm making this up as I go along and haven't worked out the specifics yet -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 16:30, 12 April 2022 (EDT)
+
==Examples==
 +
<pre>
 +
{{MissedRelease|MD|1991-02-03{{ref|http://www.google.com}}}}
 +
{{MissedRelease|MD|1992-03-04{{magref|egm|1|1}}}}
 +
{{MissedReleasesDisplay}}
 +
</pre>
 +
 
 +
{{MissedRelease|MD|1991-02-03{{ref|http://www.google.com}}}}
 +
{{MissedRelease|MD|1992-03-04{{magref|egm|1|1}}}}
 +
{{MissedReleasesDisplay}}
 +
 
  
a
+
<pre>
{{MissedReleases|visible=yes|
 
 
{{MissedRelease|MD|1991-02-03{{ref|http://www.google.com}}}}
 
{{MissedRelease|MD|1991-02-03{{ref|http://www.google.com}}}}
 
{{MissedRelease|MD|1992-03-04{{magref|egm|1|1}}}}
 
{{MissedRelease|MD|1992-03-04{{magref|egm|1|1}}}}
}}
+
{{MissedRelease|SMS|1993-04-05{{magref|egm|1|1}}}}
b
+
{{MissedRelease|SMS|1994-05-06{{magref|egm|1|1}}}}
{{MissedReleases|visible=yes|
+
{{MissedReleasesDisplay}}</pre>
 +
 
 
{{MissedRelease|MD|1991-02-03{{ref|http://www.google.com}}}}
 
{{MissedRelease|MD|1991-02-03{{ref|http://www.google.com}}}}
 
{{MissedRelease|MD|1992-03-04{{magref|egm|1|1}}}}
 
{{MissedRelease|MD|1992-03-04{{magref|egm|1|1}}}}
 
{{MissedRelease|SMS|1993-04-05{{magref|egm|1|1}}}}
 
{{MissedRelease|SMS|1993-04-05{{magref|egm|1|1}}}}
 
{{MissedRelease|SMS|1994-05-06{{magref|egm|1|1}}}}
 
{{MissedRelease|SMS|1994-05-06{{magref|egm|1|1}}}}
}}
+
{{MissedReleasesDisplay}}
c
 
  
 
#store the data
 
#store the data
Line 31: Line 38:
  
 
would have recalled the cargo data but you get UNIQ/QINU problems with references
 
would have recalled the cargo data but you get UNIQ/QINU problems with references
 
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 23:10, 14 August 2023

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