Difference between revisions of "ReleasesPico"

From Sega Retro

m (Text replacement - "|no}}}" to "|}}}")
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 3 users not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|Pico|JP|{{{pico_date_jp|}}}|¥{{{pico_rrp_jp|?}}}|{{{pico_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|pico,copera}}{{#vardefine:rgnlist|{{Regions/Classic}}}}{{clearvar|pico|copera}}{{#vardefine:year|9999}}
{{releasesRow|Pico|JP|{{{pico_date_jp_1|}}}{{{pico_rrp_jp_1|?}}}|{{{pico_code_jp_1|?}}}|type={{{pico_type_jp_1|}}}}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|Pico|US|{{{pico_date_us|}}}|${{{pico_rrp_us|?}}}|{{{pico_code_us|?}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|Pico|EU|{{{pico_date_eu|}}}|£{{{pico_rrp_eu|?}}}|{{{pico_code_eu|?}}}}}
+
|  
{{releasesRow|Pico|UK|{{{pico_date_uk|}}}|£{{{pico_rrp_uk|?}}}|{{{pico_code_uk|?}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|Pico|FR|{{{pico_date_fr|}}}|{{{pico_rrp_fr|?}}}FF|{{{pico_code_fr|?}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|Pico|ES|{{{pico_date_es|}}}|{{{pico_rrp_es|?}}}P|{{{pico_code_es|?}}}}}
+
|  
{{releasesRow|Pico|DE|{{{pico_date_de|}}}|{{{pico_rrp_de|?}}}DM|{{{pico_code_de|?}}}}}
 
{{releasesRow|Pico|IT|{{{pico_date_it|}}}|£{{{pico_rrp_it|?}}}|{{{pico_code_it|?}}}}}
 
{{releasesRow|Pico|BR|{{{pico_date_br|}}}|${{{pico_rrp_br|?}}}|{{{pico_code_br|?}}}}}
 
{{releasesRow|Pico|KR|{{{pico_date_kr|}}}|₩{{{pico_rrp_kr|?}}}|{{{pico_code_kr|?}}}}}
 
{{releasesRow|Pico|TW|{{{pico_date_tw|}}}|NT${{{pico_rrp_tw|?}}}|{{{pico_code_tw|?}}}}}
 
{{releasesRow|Pico|AS|{{{pico_date_as|}}}|{{{pico_rrp_as|?}}}|{{{pico_code_as|?}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 | [[Category:Pico games]]
 
  
{{#vardefine:year|{{lowest
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
|{{year|{{{pico_date_jp}}}}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{pico_date_eu}}}}}
+
{{#switch:{{#var:sys}}|pico={{#vardefine:pico|true}}|copera={{#vardefine:copera|true}}}}
|{{year|{{{pico_date_us}}}}}
+
{{releasesRowPlus
|{{year|{{{pico_date_br}}}}}
+
| console=Pico
|{{year|{{{pico_date_kr}}}}}
+
| region={{uc:{{#var:rgn}}}}
|{{year|{{{pico_date_tw}}}}}
+
| date={{#var:dat}}
}}}}
+
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} Pico games]] }}
+
| currency=
 +
| 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}}
 +
  |10th=10th Anniversary
 +
  |bs=Best Selection
 +
  |m=[[Majesco]]
 +
  |{{#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}}|}}}
 +
}}
 +
}}
  
{{#ifeq: {{#var:genre}} | 0 | [[Category:Missing or unrecognised genre]] | [[Category:Pico {{num2genre|{{#var:genre}}}}]] }}
+
{{incvar|j}}
 
+
}}
| }}
+
{{incvar|i}}
 
+
}}
<!-- Accessories -->
+
{{#switch:{{#var:type}}
{{#ifeq: {{#var:type}} | 1 | [[Category:Pico accessories]] | }}
+
| 0={{#if:{{#var:pico}}|[[Category:Pico games]]{{ReleasesYearCheck|{{#var:year}}|Pico}}{{genre2cat|Pico}}}}{{#if:{{#var:copera}}|[[Category:Copera games]]}}
 
+
| 1=[[Category:Pico accessories]]
<!-- Consoles -->
+
| 2=[[Category:Pico hardware]]
{{#ifeq: {{#var:type}} | 2 | [[Category:Pico hardware]] | }}
+
}}
 
 
|-
 
 
</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 11:38, 14 August 2023

See Template:Releases/Usage for how to use.