Actions

Template

Difference between revisions of "ReleasesDC"

From Sega Retro

m
Line 1: Line 1:
<includeonly>{{releasesRow|DC|JP|{{{dc_date_jp|}}}|{{{dc_rrp_jp|?}}}|{{{dc_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|dc,vmu,am}}{{#vardefine:rgnlist|jp,us,eu,de,es,fr,pt,uk,it,51,53,56,58,59,60,61,62,64,71,72,74,75,76,77,78,79,81,82,83,87,88,89,91,92,au,br,tw,as,world}}{{clearvar|vmu|aftermarket}}{{#vardefine:year|9999}}
{{releasesRow|DC|JP|{{{dc_date_jp_1|}}}|{{{dc_rrp_jp_1|?}}}|{{{dc_code_jp_1|?}}}|type={{{dc_type_jp_1|}}}}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|DC|JP|{{{dc_date_jp_2|}}}|{{{dc_rrp_jp_2|?}}}|{{{dc_code_jp_2|?}}}|type={{{dc_type_jp_2|}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|DC|JP|{{{dc_date_jp_3|}}}|{{{dc_rrp_jp_3|?}}}|{{{dc_code_jp_3|?}}}|type={{{dc_type_jp_3|}}}}}
+
|  
{{releasesRow|DC|JP|{{{dc_date_jp_4|}}}|{{{dc_rrp_jp_4|?}}}|{{{dc_code_jp_4|?}}}|type={{{dc_type_jp_4|}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|DC|JP|{{{dc_date_jp_d|}}}|{{{dc_rrp_jp_d|?}}}|{{{dc_code_jp_d|?}}}|type=[[Dorikore]]}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|DC|US|{{{dc_date_us|}}}|{{{dc_rrp_us|?}}}|{{{dc_code_us|?}}}}}
+
|  
{{releasesRow|DC|US|{{{dc_date_us_1|}}}|{{{dc_rrp_us_1|?}}}|{{{dc_code_us_1|?}}}|type={{{dc_type_us_1|}}}}}
 
{{releasesRow|DC|US|{{{dc_date_us_2|}}}|{{{dc_rrp_us_2|?}}}|{{{dc_code_us_2|?}}}|type={{{dc_type_us_2|}}}}}
 
{{releasesRow|DC|US|{{{dc_date_us_3|}}}|{{{dc_rrp_us_3|?}}}|{{{dc_code_us_3|?}}}|type={{{dc_type_us_3|}}}}}
 
{{releasesRow|DC|US|{{{dc_date_us_sas|}}}|{{{dc_rrp_us_sas|?}}}|{{{dc_code_us_sas|?}}}|type=[[Sega All Stars]]}}
 
  
<!-- {{releasesRow|DC|EU|{{{dc_date_eu|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}[[Category:Dreamcast region probably wrong]]|{{{dc_code_eu|?}}}}}-->
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
{{releasesRow|DC|EU|{{{dc_date_eu_1|}}}|{{{dc_rrp_uk_1|?}}} {{{dc_rrp_eu_1|?}}}|{{{dc_code_eu_1|?}}}|type={{{dc_type_eu_1|}}}}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
{{releasesRow|DC|EU|{{{dc_date_eu_2|}}}|{{{dc_rrp_uk_2|?}}} {{{dc_rrp_eu_2|?}}}|{{{dc_code_eu_2|?}}}|type={{{dc_type_eu_2|}}}}}
+
{{#switch:{{#var:sys}}|vmu={{#vardefine:vmu|true}}|am={{#vardefine:aftermarket|true}}}}
 +
{{releasesRowPlus
 +
| console={{#switch:{{#var:sys}}|vmu=VMU|DC}}
 +
| region={{#switch:{{#var:rgn}}|51|58=DE/FR/NL|53|64=DE/FR/UK|56=UK/IT|59=FR/NL|60=ES/IT|61=ES/UK/IT|62=DE/IT|71=DE/ES/FR/UK|72=ES/FR|74=DE/NL/UK/IT|75=ES/FR/IT|76=ES/NL/UK|77|87=DE/FR/IT|78=DK/FI/NO/SE|79=ES/FR/NL/IT|81=ES/PT/IT|82=DE/NL|83=DE/FR|88=ES/UK|89=DE/FR/UK/FI/SE|91=NL/UK|92=FR/IT|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}}
 +
  |d=[[Dorikore]]
 +
  |sas=[[Sega All Stars]]
 +
  |{{#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|DC|UK|{{#if:{{{dc_date_uk|}}}|{{{dc_date_uk|}}}|{{{dc_date_eu|}}}}}|{{{dc_rrp_uk|?}}}|{{{dc_code_eu|}}}}}}}
+
{{incvar|j}}
{{releasesRow|DC|FR|{{#if:{{{dc_date_fr|}}}|{{{dc_date_fr|}}}|{{{dc_date_eu|}}}}}|{{{dc_rrp_fr|?}}}|{{{dc_code_eu|}}}}}}}
+
}}
{{releasesRow|DC|DE|{{#if:{{{dc_date_de|}}}|{{{dc_date_de|}}}|{{{dc_date_eu|}}}}}|{{{dc_rrp_de|?}}}|{{{dc_code_eu|}}}}}}}
+
{{incvar|i}}
{{releasesRow|DC|ES|{{#if:{{{dc_date_es|}}}|{{{dc_date_es|}}}|{{{dc_date_eu|}}}}}|{{{dc_rrp_es|?}}}|{{{dc_code_eu|}}}}}}}
+
}}
 
+
{{#switch:{{#var:type}}
{{releasesRow|DC|IT|{{{dc_date_it|}}}|{{{dc_rrp_it|?}}}|{{{dc_code_it|?}}}}}
+
| 0={{#ifeq:{{#var:genre_demo}}|1|[[Category:Dreamcast demo discs]]|[[Category:Dreamcast games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} Dreamcast games]]}}{{genre2cat|Dreamcast}}}}{{#if:{{#var:vmu}}|[[Category:Visual Memory Unit games]]}}{{#if:{{#var:aftermarket}}|[[Category:Dreamcast aftermarket games]]}}
{{releasesRow|DC|PT|{{{dc_date_pt|}}}|{{{dc_rrp_pt|?}}}|{{{dc_code_pt|?}}}}}
+
| 1=[[Category:Dreamcast accessories]]
{{releasesRow|DC|DE/FR/NL|{{{dc_date_51|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_51|?}}}}}
+
| 2=[[Category:Dreamcast hardware]]
{{releasesRow|DC|UK/FR/DE|{{{dc_date_53|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_53|?}}}}}
 
{{releasesRow|DC|UK/IT|{{{dc_date_56|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_56|?}}}}}
 
{{releasesRow|DC|DE/FR/NL|{{{dc_date_58|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_58|?}}}}}
 
{{releasesRow|DC|FR/NL|{{{dc_date_59|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_59|?}}}}}
 
{{releasesRow|DC|IT/ES|{{{dc_date_60|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_60|?}}}}}
 
{{releasesRow|DC|UK/ES/IT|{{{dc_date_61|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_61|?}}}}}
 
{{releasesRow|DC|DE/IT|{{{dc_date_62|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_62|?}}}}}
 
{{releasesRow|DC|UK/FR/DE|{{{dc_date_64|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_64|?}}}}}
 
{{releasesRow|DC|UK/FR/DE/ES|{{{dc_date_71|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_71|?}}}}}
 
{{releasesRow|DC|FR/ES|{{{dc_date_72|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_72|?}}}}}
 
{{releasesRow|DC|UK/DE/IT/NL|{{{dc_date_74|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_74|?}}}}}
 
{{releasesRow|DC|FR/ES/IT|{{{dc_date_75|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_75|?}}}}}
 
{{releasesRow|DC|UK/ES/NL|{{{dc_date_76|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_76|?}}}}}
 
{{releasesRow|DC|DE/FR/IT|{{{dc_date_77|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_77|?}}}}}
 
{{releasesRow|DC|NO/DK/FI/SE|{{{dc_date_78|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_78|?}}}}}
 
{{releasesRow|DC|FR/NL/IT/ES|{{{dc_date_79|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_79|?}}}}}
 
{{releasesRow|DC|ES/PT/IT|{{{dc_date_81|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_81|?}}}}}
 
{{releasesRow|DC|DE/NL|{{{dc_date_82|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_82|?}}}}}
 
{{releasesRow|DC|FR/DE|{{{dc_date_83|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_83|?}}}}}
 
{{releasesRow|DC|DE/FR/IT|{{{dc_date_87|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_87|?}}}}}
 
{{releasesRow|DC|UK/ES|{{{dc_date_88|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_88|?}}}}}
 
{{releasesRow|DC|UK/FR/DE/SE/FI|{{{dc_date_89|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_89|?}}}}}
 
{{releasesRow|DC|UK/NL|{{{dc_date_91|}}}|{{{dc_rrp_uk|?}}} {{{dc_rrp_eu|?}}}|{{{dc_code_91|?}}}}}
 
{{releasesRow|DC|FR/IT|{{{dc_date_92|}}}|{{{dc_rrp_eu|?}}}|{{{dc_code_92|?}}}}}
 
{{releasesRow|DC|PL|{{{dc_date_pl|}}}|{{{dc_rrp_pl|?}}}|{{{dc_code_pl|?}}}}}
 
{{releasesRow|DC|CZ/SK|{{{dc_date_cz|}}}|{{{dc_rrp_cz|?}}}|{{{dc_code_cz|?}}}}}
 
{{releasesRow|DC|AU|{{{dc_date_au|}}}|{{{dc_rrp_au|?}}}|{{{dc_code_au|?}}}}}
 
{{releasesRow|DC|BR|{{{dc_date_br|}}}|R{{{dc_rrp_br|?}}}|{{{dc_code_br|?}}}}}
 
{{releasesRow|DC|RU|{{{dc_date_ru|}}}|{{{dc_rrp_ru|?}}}|{{{dc_code_ru|?}}}}}
 
{{releasesRow|DC|AS|{{{dc_date_as|}}}|{{{dc_rrp_as|?}}}|{{{dc_code_as|?}}}}}
 
{{releasesRow|DC|IN|{{{dc_date_in|}}}|{{{dc_rrp_in|?}}}|{{{dc_code_in|?}}}}}
 
{{releasesRow|DC|CN|{{{dc_date_cn|}}}|{{{dc_rrp_cn|?}}}|{{{dc_code_cn|?}}}}}
 
{{releasesRow|DC|TW|{{{dc_date_tw|}}}|{{{dc_rrp_tw|?}}}|{{{dc_code_tw|?}}}}}
 
{{releasesRow|DC|MA|{{{dc_date_ma|}}}|{{{dc_rrp_ma|?}}}|{{{dc_code_ma|?}}}}}
 
{{releasesRow|DC|World|{{{dc_date_world|}}}|{{{dc_rrp_world|?}}}|{{{dc_code_world|?}}}}}
 
{{releasesRow|DC|World|{{{dc_date_world_1|}}}|{{{dc_rrp_world_1|?}}}|{{{dc_code_world_1|?}}}|type={{{dc_type_world_1|}}}}}
 
{{releasesRow|DC|World|{{{dc_date_world_2|}}}|{{{dc_rrp_world_2|?}}}|{{{dc_code_world_2|?}}}|type={{{dc_type_world_2|}}}}}
 
{{releasesRow|DC|World|{{{dc_date_world_3|}}}|{{{dc_rrp_world_3|?}}}|{{{dc_code_world_3|?}}}|type={{{dc_type_world_3|}}}}}
 
 
 
{{releasesRow|VMU|JP|{{{vmu_date_jp|}}}|{{{vmu_rrp_jp|?}}}|{{{vmu_code_jp|?}}}}}
 
{{releasesRow|VMU|US|{{{vmu_date_us|}}}|{{{vmu_rrp_us|?}}}|{{{vmu_code_us|?}}}}}
 
{{releasesRow|VMU|EU|{{{vmu_date_eu|}}}|{{{vmu_rrp_uk|?}}} {{{vmu_rrp_eu|?}}}|{{{vmu_code_eu|?}}}}}
 
{{releasesRow|VMU|BR|{{{vmu_date_br|}}}|R{{{vmu_rrp_br|?}}}|{{{vmu_code_br|?}}}}}
 
 
 
{{releasesRow|DC|World|{{{am_date_world|}}}|{{{am_rrp_world|?}}}|{{{am_code_world|?}}}}}
 
{{releasesRow|DC|World|{{{am_date_world_1|}}}|{{{am_rrp_world_1|?}}}|{{{am_code_world_1|?}}}|type={{{am_type_world_1|}}}}}
 
{{releasesRow|DC|World|{{{am_date_world_2|}}}|{{{am_rrp_world_2|?}}}|{{{am_code_world_2|?}}}|type={{{am_type_world_2|}}}}}
 
{{releasesRow|DC|World|{{{am_date_world_3|}}}|{{{am_rrp_world_3|?}}}|{{{am_code_world_3|?}}}|type={{{am_type_world_3|}}}}}
 
{{releasesRow|DC|US|{{{am_date_us|}}}|{{{am_rrp_us|?}}}|{{{am_code_us|?}}}}}
 
{{releasesRow|DC|US|{{{am_date_us_1|}}}|{{{am_rrp_us_1|?}}}|{{{am_code_us_1|?}}}|type={{{am_type_us_1|}}}}}
 
{{releasesRow|DC|US|{{{am_date_us_2|}}}|{{{am_rrp_us_2|?}}}|{{{am_code_us_2|?}}}|type={{{am_type_us_2|}}}}}
 
{{releasesRow|DC|US|{{{am_date_us_3|}}}|{{{am_rrp_us_3|?}}}|{{{am_code_us_3|?}}}|type={{{am_type_us_3|}}}}}
 
{{releasesRow|DC|EU|{{{am_date_eu|}}}|{{{am_rrp_eu|?}}}|{{{am_code_eu|?}}}}}
 
{{releasesRow|DC|EU|{{{am_date_eu_1|}}}|{{{am_rrp_eu_1|?}}}|{{{am_code_eu_1|?}}}|type={{{am_type_eu_1|}}}}}
 
{{releasesRow|DC|EU|{{{am_date_eu_2|}}}|{{{am_rrp_eu_2|?}}}|{{{am_code_eu_2|?}}}|type={{{am_type_eu_2|}}}}}
 
{{releasesRow|DC|EU|{{{am_date_eu_3|}}}|{{{am_rrp_eu_3|?}}}|{{{am_code_eu_3|?}}}|type={{{am_type_eu_3|}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |
 
 
 
{{#if: {{{dc_date_jp|}}}{{{dc_date_jp_1|}}}{{{dc_date_us|}}}{{{dc_date_us_1|}}}{{{dc_date_eu|}}}{{{dc_date_uk|}}}{{{dc_date_fr|}}}{{{dc_date_de|}}}{{{dc_date_es|}}}{{{dc_date_au|}}}{{{dc_date_br|}}}{{{dc_date_jp_d|}}}{{{dc_date_world|}}} | {{#ifeq: {{#var:genre_demo}} | 1 | |[[Category:Dreamcast games]]
 
{{#vardefine:year|{{lowest
 
|{{year|{{{dc_date_jp}}}}}
 
|{{year|{{{dc_date_jp_1}}}}}
 
|{{year|{{{dc_date_us}}}}}
 
|{{year|{{{dc_date_eu}}}}}
 
|{{year|{{{dc_date_fr}}}}}
 
|{{year|{{{dc_date_de}}}}}
 
|{{year|{{{dc_date_es}}}}}
 
|{{year|{{{dc_date_au}}}}}
 
|{{year|{{{dc_date_br}}}}}
 
|{{year|{{{dc_date_jp_d}}}}}
 
|{{year|{{{dc_date_world}}}}}
 
}}}}
 
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} Dreamcast games]] }}
 
 
}}
 
}}
{{genre2cat|Dreamcast}}
 
| }}
 
 
{{#if: {{{am_date_world|}}}{{{am_date_us|}}}{{{am_date_eu|}}} | [[Category:Dreamcast aftermarket games]] | }}
 
{{#if: {{{vmu_date_jp|}}}{{{vmu_date_us|}}}{{{vmu_date_eu|}}}{{{vmu_date_br|}}} | [[Category:Visual Memory Unit games]] | }}
 
 
| }}
 
 
<!-- Accessories -->
 
{{#ifeq: {{#var:type}} | 1 | [[Category:Dreamcast accessories]] | }}
 
 
<!-- Consoles -->
 
{{#ifeq: {{#var:type}} | 2 | [[Category:Dreamcast 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 20:03, 28 January 2020

See Template:Releases/Usage for how to use.