Difference between revisions of "ReleasesPSV"

From Sega Retro

m (Text replacement - "{{#ifeq:{{#var:year}}\|9999\|\|\[\[Category:{{#var:year}} (.*) games\]\]\[\[Category:All {{#var:year}} games\]\]}}" to "{{ReleasesYearCheck|{{#var:year}}|$1}}")
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|PSV|JP|{{{psv_date_jp|no}}}|¥{{{psv_rrp_jp|?}}}|{{{psv_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|psv}}{{#vardefine:rgnlist|{{Regions/Modern}}}}{{clearvar|retail|downloadable}}{{#vardefine:year|9999}}
{{releasesRow|PSV|JP|{{{psv_date_jp_d|no}}}|¥{{{psv_rrp_jp_d|?}}}|{{{psv_code_jp_d|?}}}|type=Download}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|PSV|JP|{{{psv_date_jp_tb|no}}}|¥{{{psv_rrp_jp_tb|?}}}|{{{psv_code_jp_tb|?}}}|type=The Best}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|PSV|JP|{{{psv_date_jp_tbd|no}}}|¥{{{psv_rrp_jp_tbd|?}}}|{{{psv_code_jp_tbd|?}}}|type=The Best Download}}
+
|  
{{releasesRow|PSV|JP|{{{psv_date_jp_stb|no}}}|¥{{{psv_rrp_jp_stb|?}}}|{{{psv_code_jp_stb|?}}}|type=[[Sega the Best]]}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|PSV|JP|{{{psv_date_jp_stbd|no}}}|¥{{{psv_rrp_jp_stbd|?}}}|{{{psv_code_jp_stbd|?}}}|type=[[Sega the Best]] Download}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|PSV|JP|{{{psv_date_jp_1|no}}}|¥{{{psv_rrp_jp_1|?}}}|{{{psv_code_jp_1|?}}}|type={{{psv_type_jp_1|}}}}}
+
|  
{{releasesRow|PSV|JP|{{{psv_date_jp_2|no}}}|¥{{{psv_rrp_jp_2|?}}}|{{{psv_code_jp_2|?}}}|type={{{psv_type_jp_2|}}}}}
 
{{releasesRow|PSV|JP|{{{psv_date_jp_3|no}}}|¥{{{psv_rrp_jp_3|?}}}|{{{psv_code_jp_3|?}}}|type={{{psv_type_jp_3|}}}}}
 
{{releasesRow|PSV|JP|{{{psv_date_jp_4|no}}}|¥{{{psv_rrp_jp_4|?}}}|{{{psv_code_jp_4|?}}}|type={{{psv_type_jp_4|}}}}}
 
{{releasesRow|PSV|US|{{{psv_date_us|no}}}|${{{psv_rrp_us|?}}}|{{{psv_code_us|?}}}}}
 
{{releasesRow|PSV|US|{{{psv_date_us_d|no}}}|${{{psv_rrp_us_d|?}}}|{{{psv_code_us_d|?}}}|type=Download}}
 
{{releasesRow|PSV|US|{{{psv_date_us_1|no}}}|${{{psv_rrp_us_1|?}}}|{{{psv_code_us_1|?}}}|type={{{psv_type_us_1}}}}}
 
{{releasesRow|PSV|EU|{{{psv_date_eu|no}}}|£{{{psv_rrp_uk|?}}} €{{{psv_rrp_eu|?}}}|{{{psv_code_eu|?}}}}}
 
{{releasesRow|PSV|EU|{{{psv_date_eu_d|no}}}|£{{{psv_rrp_uk_d|?}}} €{{{psv_rrp_eu_d|?}}}|{{{psv_code_eu_d|?}}}|type=Download}}
 
{{releasesRow|PSV|EU|{{{psv_date_eu_1|no}}}|£{{{psv_rrp_uk_1|?}}} €{{{psv_rrp_eu_1|?}}}|{{{psv_code_eu_1|?}}}|type={{{psv_type_eu_1}}}}}
 
{{releasesRow|PSV|AU|{{{psv_date_au|no}}}|${{{psv_rrp_au|?}}}|{{{psv_code_au|?}}}}}
 
{{releasesRow|PSV|KR|{{{psv_date_kr|no}}}|₩{{{psv_rrp_kr|?}}}|{{{psv_code_kr|?}}}}}
 
{{releasesRow|PSV|KR|{{{psv_date_kr_d|no}}}|₩{{{psv_rrp_kr_d|?}}}|{{{psv_code_kr_d|?}}}|type=Download}}
 
{{releasesRow|PSV|TW|{{{psv_date_tw|no}}}|NT${{{psv_rrp_tw|?}}}|{{{psv_code_tw|?}}}}}
 
{{releasesRow|PSV|AS|{{{psv_date_as|no}}}|{{{psv_rrp_as|?}}}|{{{psv_code_as|?}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |  
 
  
{{#if: {{{psv_date_jp|}}}{{{psv_date_jp_d|}}}{{{psv_date_us|}}}{{{psv_date_us_d|}}}{{{psv_date_eu|}}}{{{psv_date_eu_d|}}}{{{psv_date_au|}}}{{{psv_date_kr|}}}{{{psv_date_tw|}}} | [[Category:PlayStation Vita games]] | }}
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
 +
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
 +
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
 +
{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
 +
{{releasesRowPlus
 +
| console=PSV
 +
| 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={{#switch:{{#var:typ1}}
 +
  |tb=The Best
 +
  |stb=[[Sega the Best]]
 +
  |d={{#switch:{{#var:typ2}}|tb=The Best|stb=[[Sega the Best]]|{{#var:typ2}}}}
 +
  |{{#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}}|}}}
 +
}}
 +
}}
  
| }}
+
{{incvar|j}}
 
+
}}
<!-- Accessories -->
+
{{incvar|i}}
{{#ifeq: {{#var:type}} | 1 | [[Category:PlayStation Vita accessories]] | }}
+
}}
 
+
{{#switch:{{#var:type}}
<!-- Consoles -->
+
| 0=[[Category:PlayStation Vita games]]{{ReleasesYearCheck|{{#var:year}}|PlayStation Vita}}{{#if:{{#var:downloadable}}|{{#if:{{#var:retail}}||[[Category:Download-only PlayStation Vita games]]}}}}
{{#ifeq: {{#var:type}} | 2 | | }}
+
| 1=[[Category:PlayStation Vita accessories]]
 
+
| 2=
|-
+
}}
 
</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 12:42, 14 August 2023

See Template:Releases/Usage for how to use.