Difference between revisions of "ReleasesPSV"

From Sega Retro

m (Text replacement - "|- </includeonly><noinclude> See Template:Releases/Usage for how to use." to "|- | style="display:none" | |- </includeonly><noinclude> See Template:Releases/Usage for how to use.")
m (Text replacement - "{{#ifeq:{{#var:year}}\|9999\|\|\[\[Category:{{#var:year}} (.*) games\]\]\[\[Category:All {{#var:year}} games\]\]}}" to "{{ReleasesYearCheck|{{#var:year}}|$1}}")
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|PSV|JP|{{{psv_date_jp|}}}|¥{{{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|}}}|¥{{{psv_rrp_jp_d|?}}}|{{{psv_code_jp_d|?}}}|type=Download}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|PSV|JP|{{{psv_date_jp_tb|}}}{{{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|}}}|¥{{{psv_rrp_jp_tbd|?}}}|{{{psv_code_jp_tbd|?}}}|type=The Best Download}}
+
|  
{{releasesRow|PSV|JP|{{{psv_date_jp_stb|}}}|¥{{{psv_rrp_jp_stb|?}}}|{{{psv_code_jp_stb|?}}}|type=[[Sega the Best]]}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|PSV|JP|{{{psv_date_jp_stbd|}}}|¥{{{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|}}}|¥{{{psv_rrp_jp_1|?}}}|{{{psv_code_jp_1|?}}}|type={{{psv_type_jp_1|}}}}}
+
|  
{{releasesRow|PSV|JP|{{{psv_date_jp_2|}}}|¥{{{psv_rrp_jp_2|?}}}|{{{psv_code_jp_2|?}}}|type={{{psv_type_jp_2|}}}}}
 
{{releasesRow|PSV|JP|{{{psv_date_jp_3|}}}|¥{{{psv_rrp_jp_3|?}}}|{{{psv_code_jp_3|?}}}|type={{{psv_type_jp_3|}}}}}
 
{{releasesRow|PSV|JP|{{{psv_date_jp_4|}}}|¥{{{psv_rrp_jp_4|?}}}|{{{psv_code_jp_4|?}}}|type={{{psv_type_jp_4|}}}}}
 
{{releasesRow|PSV|US|{{{psv_date_us|}}}|${{{psv_rrp_us|?}}}|{{{psv_code_us|?}}}}}
 
{{releasesRow|PSV|US|{{{psv_date_us_d|}}}|${{{psv_rrp_us_d|?}}}|{{{psv_code_us_d|?}}}|type=Download}}
 
{{releasesRow|PSV|US|{{{psv_date_us_1|}}}|${{{psv_rrp_us_1|?}}}|{{{psv_code_us_1|?}}}|type={{{psv_type_us_1}}}}}
 
{{releasesRow|PSV|EU|{{{psv_date_eu|}}}|£{{{psv_rrp_uk|?}}} €{{{psv_rrp_eu|?}}}|{{{psv_code_eu|?}}}}}
 
{{releasesRow|PSV|EU|{{{psv_date_eu_d|}}}|£{{{psv_rrp_uk_d|?}}} €{{{psv_rrp_eu_d|?}}}|{{{psv_code_eu_d|?}}}|type=Download}}
 
{{releasesRow|PSV|EU|{{{psv_date_eu_1|}}}|£{{{psv_rrp_uk_1|?}}} €{{{psv_rrp_eu_1|?}}}|{{{psv_code_eu_1|?}}}|type={{{psv_type_eu_1}}}}}
 
{{releasesRow|PSV|AU|{{{psv_date_au|}}}|${{{psv_rrp_au|?}}}|{{{psv_code_au|?}}}}}
 
{{releasesRow|PSV|AU|{{{psv_date_au_d|}}}|${{{psv_rrp_au_d|?}}}|{{{psv_code_au_d|?}}}|type=Download}}
 
{{releasesRow|PSV|KR|{{{psv_date_kr|}}}|₩{{{psv_rrp_kr|?}}}|{{{psv_code_kr|?}}}}}
 
{{releasesRow|PSV|KR|{{{psv_date_kr_d|}}}|₩{{{psv_rrp_kr_d|?}}}|{{{psv_code_kr_d|?}}}|type=Download}}
 
{{releasesRow|PSV|TW|{{{psv_date_tw|}}}|NT${{{psv_rrp_tw|?}}}|{{{psv_code_tw|?}}}}}
 
{{releasesRow|PSV|AS|{{{psv_date_as|}}}|{{{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 |
{{#vardefine:year|{{lowest
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{psv_date_jp}}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
|{{year|{{{psv_date_jp_d}}}}}
+
{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
|{{year|{{{psv_date_us}}}}}
+
{{releasesRowPlus
|{{year|{{{psv_date_us_d}}}}}
+
| console=PSV
|{{year|{{{psv_date_eu}}}}}
+
| region={{uc:{{#var:rgn}}}}
|{{year|{{{psv_date_eu_d}}}}}
+
| date={{#var:dat}}
|{{year|{{{psv_date_au}}}}}
+
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{psv_date_kr}}}}}
+
| currency=
|{{year|{{{psv_date_tw}}}}}
+
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
}}}}
+
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} PlayStation Vita games]] }}
+
| 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=
|-
+
}}
| 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 12:42, 14 August 2023

See Template:Releases/Usage for how to use.