Difference between revisions of "ReleasesPSV"

From Sega Retro

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}}
+
| {{#ifexpr: {{#len:{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}} > 0 | true }}
{{releasesRow|PSV|JP|{{{psv_date_jp_tbd|}}}|{{{psv_rrp_jp_tbd|?}}}|{{{psv_code_jp_tbd|?}}}|type=The Best Download}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}
{{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}}
+
| {{#ifexpr: {{#len:{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}} > 0 | true }}
{{releasesRow|PSV|JP|{{{psv_date_jp_1|}}}|{{{psv_rrp_jp_1|?}}}|{{{psv_code_jp_1|?}}}|type={{{psv_type_jp_1|}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}
{{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|UK|{{#if:{{{psv_date_uk|}}}|{{{psv_date_uk|}}}|{{{psv_date_eu|}}}}}|{{{psv_rrp_uk|?}}}|{{#if:{{{psv_code_uk|}}}|{{{psv_code_uk|}}}|{{{psv_code_eu|}}}}}}}
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
{{releasesRow|PSV|FR|{{#if:{{{psv_date_fr|}}}|{{{psv_date_fr|}}}|{{{psv_date_eu|}}}}}|{{{psv_rrp_eu|?}}}|{{#if:{{{psv_code_fr|}}}|{{{psv_code_fr|}}}|{{{psv_code_eu|}}}}}}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
{{releasesRow|PSV|DE|{{#if:{{{psv_date_de|}}}|{{{psv_date_de|}}}|{{{psv_date_eu|}}}}}|{{{psv_rrp_eu|?}}}|{{#if:{{{psv_code_de|}}}|{{{psv_code_de|}}}|{{{psv_code_eu|}}}}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
{{releasesRow|PSV|ES|{{#if:{{{psv_date_es|}}}|{{{psv_date_es|}}}|{{{psv_date_eu|}}}}}|{{{psv_rrp_eu|?}}}|{{#if:{{{psv_code_es|}}}|{{{psv_code_es|}}}|{{{psv_code_eu|}}}}}}}
+
{{releasesRowPlus
{{releasesRow|PSV|IT|{{{psv_date_it|}}}|{{{psv_rrp_eu|?}}}|{{{psv_code_it|?}}}}}
+
| 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}}|}}}
 +
| type={{#switch:{{#if:{{#var:typ2}}|{{#var:typ2}}|{{#var:typ1}}}}
 +
  |tb=The Best
 +
  |stb=[[Sega the Best]]
 +
  |d=
 +
  |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#if:{{#var:typ2}}|{{#var:typ2}}|{{#var:typ1}}}}}}
 +
  }}
 +
| download={{#ifeq:{{#var:typ1}}|d|yes}}
 +
}}
 +
}}
  
{{releasesRow|PSV|EU|{{{psv_date_eu_d|}}}|{{{psv_rrp_eu_d|?}}}|{{{psv_code_eu_d|?}}}|type=Download}}
+
{{incvar|j}}
{{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|UK|{{{psv_date_uk_d|}}}|{{{psv_rrp_uk_d|?}}}|{{{psv_code_uk_d|?}}}|type=Download}}
+
{{incvar|i}}
{{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}}
+
{{#switch:{{#var:type}}
{{releasesRow|PSV|KR|{{{psv_date_kr|}}}|{{{psv_rrp_kr|?}}}|{{{psv_code_kr|?}}}}}
+
| 0=[[Category:PlayStation Vita games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} PlayStation Vita games]]}}{{#if:{{#var:downloadable}}|{{#if:{{#var:retail}}||[[Category:Download-only PlayStation Vita games]]}}}}
{{releasesRow|PSV|KR|{{{psv_date_kr_d|}}}|{{{psv_rrp_kr_d|?}}}|{{{psv_code_kr_d|?}}}|type=Download}}
+
| 1=[[Category:PlayStation Vita accessories]]
{{releasesRow|PSV|KR|{{{psv_date_kr_1|}}}|{{{psv_rrp_kr_1|?}}}|{{{psv_code_kr_1|?}}}|type={{{psv_type_kr_1|}}}}}
+
| 2=
{{releasesRow|PSV|CA|{{{psv_date_ca|}}}|{{{psv_rrp_ca|?}}}|{{{psv_code_ca|?}}}}}
+
}}
{{releasesRow|PSV|RU|{{{psv_date_ru|}}}|{{{psv_rrp_ru|?}}}|{{{psv_code_ru|?}}}}}
 
{{releasesRow|PSV|TW|{{{psv_date_tw|}}}|{{{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_kr_d|}}}{{{psv_date_tw|}}} | [[Category:PlayStation Vita games]]
 
{{#vardefine:year|{{lowest
 
|{{year|{{{psv_date_jp}}}}}
 
|{{year|{{{psv_date_jp_d}}}}}
 
|{{year|{{{psv_date_us}}}}}
 
|{{year|{{{psv_date_us_d}}}}}
 
|{{year|{{{psv_date_eu}}}}}
 
|{{year|{{{psv_date_eu_d}}}}}
 
|{{year|{{{psv_date_au}}}}}
 
|{{year|{{{psv_date_kr}}}}}
 
|{{year|{{{psv_date_kr_d}}}}}
 
|{{year|{{{psv_date_tw}}}}}
 
}}}}
 
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} PlayStation Vita games]] }}
 
| }}
 
 
 
| }}
 
 
 
<!-- Accessories -->
 
{{#ifeq: {{#var:type}} | 1 | [[Category:PlayStation Vita 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>

Revision as of 20:25, 21 April 2018

See Template:Releases/Usage for how to use.