Difference between revisions of "ReleasesMD"

From Sega Retro

m
Line 1: Line 1:
<includeonly>{{releasesRow|MD|JP|{{{md_date_jp|}}}|{{{md_rrp_jp|?}}}|{{{md_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|md,am}}{{#vardefine:rgnlist|{{Regions/Classic}},world}}{{#vardefine:year|9999}}
{{releasesRow|MD|JP|{{{md_date_jp_1|}}}|{{{md_rrp_jp_1|?}}}|{{{md_code_jp_1|?}}}|type={{{md_type_jp_1|}}}}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|MD|JP|{{{md_date_jp_2|}}}|{{{md_rrp_jp_2|?}}}|{{{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|?}}}|{{{md_code_jp_3|?}}}|type={{{md_type_jp_3|}}}}}
+
|  
{{releasesRow|MD|JP|{{{md_date_jp_gt|}}}|{{{md_rrp_jp_gt|?}}}|{{{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|?}}}|{{{md_code_jp_sc|?}}}|type=[[Sega Channel]][[Category:Sega Channel games (JP)]]}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|MD|US|{{{md_date_us|}}}|{{{md_rrp_us|?}}}|{{{md_code_us|?}}}}}
+
|  
{{releasesRow|MD|US|{{{md_date_us_1|}}}|{{{md_rrp_us_1|?}}}|{{{md_code_us_1|?}}}|type={{{md_type_us_1|}}}}}
 
{{releasesRow|MD|US|{{{md_date_us_2|}}}|{{{md_rrp_us_2|?}}}|{{{md_code_us_2|?}}}|type={{{md_type_us_2|}}}}}
 
{{releasesRow|MD|US|{{{md_date_us_3|}}}|{{{md_rrp_us_3|?}}}|{{{md_code_us_3|?}}}|type={{{md_type_us_3|}}}}}
 
{{releasesRow|MD|US|{{{md_date_us_4|}}}|{{{md_rrp_us_4|?}}}|{{{md_code_us_4|?}}}|type={{{md_type_us_4|}}}}}
 
{{releasesRow|MD|US|{{{md_date_us_sc|}}}|{{{md_rrp_us_sc|?}}}|{{{md_code_us_sc|?}}}|type=[[Sega Channel]][[Category:Sega Channel games (US)]]}}
 
{{releasesRow|MD|US|{{{md_date_us_classic|}}}|{{{md_rrp_us_classic|?}}}|{{{md_code_us_classic|?}}}|type=[[Sega Classic|Classic]][[Category:Sega Classic games]]}}
 
{{releasesRow|MD|US|{{{md_date_us_mhs|}}}|{{{md_rrp_us_mhs|?}}}|{{{md_code_us_mhs|?}}}|type=[[Mega Hit Series|Mega Hit]][[Category:Mega Hit Series games]]}}
 
{{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|?}}}|{{{md_code_eu_classic|?}}}|type=[[Classic Mega Drive|Classic]][[Category:Classic Mega Drive games]]}}
 
  
{{releasesRow|MD|UK|{{#if:{{{md_date_uk|}}}|{{{md_date_uk|}}}|{{{md_date_eu|}}}}}|{{{md_rrp_uk|?}}}|{{#if:{{{md_code_uk|}}}|{{{md_code_uk|}}}|{{{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|?}}}|{{#if:{{{md_code_fr|}}}|{{{md_code_fr|}}}|{{{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|?}}}|{{#if:{{{md_code_de|}}}|{{{md_code_de|}}}|{{{md_code_eu|}}}}}}}
+
{{#switch:{{#var:sys}}|am={{#vardefine:aftermarket|true}}}}
{{releasesRow|MD|ES|{{#if:{{{md_date_es|}}}|{{{md_date_es|}}}|{{{md_date_eu|}}}}}|{{{md_rrp_es|?}}}|{{#if:{{{md_code_es|}}}|{{{md_code_es|}}}|{{{md_code_eu|}}}}}}}
+
{{releasesRowPlus
 +
| console=MD
 +
| region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}}
 +
| date={{#var:dat}}
 +
| 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={{#vardefine:typ2|{{#sub:{{#var:typ}}|1}}}}{{#switch:{{#var:typ2}}
 +
  |classic={{#switch:{{#var:rgn}}|us=[[Sega Classic|Classic]][[Category:Sega Classic games]]|eu|uk=[[Classic Mega Drive|Classic]][[Category:Classic Mega Drive games]]}}
 +
  |gt=[[Sega Game Toshokan|Game Toshokan]]
 +
  |m=[[Majesco]]
 +
  |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]]
 +
  |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ2}}}}
 +
  }}
 +
| download=
 +
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 +
}}
 +
}}
  
{{releasesRow|MD|IT|{{{md_date_it|}}}|{{{md_rrp_it|?}}}|{{{md_code_it|?}}}}}
+
{{incvar|j}}
{{releasesRow|MD|NL|{{{md_date_nl|}}}|{{{md_rrp_nl|?}}}|{{{md_code_nl|?}}}}}
+
}}
{{releasesRow|MD|PT|{{{md_date_pt|}}}|{{{md_rrp_pt|?}}}|{{{md_code_pt|?}}}}}
+
{{incvar|i}}
{{releasesRow|MD|GR|{{{md_date_gr|}}}|{{{md_rrp_gr|?}}}|{{{md_code_gr|?}}}}}
+
}}
{{releasesRow|MD|SE|{{{md_date_se|}}}|{{{md_rrp_se|?}}}|{{{md_code_se|?}}}}}
+
{{#switch:{{#var:type}}
{{releasesRow|MD|SE|{{{md_date_se_r|}}}|{{{md_rrp_se_r|?}}}|{{{md_code_se_r|?}}}|type=Rental}}
+
| 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]]}}
{{releasesRow|MD|PL|{{{md_date_pl|}}}|{{{md_rrp_pl|?}}}|{{{md_code_pl|?}}}}}
+
| 1=[[Category:Mega Drive accessories]]
{{releasesRow|MD|HU|{{{md_date_hu|}}}|{{{md_rrp_hu|?}}}|{{{md_code_hu|?}}}}}
+
| 2=[[Category:Mega Drive hardware]]
{{releasesRow|MD|CZ|{{{md_date_cz|}}}|{{{md_rrp_cz|?}}}|{{{md_code_cz|?}}}}}
+
}}
{{releasesRow|MD|SI|{{{md_date_si|}}}|{{{md_rrp_si|?}}}|{{{md_code_si|?}}}}}
 
{{releasesRow|MD|RS|{{{md_date_rs|}}}|{{{md_rrp_rs|?}}}|{{{md_code_rs|?}}}}}
 
 
 
{{releasesRow|MD|AU|{{{md_date_au|}}}|{{{md_rrp_au|?}}}|{{{md_code_au|?}}}}}
 
{{releasesRow|MD|AU|{{{md_date_au_ssp|}}}|{{{md_rrp_au_ssp|?}}}|{{{md_code_au_ssp|?}}}|type=[[Sega Sport]][[Category:Sega Sport games]]}}
 
{{releasesRow|MD|AU|{{{md_date_au_sgc|}}}|{{{md_rrp_au_sgc|?}}}|{{{md_code_au_sgc|?}}}|type=[[Sega Gold Collection|Gold]][[Category:Sega Gold Collection games]]}}
 
{{releasesRow|MD|AU|{{{md_date_au_spc|}}}|{{{md_rrp_au_spc|?}}}|{{{md_code_au_spc|?}}}|type=[[Sega Platinum Collection|Platinum]][[Category:Sega Platinum Collection games]]}}
 
{{releasesRow|MD|BR|{{{md_date_br|}}}|{{{md_rrp_br|?}}}|{{{md_code_br|?}}}}}
 
{{releasesRow|MD|BR|{{{md_date_br_1|}}}|{{{md_rrp_br_1|?}}}|{{{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|?}}}|{{{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|?}}}|{{{md_code_kr|?}}}}}
 
{{releasesRow|MD|RU|{{{md_date_ru|}}}|{{{md_rrp_ru|?}}}|{{{md_code_ru|?}}}}}
 
{{releasesRow|MD|RU|{{{md_date_ru_1|}}}|{{{md_rrp_ru_1|?}}}|{{{md_code_ru_1|?}}}|type={{{md_type_ru_1|}}}}}
 
{{releasesRow|MD|UA|{{{md_date_ua|}}}|{{{md_rrp_ua|?}}}|{{{md_code_ua|?}}}}}
 
{{releasesRow|MD|TH|{{{md_date_th|}}}|{{{md_rrp_th|?}}}|{{{md_code_th|?}}}}}
 
{{releasesRow|MD|SG|{{{md_date_sg|}}}|{{{md_rrp_sg|?}}}|{{{md_code_sg|?}}}}}
 
{{releasesRow|MD|MY|{{{md_date_my|}}}|{{{md_rrp_my|?}}}|{{{md_code_my|?}}}}}
 
{{releasesRow|MD|PH|{{{md_date_ph|}}}|{{{md_rrp_ph|?}}}|{{{md_code_ph|?}}}}}
 
{{releasesRow|MD|ID|{{{md_date_id|}}}|{{{md_rrp_id|?}}}|{{{md_code_id|?}}}}}
 
{{releasesRow|MD|TW|{{{md_date_tw|}}}|{{{md_rrp_tw|?}}}|{{{md_code_tw|?}}}}}
 
{{releasesRow|MD|TR|{{{md_date_tr|}}}|{{{md_rrp_tr|?}}}|{{{md_code_tr|?}}}}}
 
{{releasesRow|MD|ZA|{{{md_date_za|}}}|{{{md_rrp_za|?}}}|{{{md_code_za|?}}}}}
 
{{releasesRow|MD|World|{{{md_date_world|}}}|{{{md_rrp_world|?}}}|{{{md_code_world|?}}}}}
 
 
 
{{releasesRow|MD|World|{{{am_date_world|}}}|{{{am_rrp_world|?}}}|{{{am_code_world|?}}}}}
 
{{releasesRow|MD|JP|{{{am_date_jp|}}}|{{{am_rrp_jp|?}}}|{{{am_code_jp|?}}}}}
 
{{releasesRow|MD|US|{{{am_date_us|}}}|{{{am_rrp_us|?}}}|{{{am_code_us|?}}}}}
 
{{releasesRow|MD|EU|{{{am_date_eu|}}}|{{{am_rrp_eu|?}}}|{{{am_code_eu|?}}}}}
 
{{releasesRow|MD|UK|{{{am_date_uk|}}}|{{{am_rrp_uk|?}}}|{{{am_code_uk|?}}}}}
 
{{releasesRow|MD|FR|{{{am_date_fr|}}}|{{{am_rrp_fr|?}}}|{{{am_code_fr|?}}}}}
 
{{releasesRow|MD|DE|{{{am_date_de|}}}|{{{am_rrp_de|?}}}|{{{am_code_de|?}}}}}
 
{{releasesRow|MD|ES|{{{am_date_es|}}}|{{{am_rrp_es|?}}}|{{{am_code_es|?}}}}}
 
{{releasesRow|MD|IT|{{{am_date_it|}}}|{{{am_rrp_it|?}}}|{{{am_code_it|?}}}}}
 
{{releasesRow|MD|AU|{{{am_date_au|}}}|{{{am_rrp_au|?}}}|{{{am_code_au|?}}}}}
 
{{releasesRow|MD|AS|{{{am_date_as|}}}|{{{am_rrp_as|?}}}|{{{am_code_as|?}}}}}
 
|-
 
| 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_se|}}}{{{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}}
 
| }}
 
{{#if:{{{am_date_world|}}}{{{am_date_jp|}}}{{{am_date_us|}}}|[[Category:Mega Drive aftermarket games]]|}}
 
| }}
 
 
 
<!-- 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 01:13, 30 July 2020

See Template:Releases/Usage for how to use.