Difference between revisions of "ReleasesGC"

From Sega Retro

Line 1: Line 1:
<includeonly>{{releasesRow|GC|JP|{{{gc_date_jp|}}}|{{{gc_rrp_jp|?}}}|{{{gc_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|gc}}{{#vardefine:rgnlist|{{Regions/Nintendo}}}}{{#vardefine:year|9999}}
{{releasesRow|GC|JP|{{{gc_date_jp_b|}}}|{{{gc_rrp_jp_b|?}}}|{{{gc_code_jp_b|?}}}|type=Best}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|GC|JP|{{{gc_date_jp_1|}}}|{{{gc_rrp_jp_1|?}}}|{{{gc_code_jp_1|?}}}|type={{{gc_type_jp_1|}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|GC|JP|{{{gc_date_jp_2|}}}|{{{gc_rrp_jp_2|?}}}|{{{gc_code_jp_2|?}}}|type={{{gc_type_jp_2|}}}}}
+
|  
{{releasesRow|GC|JP|{{{gc_date_jp_3|}}}|{{{gc_rrp_jp_3|?}}}|{{{gc_code_jp_3|?}}}|type={{{gc_type_jp_3|}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|GC|US|{{{gc_date_us|}}}|{{{gc_rrp_us|?}}}|{{{gc_code_us|?}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|GC|US|{{{gc_date_us_pc|}}}|{{{gc_rrp_us_pc|?}}}|{{{gc_code_us_pc|?}}}|type=Player's Choice}}
+
|  
{{releasesRow|GC|US|{{{gc_date_us_1|}}}|{{{gc_rrp_us_1|?}}}|{{{gc_code_us_1|?}}}|type={{{gc_type_us_1|}}}}}
 
{{releasesRow|GC|CA|{{{gc_date_ca|}}}|{{{gc_rrp_ca|?}}}|{{{gc_code_ca|?}}}}}
 
  
<!-- {{releasesRow|GC|EU|{{{gc_date_eu|}}}|{{{gc_rrp_uk|?}}} {{{gc_rrp_eu|?}}}|{{{gc_code_eu|?}}}}} -->
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
{{releasesRow|GC|UK|{{#if:{{{gc_date_uk|}}}|{{{gc_date_uk|}}}|{{{gc_date_eu|}}}}}|{{{gc_rrp_uk|?}}}|{{#if:{{{gc_code_uk|}}}|{{{gc_code_uk|}}}|{{{gc_code_eu|}}}}}}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
{{releasesRow|GC|FR|{{#if:{{{gc_date_fr|}}}|{{{gc_date_fr|}}}|{{{gc_date_eu|}}}}}|{{#if:{{{gc_rrp_fr|}}}|{{{gc_rrp_fr|}}}|{{{gc_rrp_eu|}}}}}|{{#if:{{{gc_code_fr|}}}|{{{gc_code_fr|}}}|{{{gc_code_eu|}}}}}}}
+
{{releasesRowPlus
{{releasesRow|GC|DE|{{#if:{{{gc_date_de|}}}|{{{gc_date_de|}}}|{{{gc_date_eu|}}}}}|{{#if:{{{gc_rrp_de|}}}|{{{gc_rrp_de|}}}|{{{gc_rrp_eu|}}}}}|{{#if:{{{gc_code_de|}}}|{{{gc_code_de|}}}|{{{gc_code_eu|}}}}}}}
+
| console=GC
{{releasesRow|GC|ES|{{#if:{{{gc_date_es|}}}|{{{gc_date_es|}}}|{{{gc_date_eu|}}}}}|{{#if:{{{gc_rrp_es|}}}|{{{gc_rrp_es|}}}|{{{gc_rrp_eu|}}}}}|{{#if:{{{gc_code_es|}}}|{{{gc_code_es|}}}|{{{gc_code_eu|}}}}}}}
+
| region={{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}}
 +
  |pc=Player's Choice
 +
  |{{#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|GC|IT|{{{gc_date_it|}}}|{{{gc_rrp_it|?}}}|{{{gc_code_it|?}}}}}
+
{{incvar|j}}
{{releasesRow|GC|PT|{{{gc_date_pt|}}}|{{{gc_rrp_pt|?}}}|{{{gc_code_pt|?}}}}}
+
}}
{{releasesRow|GC|AT|{{{gc_date_at|}}}|{{{gc_rrp_at|?}}}|{{{gc_code_at|?}}}}}
+
{{incvar|i}}
{{releasesRow|GC|RU|{{{gc_date_ru|}}}|{{{gc_rrp_ru|?}}}|{{{gc_code_ru|?}}}}}
+
}}
 
+
{{#switch:{{#var:type}}
{{releasesRow|GC|EU|{{{gc_date_eu_pc|}}}|{{{gc_rrp_uk_pc|?}}} {{{gc_rrp_eu_pc|?}}}|{{{gc_code_eu_pc|?}}}|type=Player's Choice}}
+
| 0={{#ifeq:{{#var:genre_demo}}|1|[[Category:GameCube demo discs]]|[[Category:GameCube games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} GameCube games]]}}}}
{{releasesRow|GC|EU|{{{gc_date_eu_1|}}}|{{{gc_rrp_uk_1|?}}} {{{gc_rrp_eu_1|?}}}|{{{gc_code_eu_1|?}}}|type={{{gc_type_eu_1|}}}}}
+
| 1=[[Category:GameCube accessories]]
{{releasesRow|GC|AU|{{{gc_date_au|}}}|{{{gc_rrp_au|?}}}|{{{gc_code_au|?}}}}}
+
| 2=
{{releasesRow|GC|KR|{{{gc_date_kr|}}}|{{{gc_rrp_kr|?}}}|{{{gc_code_kr|?}}}}}
 
{{releasesRow|GC|TW|{{{gc_date_tw|}}}|{{{gc_rrp_tw|?}}}|{{{gc_code_tw|?}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |
 
 
 
{{#if: {{{gc_date_jp|}}}{{{gc_date_us|}}}{{{gc_date_eu|}}}{{{gc_date_au|}}}{{{gc_date_kr|}}}{{{gc_date_tw|}}} | {{#ifeq: {{#var:genre_demo}} | 1 |[[Category:GameCube demo discs]]| [[Category:GameCube games]]
 
{{#vardefine:year|{{lowest
 
|{{year|{{{gc_date_jp}}}}}
 
|{{year|{{{gc_date_us}}}}}
 
|{{year|{{{gc_date_eu}}}}}
 
|{{year|{{{gc_date_au}}}}}
 
|{{year|{{{gc_date_kr}}}}}
 
|{{year|{{{gc_date_tw}}}}}
 
}}}}
 
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} GameCube games]] }}
 
 
}}
 
}}
| }}
 
 
| }}
 
 
<!-- Accessories -->
 
{{#ifeq: {{#var:type}} | 1 | [[Category:GameCube accessories]] | }}
 
 
<!-- Consoles -->
 
{{#ifeq: {{#var:type}} | 2 |  | }}
 
 
|-
 
| 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 18:11, 11 May 2019

See Template:Releases/Usage for how to use.