Difference between revisions of "ReleasesMD"

From Sega Retro

m (Text replacement - "₩" to "")
m (Text replacement - "{{#ifeq:{{#var:year}}\|9999\|\|\[\[Category:{{#var:year}} (.*) games\]\]\[\[Category:All {{#var:year}} games\]\]}}" to "{{ReleasesYearCheck|{{#var:year}}|$1}}")
(58 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|MD|JP|{{{md_date_jp|}}}|¥{{{md_rrp_jp|?}}}[[Category:JP Mega Drive games]]|{{{md_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|md,am}}{{#vardefine:rgnlist|{{Regions/Classic}},world}}{{clearvar|aftermarket|retail|downloadable}}{{#vardefine:year|9999}}
{{releasesRow|MD|JP|{{{md_date_jp_1|}}}|¥{{{md_rrp_jp_1|?}}}[[Category:JP Mega Drive games]]|{{{md_code_jp_1|?}}}|type={{{md_type_jp_1|}}}}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|MD|JP|{{{md_date_jp_2|}}}{{{md_rrp_jp_2|?}}}[[Category:JP Mega Drive games]]|{{{md_code_jp_2|?}}}|type={{{md_type_jp_2|}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|MD|JP|{{{md_date_jp_3|}}}|¥{{{md_rrp_jp_3|?}}}[[Category:JP Mega Drive games]]|{{{md_code_jp_3|?}}}|type={{{md_type_jp_3|}}}}}
+
|  
{{releasesRow|MD|JP|{{{md_date_jp_gt|}}}|¥{{{md_rrp_jp_gt|?}}}[[Category:Game Toshokan games]]|{{{md_code_jp_gt|?}}}|type=[[Sega Game Toshokan|Game Toshokan]]}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|MD|US|{{{md_date_us|}}}|{{{md_rrp_us|?}}}[[Category:US Mega Drive games]]|{{{md_code_us|?}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|MD|US|{{{md_date_us_1|}}}|{{{md_rrp_us_1|?}}}[[Category:US Mega Drive games]]|{{{md_code_us_1|?}}}|type={{{md_type_us_1|}}}}}
+
|  
{{releasesRow|MD|US|{{{md_date_us_2|}}}|{{{md_rrp_us_2|?}}}[[Category:US Mega Drive games]]|{{{md_code_us_2|?}}}|type={{{md_type_us_2|}}}}}
 
{{releasesRow|MD|US|{{{md_date_us_sc|}}}|{{{md_rrp_us_sc|?}}}[[Category:Sega Channel games]]|{{{md_code_us_sc|?}}}|type=[[Sega Channel]]}}
 
{{releasesRow|MD|US|{{{md_date_us_classic|}}}|{{{md_rrp_us_classic|?}}}[[Category:Sega Channel games]]|{{{md_code_us_classic|?}}}|type=[[Sega Classic|Classic]]}}
 
{{releasesRow|MD|CA|{{{md_date_ca|}}}|{{{md_rrp_ca|?}}}|{{{md_code_ca|?}}}}}
 
{{releasesRow|MD|MX|{{{md_date_mx|}}}|{{{md_rrp_mx|?}}}|{{{md_code_mx|?}}}}}
 
{{releasesRow|MD|EU|{{{md_date_eu|}}}|{{{md_rrp_uk|?}}}|{{{md_code_eu|?}}}[[Category:EU Mega Drive games]]}}
 
{{releasesRow|MD|EU|{{{md_date_eu_1|}}}|{{{md_rrp_uk_1|?}}}[[Category:EU Mega Drive games]]|{{{md_code_eu_1|?}}}|type={{{md_type_eu_1|}}}}}
 
{{releasesRow|MD|EU|{{{md_date_eu_2|}}}|{{{md_rrp_uk_2|?}}}[[Category:EU Mega Drive games]]|{{{md_code_eu_2|?}}}|type={{{md_type_eu_2|}}}}}
 
{{releasesRow|MD|DE|{{{md_date_de|}}}|{{{md_rrp_de|?}}}DM|{{{md_code_de|?}}}}}
 
{{releasesRow|MD|ES|{{{md_date_es|}}}|{{{md_rrp_es|?}}}Pts|{{{md_code_es|?}}}}}
 
{{releasesRow|MD|FR|{{{md_date_fr|}}}|{{{md_rrp_fr|?}}}FF|{{{md_code_fr|?}}}}}
 
{{releasesRow|MD|IT|{{{md_date_it|}}}|₤{{{md_rrp_it|?}}}|{{{md_code_it|?}}}}}
 
{{releasesRow|MD|NL|{{{md_date_nl|}}}|ƒ{{{md_rrp_nl|?}}}|{{{md_code_nl|?}}}}}
 
{{releasesRow|MD|PT|{{{md_date_pt|}}}|{{{md_rrp_pt|?}}}|{{{md_code_pt|?}}}}}
 
{{releasesRow|MD|SE|{{{md_date_se|}}}|{{{md_rrp_se|?}}}kr|{{{md_code_se|?}}}}}
 
{{releasesRow|MD|SE|{{{md_date_se_r|}}}|{{{md_rrp_se_r|?}}}kr|{{{md_code_se_r|?}}}|type=Rental}}
 
{{releasesRow|MD|UK|{{{md_date_uk|}}}|{{{md_rrp_uk|?}}}|{{{md_code_uk|?}}}}}
 
{{releasesRow|MD|AU|{{{md_date_au|}}}|{{{md_rrp_au|?}}}[[Category:AU Mega Drive games]]|{{{md_code_au|?}}}}}
 
{{releasesRow|MD|AU|{{{md_date_au_ssp|}}}|{{{md_rrp_au_ssp|?}}}[[Category:AU Mega Drive games]]|{{{md_code_au_ssp|?}}}|type=[[Sega Sport]]}}
 
{{releasesRow|MD|AU|{{{md_date_au_sgc|}}}|{{{md_rrp_au_sgc|?}}}[[Category:AU Mega Drive games]]|{{{md_code_au_sgc|?}}}|type=[[Sega Gold Collection|Gold]]}}
 
{{releasesRow|MD|AU|{{{md_date_au_spc|}}}|{{{md_rrp_au_spc|?}}}[[Category:AU Mega Drive games]]|{{{md_code_au_spc|?}}}|type=[[Sega Platinum Collection|Platinum]]}}
 
{{releasesRow|MD|BR|{{{md_date_br|}}}|R{{{md_rrp_br|?}}}[[Category:BR Mega Drive games]]|{{{md_code_br|?}}}}}
 
{{releasesRow|MD|AR|{{{md_date_ar|}}}|{{{md_rrp_ar|?}}}|{{{md_code_ar|?}}}}}
 
{{releasesRow|MD|AS|{{{md_date_as|}}}|{{{md_rrp_as|?}}}[[Category:AS Mega Drive games]]|{{{md_code_as|?}}}}}
 
{{releasesRow|MD|CN|{{{md_date_cn|}}}|¥{{{md_rrp_cn|?}}}|{{{md_code_cn|?}}}}}
 
{{releasesRow|MD|IN|{{{md_date_in|}}}|₹{{{md_rrp_in|?}}}|{{{md_code_in|?}}}}}
 
{{releasesRow|MD|KR|{{{md_date_kr|}}}|{{{md_rrp_kr|?}}}[[Category:KR Mega Drive games]]|{{{md_code_kr|?}}}}}
 
{{releasesRow|MD|RU|{{{md_date_ru|}}}|{{{md_rrp_ru|?}}}RUB|{{{md_code_ru|?}}}}}
 
{{releasesRow|MD|TH|{{{md_date_th|}}}|฿{{{md_rrp_th|?}}}|{{{md_code_th|?}}}}}
 
{{releasesRow|MD|TW|{{{md_date_tw|}}}|NT{{{md_rrp_tw|?}}}[[Category:TW Mega Drive games]]|{{{md_code_tw|?}}}}}
 
{{releasesRow|MD|World|{{{md_date_world|}}}|{{{md_rrp_world|?}}}|{{{md_code_world|?}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |  
 
  
{{#if: {{{md_date_jp|}}}{{{md_date_jp_gt|}}}{{{md_date_us|}}}{{{md_date_eu|}}}{{{md_date_br|}}}{{{md_date_ar|}}}{{{md_date_kr|}}}{{{md_date_tw|}}}{{{md_date_world|}}} | [[Category:Mega Drive games]]
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
{{#vardefine:year|{{lowest
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{md_date_jp}}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
|{{year|{{{md_date_jp_gt}}}}}
+
{{#switch:{{#var:typ1}}|gt|sc|d={{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
|{{year|{{{md_date_us}}}}}
+
{{#switch:{{#var:sys}}|am={{#vardefine:aftermarket|true}}}}
|{{year|{{{md_date_eu}}}}}
+
{{releasesRowPlus
|{{year|{{{md_date_br}}}}}
+
| console=MD
|{{year|{{{md_date_ar}}}}}
+
| region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}}
|{{year|{{{md_date_kr}}}}}
+
| date={{#var:dat}}
|{{year|{{{md_date_tw}}}}}
+
| packageprice={{{{{#var:sys}}_package_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{md_date_world}}}}}
+
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
}}}}
+
| currency=
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} Mega Drive games]] }}
+
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
{{genre2cat|Mega Drive}}
+
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
| }}
+
| type={{#switch:{{#var:typ1}}
 +
  |classic={{#switch:{{#var:rgn}}|us=[[Sega Classic|Classic]][[Category:Sega Classic games]]|[[Classic Mega Drive|Classic]][[Category:Classic Mega Drive games]]}}
 +
  |eac=[[EA Classics]]
 +
  |gt=[[Sega Game Toshokan|Game Toshokan]][[Category:Game Toshokan games]]
 +
  |k=Kixx
 +
  |m=[[Majesco]]
 +
  |mbp=Mega Booster Pak
 +
  |mhs=[[Mega Hit Series|Mega Hit]][[Category:Mega Hit Series games]]
 +
  |r=Rental
 +
  |sc=[[Sega Channel]]{{#switch:{{#var:rgn}}|jp=[[Category:Sega Channel games (JP)]]|us=[[Category:Sega Channel games (US)]]}}
 +
  |sgc=[[Sega Gold Collection|Gold]][[Category:Sega Gold Collection games]]
 +
  |spc=[[Sega Platinum Collection|Platinum]][[Category:Sega Platinum Collection games]]
 +
  |ssp=[[Sega Sport]][[Category:Sega Sport games]]
 +
  |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={{#switch:{{#var:typ1}}|gt|sc|d=yes}}
 +
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 +
}}
 +
}}
  
| }}
+
{{incvar|j}}
 
+
}}
<!-- Accessories -->
+
{{incvar|i}}
{{#ifeq: {{#var:type}} | 1 | [[Category:Mega Drive accessories]] | }}
+
}}
 
+
{{#switch:{{#var:type}}
<!-- Consoles -->
+
| 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]]}}}}
{{#ifeq: {{#var:type}} | 2 | [[Category:Mega Drive hardware]] | }}
+
| 1=[[Category:Mega Drive accessories]]
 
+
| 2=[[Category:Mega Drive hardware]]
|-
+
}}
| style="display:none" |
 
|-
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
See [[Template:Releases/Usage]] for how to use.
 
See [[Template:Releases/Usage]] for how to use.
  
 
[[Category:Releases templates]]</noinclude>
 
[[Category:Releases templates]]</noinclude>

Revision as of 11:41, 14 August 2023

See Template:Releases/Usage for how to use.