Difference between revisions of "ReleasesSMS"

From Sega Retro

m
 
Line 1: Line 1:
<includeonly>{{releasesRow|SMS|JP|{{{sms_date_jp|}}}|{{{sms_rrp_jp|?}}}[[Category:JP Master System games]]|{{{sms_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|sms}}{{#vardefine:rgnlist|{{Regions/Classic}}}}{{#vardefine:year|9999}}
{{releasesRow|SMS|JP|{{{sms_date_jp_c|}}}|{{{sms_rrp_jp_c|?}}}[[Category:JP Master System games]]|{{{sms_code_jp_c|?}}}|type=[[Sega Card|Card]]}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|SMS|JP|{{{sms_date_jp_1|}}}|{{{sms_rrp_jp_1|?}}}[[Category:JP Master System games]]|{{{sms_code_jp_1|?}}}|type={{{sms_type_jp_1|}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|SMS|US|{{{sms_date_us|}}}|{{{sms_rrp_us|?}}}[[Category:US Master System games]]|{{{sms_code_us|?}}}}}
+
|  
{{releasesRow|SMS|US|{{{sms_date_us_1|}}}|{{{sms_rrp_us_1|?}}}[[Category:US Master System games]]|{{{sms_code_us_1|?}}}|type={{{sms_type_us_1|}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|SMS|CA|{{{sms_date_ca|}}}|{{{sms_rrp_ca|?}}}|{{{sms_code_ca|?}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
<!-- {{releasesRow|SMS|EU|{{{sms_date_eu|}}}|{{{sms_rrp_uk|?}}}|{{{sms_code_eu|?}}}}} -->
+
|  
{{releasesRow|SMS|EU|{{{sms_date_eu_c|}}}|{{{sms_rrp_uk_c|?}}}[[Category:UK Master System games]]|{{{sms_code_eu_c|?}}}|type=[[Sega Card|Card]]}}
 
{{releasesRow|SMS|EU|{{{sms_date_eu_1|}}}|{{{sms_rrp_uk_1|?}}}[[Category:UK Master System games]]|{{{sms_code_eu_1|?}}}|type={{{sms_type_eu_1|}}}}}
 
{{releasesRow|SMS|EU|{{{sms_date_eu_classic|}}}|{{{sms_rrp_uk_classic|?}}}|{{{sms_code_eu_classic|?}}}|type=[[Classic Master System|Classic]]}}
 
{{releasesRow|SMS|UK|{{#if:{{{sms_date_uk|}}}|{{{sms_date_uk|}}}|{{{sms_date_eu|}}}}}|{{{sms_rrp_uk|?}}}[[Category:UK Master System games]]|{{#if:{{{sms_code_uk|}}}|{{{sms_code_uk|}}}|{{{sms_code_eu|}}}}}}}
 
{{releasesRow|SMS|UK|{{{sms_date_uk_c|}}}|{{{sms_rrp_uk_c|?}}}[[Category:UK Master System games]]|{{#if:{{{sms_code_uk_c|}}}|{{{sms_code_uk_c|}}}|{{{sms_code_eu_c|}}}}}|type=[[Sega Card|Card]]}}
 
{{releasesRow|SMS|UK|{{{sms_date_uk_1|}}}|{{{sms_rrp_uk_1|?}}}[[Category:UK Master System games]]|{{{sms_code_uk_1|?}}}|type={{{sms_type_uk_1|}}}}}
 
{{releasesRow|SMS|FR|{{#if:{{{sms_date_fr|}}}|{{{sms_date_fr|}}}|{{{sms_date_eu|}}}}}|{{{sms_rrp_fr|?}}}[[Category:FR Master System games]]|{{#if:{{{sms_code_fr|}}}|{{{sms_code_fr|}}}|{{{sms_code_eu|}}}}}}}
 
{{releasesRow|SMS|DE|{{#if:{{{sms_date_de|}}}|{{{sms_date_de|}}}|{{{sms_date_eu|}}}}}|{{{sms_rrp_de|?}}}[[Category:DE Master System games]]|{{#if:{{{sms_code_de|}}}|{{{sms_code_de|}}}|{{{sms_code_eu|}}}}}}}
 
{{releasesRow|SMS|DE|{{{sms_date_de_c|}}}|{{{sms_rrp_de_c|?}}}[[Category:DE Master System games]]|{{{sms_code_de_c|?}}}|type=[[Sega Card|Card]]}}
 
{{releasesRow|SMS|ES|{{#if:{{{sms_date_es|}}}|{{{sms_date_es|}}}|{{{sms_date_eu|}}}}}|{{{sms_rrp_es|?}}}[[Category:ES Master System games]]|{{#if:{{{sms_code_es|}}}|{{{sms_code_es|}}}|{{{sms_code_eu|}}}}}}}
 
{{releasesRow|SMS|IT|{{{sms_date_it|}}}|{{{sms_rrp_it|?}}}|{{{sms_code_it|?}}}}}
 
{{releasesRow|SMS|IT|{{{sms_date_it_c|}}}|{{{sms_rrp_it_c|?}}}|{{{sms_code_it_c|?}}}|type=[[Sega Card|Card]]}}
 
{{releasesRow|SMS|NL|{{{sms_date_nl|}}}|{{{sms_rrp_nl|?}}}|{{{sms_code_nl|?}}}}}
 
{{releasesRow|SMS|PT|{{{sms_date_pt|}}}|{{{sms_rrp_pt|?}}}[[Category:PT Master System games]]|{{{sms_code_pt|?}}}}}
 
{{releasesRow|SMS|GR|{{{sms_date_gr|}}}|{{{sms_rrp_gr|?}}}[[Category:GR Master System games]]|{{{sms_code_gr|?}}}}}
 
{{releasesRow|SMS|CZ|{{{sms_date_cz|}}}|Kč{{{sms_rrp_cz|?}}}|{{{sms_code_cz|?}}}}}
 
{{releasesRow|SMS|CS|{{{sms_date_cs|}}}|{{{sms_rrp_cs|?}}}|{{{sms_code_cs|?}}}}}
 
{{releasesRow|SMS|PL|{{{sms_date_pl|}}}|{{{sms_rrp_pl|?}}}|{{{sms_code_pl|?}}}}}
 
{{releasesRow|SMS|HU|{{{sms_date_hu|}}}|{{{sms_rrp_hu|?}}}|{{{sms_code_hu|?}}}}}
 
{{releasesRow|SMS|YU|{{{sms_date_yu|}}}|{{{sms_rrp_yu|?}}}|{{{sms_code_yu|?}}}}}
 
{{releasesRow|SMS|AU|{{{sms_date_au|}}}|{{{sms_rrp_au|?}}}[[Category:AU Master System games]]|{{{sms_code_au|?}}}}}
 
{{releasesRow|SMS|AU|{{{sms_date_au_c|}}}|{{{sms_rrp_au_c|?}}}[[Category:AU Master System games]]|{{{sms_code_au_c|?}}}|type=[[Sega Card|Card]]}}
 
{{releasesRow|SMS|BR|{{{sms_date_br|}}}|{{{sms_rrp_br|?}}}[[Category:BR Master System games]]|{{{sms_code_br|?}}}}}
 
{{releasesRow|SMS|BR|{{{sms_date_br_1|}}}|{{{sms_rrp_br_1|?}}}|{{{sms_code_br_1|?}}}|type={{{sms_type_br_1|}}}}}
 
{{releasesRow|SMS|AR|{{{sms_date_ar|}}}|{{{sms_rrp_ar|?}}}[[Category:AR Master System games]]|{{{sms_code_ar|?}}}}}
 
{{releasesRow|SMS|KR|{{{sms_date_kr|}}}|{{{sms_rrp_kr|?}}}[[Category:KR Master System games]]|{{{sms_code_kr|?}}}}}
 
{{releasesRow|SMS|KR|{{{sms_date_kr_c|}}}|{{{sms_rrp_kr_c|?}}}[[Category:KR Master System games]]|{{{sms_code_kr_c|?}}}|type=[[Sega Card|Card]]}}
 
{{releasesRow|SMS|KR|{{{sms_date_kr_1|}}}|{{{sms_rrp_kr_1|?}}}[[Category:KR Master System games]]|{{{sms_code_kr_1|?}}}|type={{{sms_type_kr_1|}}}}}
 
{{releasesRow|SMS|TW|{{{sms_date_tw|}}}|{{{sms_rrp_tw|?}}}[[Category:TW Master System games]]|{{{sms_code_tw|?}}}}}
 
{{releasesRow|SMS|HK|{{{sms_date_hk|}}}|{{{sms_rrp_hk|?}}}|{{{sms_code_hk|?}}}}}
 
{{releasesRow|SMS|AS|{{{sms_date_as|}}}|{{{sms_rrp_as|?}}}|{{{sms_code_as|?}}}}}
 
{{releasesRow|SMS|GF|{{{sms_date_gf|}}}|{{{sms_rrp_gf|?}}}|{{{sms_code_gf|?}}}}}
 
{{releasesRow|SMS|ZA|{{{sms_date_za|}}}|R{{{sms_rrp_za|?}}}|{{{sms_code_za|?}}}}}
 
{{releasesRow|SMS|MX|{{{sms_date_mx|}}}|{{{sms_rrp_mx|?}}}|{{{sms_code_mx|?}}}}}
 
{{releasesRow|SMS|UY|{{{sms_date_uy|}}}|{{{sms_rrp_uy|?}}}|{{{sms_code_uy|?}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 | [[Category:Master System games]]
 
  
{{#vardefine:year|{{lowest
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
|{{year|{{{sms_date_jp}}}}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{sms_date_jp_c}}}}}
+
{{releasesRowPlus
|{{year|{{{sms_date_eu}}}}}
+
| console=SMS
|{{year|{{{sms_date_uk}}}}}
+
| region={{uc:{{#var:rgn}}}}
|{{year|{{{sms_date_de}}}}}
+
| date={{#var:dat}}
|{{year|{{{sms_date_es}}}}}
+
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{sms_date_fr}}}}}
+
| currency=
|{{year|{{{sms_date_it}}}}}
+
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{sms_date_pt}}}}}
+
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{sms_date_cz}}}}}
+
| type={{#vardefine:typ2|{{#sub:{{#var:typ}}|1}}}}{{#switch:{{#var:typ2}}
|{{year|{{{sms_date_us}}}}}
+
  |c=[[Sega Card|Card]]
|{{year|{{{sms_date_au}}}}}
+
  |classic=[[Classic Master System|Classic]]
|{{year|{{{sms_date_br}}}}}
+
  |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ2}}}}
|{{year|{{{sms_date_kr}}}}}
+
  }}
|{{year|{{{sms_date_tw}}}}}
+
| download=
|{{year|{{{sms_date_as}}}}}
+
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
}}}}
+
}}
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} Master System games]] }}
+
}}
  
{{#if: {{{sms_date_jp|}}}{{{sms_date_jp_c|}}} | {{#if: {{{sms_date_eu|}}}{{{sms_date_uk|}}}{{{sms_date_de|}}}{{{sms_date_es|}}}{{{sms_date_fr|}}}{{{sms_date_us|}}}{{{sms_date_br|}}}{{{sms_date_kr|}}}{{{sms_date_tw|}}}{{{sms_date_au|}}} | | [[Category:Japan-only Master System games]] }} }}
+
{{incvar|j}}
 
+
}}
{{genre2cat|Master System}}
+
{{incvar|i}}
 
+
}}
| }}
+
{{#switch:{{#var:type}}
 
+
| 0=[[Category:Master System games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} Master System games]]}}{{genre2cat|Master System}}
<!-- Accessories -->
+
| 1=[[Category:Master System accessories]]
{{#ifeq: {{#var:type}} | 1 | [[Category:Master System accessories]] | }}
+
| 2=[[Category:Master System hardware]]
 
+
}}
<!-- Consoles -->
 
{{#ifeq: {{#var:type}} | 2 | [[Category:Master System 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>

Latest revision as of 23:13, 14 October 2020

See Template:Releases/Usage for how to use.