Difference between revisions of "ReleasesGBA"

From Sega Retro

Line 1: Line 1:
<includeonly>{{releasesRow|GBA|JP|{{{gba_date_jp|}}}|{{{gba_rrp_jp|?}}}|{{{gba_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|gba}}{{#vardefine:rgnlist|{{Regions/Nintendo}}}}{{#vardefine:year|9999}}
{{releasesRow|GBA|JP|{{{gba_date_jp_1|}}}|{{{gba_rrp_jp_1|?}}}|{{{gba_code_jp_1|?}}}|type={{{gba_type_jp_1|}}}}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|GBA|JP|{{{gba_date_jp_2|}}}|{{{gba_rrp_jp_2|?}}}|{{{gba_code_jp_2|?}}}|type={{{gba_type_jp_2|}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|GBA|JP|{{{gba_date_jp_3|}}}|{{{gba_rrp_jp_3|?}}}|{{{gba_code_jp_3|?}}}|type={{{gba_type_jp_3|}}}}}
+
|  
{{releasesRow|GBA|US|{{{gba_date_us|}}}|{{{gba_rrp_us|?}}}|{{{gba_code_us|?}}}}}
+
{{#vardefine:j|0}}{{#while:
 +
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
 +
|
  
{{releasesRow|GBA|UK|{{#if:{{{gba_date_uk|}}}|{{{gba_date_uk|}}}|{{{gba_date_eu|}}}}}|{{{gba_rrp_uk|?}}}|{{#if:{{{gba_code_uk|}}}|{{{gba_code_uk|}}}|{{{gba_code_eu|}}}}}}}
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
{{releasesRow|GBA|FR|{{#if:{{{gba_date_fr|}}}|{{{gba_date_fr|}}}|{{{gba_date_eu|}}}}}|{{{gba_rrp_fr|?}}}|{{#if:{{{gba_code_fr|}}}|{{{gba_code_fr|}}}|{{{gba_code_eu|}}}}}}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
{{releasesRow|GBA|DE|{{#if:{{{gba_date_de|}}}|{{{gba_date_de|}}}|{{{gba_date_eu|}}}}}|{{{gba_rrp_de|?}}}|{{#if:{{{gba_code_de|}}}|{{{gba_code_de|}}}|{{{gba_code_eu|}}}}}}}
+
{{releasesRowPlus
{{releasesRow|GBA|ES|{{#if:{{{gba_date_es|}}}|{{{gba_date_es|}}}|{{{gba_date_eu|}}}}}|{{{gba_rrp_es|?}}}|{{#if:{{{gba_code_es|}}}|{{{gba_code_es|}}}|{{{gba_code_eu|}}}}}}}
+
| console=GBA
 +
| 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}}
 +
  |{{#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|GBA|IT|{{{gba_date_it|}}}|{{{gba_rrp_it|?}}}|{{{gba_code_it|?}}}}}
+
{{incvar|j}}
{{releasesRow|GBA|AU|{{{gba_date_au|}}}|{{{gba_rrp_au|?}}}|{{{gba_code_au|?}}}}}
+
}}
{{releasesRow|GBA|KR|{{{gba_date_kr|}}}|{{{gba_rrp_kr|?}}}|{{{gba_code_kr|?}}}}}
+
{{incvar|i}}
|-
+
}}
| style="display:none" |
+
{{#switch:{{#var:type}}
<!-- Games -->
+
| 0=[[Category:Game Boy Advance games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} Game Boy Advance games]]}}
{{#ifeq: {{#var:type}} | 0 | [[Category:Game Boy Advance games]]
+
| 1=[[Category:Game Boy Advance accessories]]
 
+
| 2=
{{#vardefine:year|{{lowest
+
}}
|{{year|{{{gba_date_jp}}}}}
 
|{{year|{{{gba_date_us}}}}}
 
|{{year|{{{gba_date_eu}}}}}
 
|{{year|{{{gba_date_au}}}}}
 
|{{year|{{{gba_date_kr}}}}}
 
}}}}
 
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} Game Boy Advance games]] }}
 
 
 
| }}
 
 
 
<!-- Accessories -->
 
{{#ifeq: {{#var:type}} | 1 | [[Category:Game Boy Advance 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 16:56, 12 June 2019

See Template:Releases/Usage for how to use.