Difference between revisions of "ReleasesMD"

From Sega Retro

(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:syslist|md,am}}{{#vardefine:rgnlist|{{Regions/Classic}},world}}{{#vardefine:year|9999}}
+
<includeonly>{{#vardefine:syslist|md,am}}{{#vardefine:rgnlist|{{Regions/Classic}},world}}{{clearvar|aftermarket|retail|downloadable}}{{#vardefine:year|9999}}
 
{{#vardefine:i|0}}{{#while:
 
{{#vardefine:i|0}}{{#while:
 
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
 
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
Line 9: Line 9:
 
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
 
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
 
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
 
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
 +
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
 +
{{#switch:{{#var:typ1}}|gt|sc|d={{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
 
{{#switch:{{#var:sys}}|am={{#vardefine:aftermarket|true}}}}
 
{{#switch:{{#var:sys}}|am={{#vardefine:aftermarket|true}}}}
 
{{releasesRowPlus
 
{{releasesRowPlus
Line 14: Line 16:
 
| region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}}
 
| region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}}
 
| date={{#var:dat}}
 
| date={{#var:dat}}
 +
| packageprice={{{{{#var:sys}}_package_{{#var:rgn}}{{#var:typ}}|}}}
 
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
 
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
 
| currency=
 
| currency=
 
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
 
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
 
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
 
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
| type={{#vardefine:typ2|{{#sub:{{#var:typ}}|1}}}}{{#switch:{{#var:typ2}}
+
| type={{#switch:{{#var:typ1}}
   |classic={{#switch:{{#var:rgn}}|us=[[Sega Classic|Classic]][[Category:Sega Classic games]]|eu|uk=[[Classic Mega Drive|Classic]][[Category:Classic Mega Drive games]]}}
+
   |classic={{#switch:{{#var:rgn}}|us=[[Sega Classic|Classic]][[Category:Sega Classic games]]|[[Classic Mega Drive|Classic]][[Category:Classic Mega Drive games]]}}
   |gt=[[Sega Game Toshokan|Game Toshokan]]
+
  |eac=[[EA Classics]]
 +
   |gt=[[Sega Game Toshokan|Game Toshokan]][[Category:Game Toshokan games]]
 +
  |k=Kixx
 
   |m=[[Majesco]]
 
   |m=[[Majesco]]
 +
  |mbp=Mega Booster Pak
 
   |mhs=[[Mega Hit Series|Mega Hit]][[Category:Mega Hit Series games]]
 
   |mhs=[[Mega Hit Series|Mega Hit]][[Category:Mega Hit Series games]]
 
   |r=Rental
 
   |r=Rental
   |sc=[[Sega Channel]]{{#switch:{{#var:rgn}}|jp=[[Category:Sega Channel games (JP)]]|us=[[Category:Sega Channel games (US)]]}}
+
   |sc={{#switch:{{#var:rgn}}|us=[[Sega Channel]]|jp=[[Sega Channel (Asia)|Sega Channel]]}}
 
   |sgc=[[Sega Gold Collection|Gold]][[Category:Sega Gold Collection games]]
 
   |sgc=[[Sega Gold Collection|Gold]][[Category:Sega Gold Collection games]]
 
   |spc=[[Sega Platinum Collection|Platinum]][[Category:Sega Platinum Collection games]]
 
   |spc=[[Sega Platinum Collection|Platinum]][[Category:Sega Platinum Collection games]]
 
   |ssp=[[Sega Sport]][[Category:Sega Sport games]]
 
   |ssp=[[Sega Sport]][[Category:Sega Sport games]]
   |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ2}}}}
+
  |vgc=Video Game Classics
 +
  |d={{#var:typ2}}
 +
   |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ1}}}}
 
   }}
 
   }}
| download=
+
| download={{#switch:{{#var:typ1}}|gt|sc|d=yes}}
 
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 +
}}
 +
{{#switch:{{#var:typ1}}
 +
|sc={{#switch:{{#var:rgn}}
 +
  |jp=[[Category:JP Sega Channel games]]
 +
  |us=[[Category:US Sega Channel games]]
 +
  }}
 
}}
 
}}
 
}}
 
}}
Line 40: Line 54:
 
}}
 
}}
 
{{#switch:{{#var:type}}
 
{{#switch:{{#var:type}}
| 0=[[Category:Mega Drive games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} Mega Drive games]]}}{{genre2cat|Mega Drive}}{{#if:{{#var:aftermarket}}|[[Category:Mega Drive aftermarket games]]}}
+
| 0=[[Category:Mega Drive games]]{{ReleasesYearCheck|{{#var:year}}|Mega Drive}}{{genre2cat|Mega Drive}}{{#if:{{#var:aftermarket}}|[[Category:Mega Drive aftermarket games]][[Category:All {{#var:year}} games]]}}{{#if:{{#var:downloadable}}|{{#if:{{#var:retail}}||[[Category:Download-only Mega Drive games]]}}}}
 
| 1=[[Category:Mega Drive accessories]]
 
| 1=[[Category:Mega Drive accessories]]
 
| 2=[[Category:Mega Drive hardware]]
 
| 2=[[Category:Mega Drive hardware]]

Revision as of 07:13, 14 November 2024

See Template:Releases/Usage for how to use.