Difference between revisions of "ReleasesPico"

From Sega Retro

m
m (Text replacement - "{{#ifeq:{{#var:year}}\|9999\|\|\[\[Category:{{#var:year}} (.*) games\]\]\[\[Category:All {{#var:year}} games\]\]}}" to "{{ReleasesYearCheck|{{#var:year}}|$1}}")
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if: {{{pico_date_jp|}}} |
+
<includeonly>{{#vardefine:syslist|pico,copera}}{{#vardefine:rgnlist|{{Regions/Classic}}}}{{clearvar|pico|copera}}{{#vardefine:year|9999}}
{{!}} {{Pico}} JP {{!}}{{!}} {{{pico_date_jp}}} {{!}}{{!}} ¥{{{pico_rrp_jp|?}}} {{!}}{{!}} {{{pico_code_jp|?}}}
+
{{#vardefine:i|0}}{{#while:
| }}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{!}}-
+
|  
{{#if: {{{pico_date_jp_1|}}} |
+
{{#vardefine:j|0}}{{#while:
{{!}} {{Pico}} JP ({{{pico_type_jp_1}}}) {{!}}{{!}} {{{pico_date_jp_1}}} {{!}}{{!}} ¥{{{pico_rrp_jp_1|?}}} {{!}}{{!}} {{{pico_code_jp_1|?}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
| }}
+
|  
{{!}}-
 
{{#if: {{{pico_date_us|}}} |
 
{{!}} {{Pico}} US {{!}}{{!}} {{{pico_date_us}}} {{!}}{{!}} ${{{pico_rrp_us|?}}} {{!}}{{!}} {{{pico_code_us|?}}}
 
| }}
 
{{!}}-
 
{{#if: {{{pico_date_eu|}}} |
 
{{!}} {{Pico}} EU {{!}}{{!}} {{{pico_date_eu}}} {{!}}{{!}} £{{{pico_rrp_uk|?}}} {{!}}{{!}} {{{pico_code_eu|?}}}
 
| }}
 
{{!}}-
 
{{#if: {{{pico_date_uk|}}} |
 
{{!}} {{Pico}} UK {{!}}{{!}} {{{pico_date_uk}}} {{!}}{{!}} £{{{pico_rrp_uk|?}}} {{!}}{{!}} {{{pico_code_eu|?}}}
 
| }}
 
{{!}}-
 
{{#if: {{{pico_date_fr|}}} |
 
{{!}} {{Pico}} FR {{!}}{{!}} {{{pico_date_fr}}} {{!}}{{!}} {{{pico_rrp_fr|?}}}FF {{!}}{{!}} {{{pico_code_fr|?}}}
 
| }}
 
{{!}}-
 
{{#if: {{{pico_date_es|}}} |
 
{{!}} {{Pico}} ES {{!}}{{!}} {{{pico_date_es}}} {{!}}{{!}} {{{pico_rrp_es|?}}}P {{!}}{{!}} {{{pico_code_es|?}}}
 
| }}
 
{{!}}-
 
{{#if: {{{pico_date_de|}}} |
 
{{!}} {{Pico}} DE {{!}}{{!}} {{{pico_date_de}}} {{!}}{{!}} {{{pico_rrp_de|?}}}DM {{!}}{{!}} {{{pico_code_de|?}}}
 
| }}
 
{{!}}-
 
{{#if: {{{pico_date_it|}}} |
 
{{!}} {{Pico}} IT {{!}}{{!}} {{{pico_date_it}}} {{!}}{{!}}  £ {{{pico_rrp_it|?}}} {{!}}{{!}} {{{pico_code_it|?}}}
 
| }}
 
{{!}}-
 
{{#if: {{{pico_date_br|}}} |
 
{{!}} {{Pico}} BR {{!}}{{!}} {{{pico_date_br}}} {{!}}{{!}} ${{{pico_rrp_br|?}}} {{!}}{{!}} {{{pico_code_br|?}}}
 
| }}
 
{{!}}-
 
{{#if: {{{pico_date_kr|}}} |
 
{{!}} {{Pico}} KR {{!}}{{!}} {{{pico_date_kr}}} {{!}}{{!}} ₩{{{pico_rrp_kr|?}}} {{!}}{{!}} {{{pico_code_kr|?}}}
 
| }}
 
{{!}}-
 
<div style="display:none">
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |
 
  
{{#if: {{{pico_date_jp|}}}{{{pico_date_eu|}}}{{{pico_date_us|}}}{{{pico_date_br|}}}{{{pico_date_kr|}}}{{{pico_date_uk|}}}{{{pico_date_fr|}}}{{{pico_date_es|}}}{{{pico_date_it|}}}{{{pico_date_de|}}}{{{pico_date_br|}}} | [[Category:Pico games]]
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
 +
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
 +
{{#switch:{{#var:sys}}|pico={{#vardefine:pico|true}}|copera={{#vardefine:copera|true}}}}
 +
{{releasesRowPlus
 +
| console=Pico
 +
| 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={{#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}}|}}}
 +
}}
 +
}}
  
{{#vardefine:year|{{lowest
+
{{incvar|j}}
|{{year|{{{pico_date_jp}}}}}
+
}}
|{{year|{{{pico_date_eu}}}}}
+
{{incvar|i}}
|{{year|{{{pico_date_us}}}}}
+
}}
|{{year|{{{pico_date_br}}}}}
+
{{#switch:{{#var:type}}
|{{year|{{{pico_date_kr}}}}}
+
| 0={{#if:{{#var:pico}}|[[Category:Pico games]]{{ReleasesYearCheck|{{#var:year}}|Pico}}{{genre2cat|Pico}}}}{{#if:{{#var:copera}}|[[Category:Copera games]]}}
}}}}
+
| 1=[[Category:Pico accessories]]
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} Pico games]] }}
+
| 2=[[Category:Pico hardware]]
 +
}}
 +
</includeonly><noinclude>
 +
See [[Template:Releases/Usage]] for how to use.
  
{{#ifeq: {{#var:genre}} | 0 | [[Category:Missing or unrecognised genre]] | [[Category:Pico {{num2genre|{{#var:genre}}}}]] }}
+
[[Category:Releases templates]]</noinclude>
 
 
| }}
 
 
 
<!-- Accessories -->
 
{{#ifeq: {{#var:type}} | 1 |
 
{{#if: {{{pico_date_jp|}}}{{{pico_date_eu|}}}{{{pico_date_br|}}}{{{pico_date_us|}}} | [[Category:Pico accessories]] | }}
 
| }}
 
 
 
<!-- Consoles -->
 
{{#ifeq: {{#var:type}} | 2 |
 
 
 
| }}
 
 
 
</div><noinclude>
 
[[Category:Sega Retro templates]]</noinclude>
 

Latest revision as of 11:38, 14 August 2023

See Template:Releases/Usage for how to use.