Difference between revisions of "MissedReleasesDisplay"

From Sega Retro

m (+SYSC2)
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{{1|}}}{{#ifeq:{{{visible|}}}|yes|PUT GUFF HERE}}</includeonly><noinclude>
+
<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:
{{TODO}}
+
| {{#if:{{#explode:{{#var:formats}}|,|{{#var:i}}}}|true}}
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.
+
| {{#vardefine:output|{{#explode:{{#var:formats}}|,|{{#var:i}}}}}}{{
 +
#if:{{#var:MissedReleases_{{#var:output}}}}|{{
 +
#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|mr_multiFormat|mr_lastFormat}}</includeonly><noinclude>
 +
Displays missed releases after they've been declared with [[Template:MissedRelease]].
  
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}}
 +
 
  
{{MissedReleases|visible=yes|
+
<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|1994-05-06{{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}}}}
 +
{{MissedRelease|SMS|1993-04-05{{magref|egm|1|1}}}}
 +
{{MissedRelease|SMS|1994-05-06{{magref|egm|1|1}}}}
 +
{{MissedReleasesDisplay}}
  
 
#store the data
 
#store the data
Line 17: 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