Difference between revisions of "ReleasesGBA"

From Sega Retro

m (Text replacement - "0=\[\[Category:(.*) games\]\]" to "0=Category:$1 games{{genre2cat|$1|notsega=yes}}")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|GBA|JP|{{{gba_date_jp|}}}|{{{gba_rrp_jp|?}}}[[Category:JP Game Boy Advance games]]|{{{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|?}}}[[Category:US Game Boy Advance games]]|{{{gba_code_us|?}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|GBA|EU|{{{gba_date_eu|}}}|{{{gba_rrp_uk|?}}} {{{gba_rrp_eu|?}}}|{{{gba_code_eu|?}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|GBA|FR|{{{gba_date_fr|}}}|{{{gba_rrp_eu|?}}}|{{{gba_code_fr|?}}}}}
+
|  
{{releasesRow|GBA|AU|{{{gba_date_au|}}}|{{{gba_rrp_au|?}}}[[Category:AU Game Boy Advance games]]|{{{gba_code_au|?}}}}}
 
{{releasesRow|GBA|KR|{{{gba_date_kr|}}}|{{{gba_rrp_kr|?}}}[[Category:KR Game Boy Advance games]]|{{{gba_code_kr|?}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 | [[Category:Game Boy Advance games]]
 
  
{{#vardefine:year|{{lowest
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
|{{year|{{{gba_date_jp}}}}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{gba_date_us}}}}}
+
{{releasesRowPlus
|{{year|{{{gba_date_eu}}}}}
+
| console=GBA
|{{year|{{{gba_date_au}}}}}
+
| region={{uc:{{#var:rgn}}}}
|{{year|{{{gba_date_kr}}}}}
+
| date={{#var:dat}}
}}}}
+
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} Game Boy Advance games]] }}
+
| 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}}|}}}
 +
}}
 +
}}
  
| }}
+
{{incvar|j}}
 
+
}}
<!-- Accessories -->
+
{{incvar|i}}
{{#ifeq: {{#var:type}} | 1 | [[Category:Game Boy Advance accessories]] | }}
+
}}
 
+
{{#switch:{{#var:type}}
<!-- Consoles -->
+
| 0=[[Category:Game Boy Advance games]]{{genre2cat|Game Boy Advance|notsega=yes}}{{#ifeq:{{#var:year}}|9999||[[Category:All {{#var:year}} games]][[Category:{{#var:year}} Game Boy Advance games]]}}
{{#ifeq: {{#var:type}} | 2 | | }}
+
| 1=[[Category:Game Boy Advance accessories]]
 
+
| 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>

Latest revision as of 05:43, 15 July 2024

See Template:Releases/Usage for how to use.