Difference between revisions of "ReleasesMD"

From Sega Retro

(44 intermediate revisions by 6 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:JP Mega Drive games]][[Category:Game Toshokan games]]|{{{md_code_jp_gt|?}}}|type=[[Sega Game Toshokan|Game Toshokan]]}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|MD|JP|{{{md_date_jp_sc|}}}|{{{md_rrp_jp_sc|?}}}[[Category:JP Mega Drive games]][[Category:Sega Channel games]]|{{{md_code_jp_sc|?}}}|type=[[Sega Channel]]}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|MD|US|{{{md_date_us|}}}|{{{md_rrp_us|?}}}[[Category:US Mega Drive games]]|{{{md_code_us|?}}}}}
+
|  
{{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|?}}}|{{{md_code_us_classic|?}}}|type=[[Sega Classic|Classic]]}}
 
{{releasesRow|MD|US|{{{md_date_us_mhs|}}}|{{{md_rrp_us_mhs|?}}}|{{{md_code_us_mhs|?}}}|type=[[Mega Hit Series|Mega Hit]]}}
 
{{releasesRow|MD|US|{{{md_date_us_m|}}}|{{{md_rrp_us_m|?}}}|{{{md_code_us_m|?}}}|type=[[Majesco]]}}
 
{{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|?}}}}} -->
 
{{releasesRow|MD|EU|{{{md_date_eu_1|}}}|{{{md_rrp_uk_1|?}}}|{{{md_code_eu_1|?}}}|type={{{md_type_eu_1|}}}}}
 
{{releasesRow|MD|EU|{{{md_date_eu_2|}}}|{{{md_rrp_uk_2|?}}}|{{{md_code_eu_2|?}}}|type={{{md_type_eu_2|}}}}}
 
{{releasesRow|MD|EU|{{{md_date_eu_classic|}}}|{{{md_rrp_uk_classic|?}}}[[Category:EU Mega Drive games]]|{{{md_code_eu_classic|?}}}|type=[[Classic Mega Drive|Classic]]}}
 
  
{{releasesRow|MD|UK|{{#if:{{{md_date_uk|}}}|{{{md_date_uk|}}}|{{{md_date_eu|}}}}}|{{{md_rrp_uk|?}}}[[Category:UK Mega Drive games]]|{{#if:{{{md_code_uk|}}}|{{{md_code_uk|}}}[[Category:UK Mega Drive games]]|{{{md_code_eu|}}}}}}}
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
{{releasesRow|MD|FR|{{#if:{{{md_date_fr|}}}|{{{md_date_fr|}}}|{{{md_date_eu|}}}}}|{{{md_rrp_fr|?}}}[[Category:FR Mega Drive games]]|{{#if:{{{md_code_fr|}}}|{{{md_code_fr|}}}[[Category:FR Mega Drive games]]|{{{md_code_eu|}}}}}}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
{{releasesRow|MD|DE|{{#if:{{{md_date_de|}}}|{{{md_date_de|}}}|{{{md_date_eu|}}}}}|{{{md_rrp_de|?}}}[[Category:DE Mega Drive games]]|{{#if:{{{md_code_de|}}}|{{{md_code_de|}}}[[Category:DE Mega Drive games]]|{{{md_code_eu|}}}}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
{{releasesRow|MD|ES|{{#if:{{{md_date_es|}}}|{{{md_date_es|}}}|{{{md_date_eu|}}}}}|{{{md_rrp_es|?}}}[[Category:ES Mega Drive games]]|{{#if:{{{md_code_es|}}}|{{{md_code_es|}}}[[Category:ES Mega Drive games]]|{{{md_code_eu|}}}}}}}
+
{{#switch:{{#var:typ1}}|gt|sc|d={{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
 +
{{#switch:{{#var:sys}}|am={{#vardefine:aftermarket|true}}}}
 +
{{releasesRowPlus
 +
| console=MD
 +
| region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}}
 +
| date={{#var:dat}}
 +
| packageprice={{{{{#var:sys}}_package_{{#var:rgn}}{{#var:typ}}|}}}
 +
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
 +
| currency=
 +
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
 +
| 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={{#switch:{{#var:rgn}}|us=[[Sega Channel]]|jp=[[Sega Channel (Asia)|Sega Channel]]}}
 +
  |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}}|}}}
 +
}}
 +
{{#switch:{{#var:typ1}}
 +
|sc={{#switch:{{#var:rgn}}
 +
  |jp=[[Category:JP Sega Channel games]]
 +
  |us=[[Category:US Sega Channel games]]
 +
  }}
 +
}}
 +
}}
  
{{releasesRow|MD|IT|{{{md_date_it|}}}|{{{md_rrp_it|?}}}[[Category:IT Mega Drive games]]|{{{md_code_it|?}}}}}
+
{{incvar|j}}
{{releasesRow|MD|NL|{{{md_date_nl|}}}|{{{md_rrp_nl|?}}}[[Category:NL Mega Drive games]]|{{{md_code_nl|?}}}}}
+
}}
{{releasesRow|MD|PT|{{{md_date_pt|}}}|{{{md_rrp_pt|?}}}[[Category:PT Mega Drive games]]|{{{md_code_pt|?}}}}}
+
{{incvar|i}}
{{releasesRow|MD|GR|{{{md_date_gr|}}}|{{{md_rrp_gr|?}}}[[Category:GR Mega Drive games]]|{{{md_code_gr|?}}}}}
+
}}
{{releasesRow|MD|SE|{{{md_date_se|}}}|{{{md_rrp_se|?}}}kr|{{{md_code_se|?}}}}}
+
{{#switch:{{#var:type}}
{{releasesRow|MD|SE|{{{md_date_se_r|}}}|{{{md_rrp_se_r|?}}}kr|{{{md_code_se_r|?}}}|type=Rental}}
+
| 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]]
{{releasesRow|MD|AU|{{{md_date_au|}}}|{{{md_rrp_au|?}}}[[Category:AU Mega Drive games]]|{{{md_code_au|?}}}}}
+
| 2=[[Category:Mega Drive hardware]]
{{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|}}}|{{{md_rrp_br|?}}}[[Category:BR Mega Drive games]]|{{{md_code_br|?}}}}}
 
{{releasesRow|MD|BR|{{{md_date_br_1|}}}|{{{md_rrp_br_1|?}}}[[Category:BR Mega Drive games]]|{{{md_code_br_1|?}}}}}
 
{{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|}}}|{{{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_uk|}}}{{{md_date_fr|}}}{{{md_date_de|}}}{{{md_date_es|}}}{{{md_date_au|}}}{{{md_date_br|}}}{{{md_date_ar|}}}{{{md_date_kr|}}}{{{md_date_tw|}}}{{{md_date_world|}}} | [[Category:Mega Drive games]]
 
{{#vardefine:year|{{lowest
 
|{{year|{{{md_date_jp}}}}}
 
|{{year|{{{md_date_jp_gt}}}}}
 
|{{year|{{{md_date_us}}}}}
 
|{{year|{{{md_date_eu}}}}}
 
|{{year|{{{md_date_uk}}}}}
 
|{{year|{{{md_date_fr}}}}}
 
|{{year|{{{md_date_de}}}}}
 
|{{year|{{{md_date_es}}}}}
 
|{{year|{{{md_date_au}}}}}
 
|{{year|{{{md_date_br}}}}}
 
|{{year|{{{md_date_ar}}}}}
 
|{{year|{{{md_date_kr}}}}}
 
|{{year|{{{md_date_tw}}}}}
 
|{{year|{{{md_date_world}}}}}
 
}}}}
 
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} Mega Drive games]] }}
 
{{genre2cat|Mega Drive}}
 
| }}
 
 
 
| }}
 
 
 
<!-- Accessories -->
 
{{#ifeq: {{#var:type}} | 1 | [[Category:Mega Drive accessories]] | }}
 
 
 
<!-- Consoles -->
 
{{#ifeq: {{#var:type}} | 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 07:13, 14 November 2024

See Template:Releases/Usage for how to use.