Difference between revisions of "ReleasesPS2"

From Sega Retro

m (Text replacement - "¥" to "")
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|PS2|JP|{{{ps2_date_jp|}}}|{{{ps2_rrp_jp|?}}}|{{{ps2_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|ps2}}{{#vardefine:rgnlist|{{Regions/Modern}}}}{{#vardefine:year|9999}}
{{releasesRow|PS2|JP|{{{ps2_date_jp_tb|}}}|{{{ps2_rrp_jp_tb|?}}}|{{{ps2_code_jp_tb|?}}}|type=The Best}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|PS2|JP|{{{ps2_date_jp_stb|}}}|{{{ps2_rrp_jp_stb|?}}}|{{{ps2_code_jp_stb|?}}}|type=[[Sega the Best]]}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|PS2|JP|{{{ps2_date_jp_1|}}}|{{{ps2_rrp_jp_1|?}}}|{{{ps2_code_jp_1|?}}}|type={{{ps2_type_jp_1|}}}}}
+
|  
{{releasesRow|PS2|JP|{{{ps2_date_jp_2|}}}|{{{ps2_rrp_jp_2|?}}}|{{{ps2_code_jp_2|?}}}|type={{{ps2_type_jp_2|}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|PS2|JP|{{{ps2_date_jp_3|}}}|{{{ps2_rrp_jp_3|?}}}|{{{ps2_code_jp_3|?}}}|type={{{ps2_type_jp_3|}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|PS2|US|{{{ps2_date_us|}}}|{{{ps2_rrp_us|?}}}|{{{ps2_code_us|?}}}}}
+
|  
{{releasesRow|PS2|US|{{{ps2_date_us_1|}}}|{{{ps2_rrp_us_1|?}}}|{{{ps2_code_us_1|?}}}|type={{{ps2_type_us_1}}}}}
 
{{releasesRow|PS2|US|{{{ps2_date_us_gh|}}}|{{{ps2_rrp_us_gh|?}}}|{{{ps2_code_us_gh|?}}}|type=Greatest Hits}}
 
{{releasesRow|PS2|EU|{{{ps2_date_eu|}}}|£{{{ps2_rrp_uk|?}}} €{{{ps2_rrp_eu|?}}}|{{{ps2_code_eu|?}}}}}
 
{{releasesRow|PS2|EU|{{{ps2_date_eu_p|}}}|£{{{ps2_rrp_uk_p|?}}} €{{{ps2_rrp_eu_p|?}}}|{{{ps2_code_eu_p|?}}}|type=Platinum}}
 
{{releasesRow|PS2|AU|{{{ps2_date_au|}}}|{{{ps2_rrp_au|?}}}|{{{ps2_code_au|?}}}}}
 
{{releasesRow|PS2|AU|{{{ps2_date_au_p|}}}|{{{ps2_rrp_au_p|?}}}|{{{ps2_code_au_p|?}}}|type=Platinum}}
 
{{releasesRow|PS2|KR|{{{ps2_date_kr|}}}|{{{ps2_rrp_kr|?}}}|{{{ps2_code_kr|?}}}}}
 
{{releasesRow|PS2|KR|{{{ps2_date_kr_1|}}}|{{{ps2_rrp_kr_1|?}}}|{{{ps2_code_kr_1|?}}}|type={{{ps2_type_kr_1|}}}}}
 
{{releasesRow|PS2|KR|{{{ps2_date_kr_bh|}}}|{{{ps2_rrp_kr_bh|?}}}|{{{ps2_code_kr_bh|?}}}|type=Big Hit}}
 
{{releasesRow|PS2|TW|{{{ps2_date_tw|}}}|NT{{{ps2_rrp_tw|?}}}|{{{ps2_code_tw|?}}}}}
 
{{releasesRow|PS2|AS|{{{ps2_date_as|}}}|{{{ps2_rrp_as|?}}}|{{{ps2_code_as|?}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |  
 
  
{{#if: {{{ps2_date_jp|}}}{{{ps2_date_us|}}}{{{ps2_date_eu|}}}{{{ps2_date_au|}}}{{{ps2_date_kr|}}}{{{ps2_date_tw|}}} | [[Category:PlayStation 2 games]]
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
{{#vardefine:year|{{lowest
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{ps2_date_jp}}}}}
+
{{releasesRowPlus
|{{year|{{{ps2_date_us}}}}}
+
| console=PS2
|{{year|{{{ps2_date_eu}}}}}
+
| region={{uc:{{#var:rgn}}}}
|{{year|{{{ps2_date_au}}}}}
+
| date={{#var:dat}}
|{{year|{{{ps2_date_kr}}}}}
+
| packageprice={{{{{#var:sys}}_package_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{ps2_date_tw}}}}}
+
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
}}}}
+
| currency=
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} PlayStation 2 games]] }}
+
| 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}}
 +
  |tb=The Best
 +
  |stb=[[Sega the Best]]
 +
  |gh=Greatest Hits
 +
  |p=Platinum
 +
  |bh=BigHit
 +
  |{{#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:PlayStation 2 accessories]] | }}
+
}}
 
+
{{#switch:{{#var:type}}
<!-- Consoles -->
+
| 0={{#ifeq:{{#var:genre_demo}}|1|[[Category:PlayStation 2 demo discs]]|[[Category:PlayStation 2 games]]{{#ifeq:{{#var:year}}|9999||[[Category:All {{#var:year}} games]][[Category:{{#var:year}} PlayStation 2 games]]}}}}
{{#ifeq: {{#var:type}} | 2 | | }}
+
| 1=[[Category:PlayStation 2 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>

Revision as of 13:36, 13 January 2023

See Template:Releases/Usage for how to use.