Difference between revisions of "ReleasesPS4"

From Sega Retro

m (Text replacement - "0=\[\[Category:(.*) games\]\]" to "0=Category:$1 games{{genre2cat|$1|notsega=yes}}")
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|PS4|JP|{{{ps4_date_jp|}}}|{{{ps4_rrp_jp|?}}}[[Category:JP PlayStation 4 games]]|{{{ps4_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|ps4}}{{#vardefine:rgnlist|{{Regions/Modern}}}}{{clearvar|retail|downloadable}}{{#vardefine:year|9999}}
{{releasesRow|PS4|JP|{{{ps4_date_jp_d|}}}|{{{ps4_rrp_jp_d|?}}}|{{{ps4_code_jp_d|?}}}|type=Download}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|PS4|JP|{{{ps4_date_jp_tb|}}}|{{{ps4_rrp_jp_tb|?}}}|{{{ps4_code_jp_tb|?}}}|type=Rerelease}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|PS4|JP|{{{ps4_date_jp_tbd|}}}|{{{ps4_rrp_jp_tbd|?}}}|{{{ps4_code_jp_tbd|?}}}|type=Re-Download}}
+
|  
{{releasesRow|PS4|JP|{{{ps4_date_jp_1|}}}|{{{ps4_rrp_jp_1|?}}}|{{{ps4_code_jp_1|?}}}|type={{{ps4_type_jp_1|}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|PS4|US|{{{ps4_date_us|}}}|{{{ps4_rrp_us|?}}}[[Category:US PlayStation 4 games]]|{{{ps4_code_us|?}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|PS4|US|{{{ps4_date_us_d|}}}|{{{ps4_rrp_us_d|?}}}|{{{ps4_code_us_d|?}}}|type=Download}}
+
|  
{{releasesRow|PS4|US|{{{ps4_date_us_1|}}}|{{{ps4_rrp_us_1|?}}}|{{{ps4_code_us_1|?}}}|type={{{ps4_type_us_1|}}}}}
 
{{releasesRow|PS4|EU|{{{ps4_date_eu|}}}|{{{ps4_rrp_eu|?}}}|{{{ps4_code_eu|?}}}}}
 
{{releasesRow|PS4|EU|{{{ps4_date_eu_d|}}}|{{{ps4_rrp_eu_d|?}}}|{{{ps4_code_eu_d|?}}}|type=Download}}
 
{{releasesRow|PS4|EU|{{{ps4_date_eu_1|}}}|{{{ps4_rrp_eu_1|?}}}|{{{ps4_code_eu_1|?}}}|type={{{ps4_type_eu_1|}}}}}
 
{{releasesRow|PS4|UK|{{{ps4_date_uk|}}}|{{{ps4_rrp_uk|?}}}|{{{ps4_code_uk|?}}}}}
 
{{releasesRow|PS4|UK|{{{ps4_date_uk_d|}}}|{{{ps4_rrp_uk_d|?}}}|{{{ps4_code_uk_d|?}}}|type=Download}}
 
{{releasesRow|PS4|UK|{{{ps4_date_uk_1|}}}|{{{ps4_rrp_uk_1|?}}}|{{{ps4_code_uk_1|?}}}|type={{{ps4_type_uk_1|}}}}}
 
{{releasesRow|PS4|AU|{{{ps4_date_au|}}}|{{{ps4_rrp_au|?}}}[[Category:AU PlayStation 4 games]]|{{{ps4_code_au|?}}}}}
 
{{releasesRow|PS4|AU|{{{ps4_date_au_d|}}}|{{{ps4_rrp_au_d|?}}}|{{{ps4_code_au_d|?}}}|type=Download}}
 
{{releasesRow|PS4|KR|{{{ps4_date_kr|}}}|{{{ps4_rrp_kr|?}}}[[Category:KR PlayStation 4 games]]|{{{ps4_code_kr|?}}}}}
 
{{releasesRow|PS4|KR|{{{ps4_date_kr_d|}}}|{{{ps4_rrp_kr_d|?}}}|{{{ps4_code_kr_d|?}}}|type=Download}}
 
{{releasesRow|PS4|KR|{{{ps4_date_kr_1|}}}|{{{ps4_rrp_kr_1|?}}}|{{{ps4_code_kr_1|?}}}|type={{{ps4_type_kr_1|}}}}}
 
{{releasesRow|PS4|KR|{{{ps4_date_kr_2|}}}|{{{ps4_rrp_kr_2|?}}}|{{{ps4_code_kr_2|?}}}|type={{{ps4_type_kr_2|}}}}}
 
{{releasesRow|PS4|TW|{{{ps4_date_tw|}}}|{{{ps4_rrp_tw|?}}}[[Category:TW PlayStation 4 games]]|{{{ps4_code_tw|?}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |  
 
  
{{#if: {{{ps4_date_jp|}}}{{{ps4_date_us|}}}{{{ps4_date_eu|}}}{{{ps4_date_uk|}}}{{{ps4_date_au|}}}{{{ps4_date_kr|}}}{{{ps4_date_tw|}}}{{{ps4_date_jp_d|}}}{{{ps4_date_us_d|}}}{{{ps4_date_eu_d|}}}{{{ps4_date_uk_d|}}}{{{ps4_date_au_d|}}} | [[Category:PlayStation 4 games]]
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
{{#vardefine:year|{{lowest
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{ps4_date_jp}}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
|{{year|{{{ps4_date_us}}}}}
+
{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
|{{year|{{{ps4_date_eu}}}}}
+
{{releasesRowPlus
|{{year|{{{ps4_date_uk}}}}}
+
| console=PS4
|{{year|{{{ps4_date_au}}}}}
+
| region={{uc:{{#var:rgn}}}}
|{{year|{{{ps4_date_kr}}}}}
+
| date={{#var:dat}}
|{{year|{{{ps4_date_tw}}}}}
+
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{ps4_date_jp_d}}}}}
+
| currency=
|{{year|{{{ps4_date_us_d}}}}}
+
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{ps4_date_eu_d}}}}}
+
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{ps4_date_uk_d}}}}}
+
| type={{#switch:{{#var:typ1}}
|{{year|{{{ps4_date_au_d}}}}}
+
  |tb=The Best
|{{year|{{{ps4_date_kr_d}}}}}
+
  |stb=[[Sega the Best]]
}}}}
+
  |d={{#switch:{{#var:typ2}}|tb=The Best|{{#var:typ2}}}}
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} PlayStation 4 games]] }}
+
  |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ1}}}}
| }}
+
  }}
 +
| download={{#ifeq:{{#var:typ1}}|d|yes}}
 +
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 +
}}
 +
}}
  
{{#if: {{{ps4_date_jp_d|}}}{{{ps4_date_us_d|}}}{{{ps4_date_eu_d|}}}{{{ps4_date_uk_d|}}}{{{ps4_date_au_d|}}} |
+
{{incvar|j}}
{{#if: {{{ps4_date_jp|}}}{{{ps4_date_us|}}}{{{ps4_date_eu|}}}{{{ps4_date_uk|}}}{{{ps4_date_au|}}}{{{ps4_date_kr|}}} |
+
}}
| [[Category:Download-only PlayStation 4 games]] }}
+
{{incvar|i}}
| }}
+
}}
 
+
{{#switch:{{#var:type}}
| }}
+
| 0=[[Category:PlayStation 4 games]]{{genre2cat|PlayStation 4|notsega=yes}}{{ReleasesYearCheck|{{#var:year}}|PlayStation 4}}{{#if:{{#var:downloadable}}|{{#if:{{#var:retail}}||[[Category:Download-only PlayStation 4 games]]}}}}
 
+
| 1=[[Category:PlayStation 4 accessories]]
<!-- Accessories -->
+
| 2=
{{#ifeq: {{#var:type}} | 1 | [[Category:PlayStation 4 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>

Latest revision as of 05:43, 15 July 2024

See Template:Releases/Usage for how to use.