Actions

Template

Difference between revisions of "ReleasesPCE"

From NEC Retro

m
(added ReleasesYearCheck)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|PCE|JP|{{{pce_date_jp|}}}|¥{{{pce_rrp_jp|?}}}|{{{pce_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|pce,am}}{{#vardefine:rgnlist|{{Regions/Classic}},world}}{{clearvar|aftermarket}}{{#vardefine:year|9999}}
{{releasesRow|PCE|JP|{{{pce_date_jp_1|}}}|¥{{{pce_rrp_jp_1|?}}}|{{{pce_code_jp_1|?}}}|type={{{pce_type_jp_1|}}}}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|PCE|JP|{{{pce_date_jp_2|}}}|¥{{{pce_rrp_jp_2|?}}}|{{{pce_code_jp_2|?}}}|type={{{pce_type_jp_2|}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|PCE|JP|{{{pce_date_jp_3|}}}|¥{{{pce_rrp_jp_3|?}}}|{{{pce_code_jp_3|?}}}|type={{{pce_type_jp_3|}}}}}
+
|  
{{releasesRow|PCE|FR|{{{pce_date_fr|}}}|{{{pce_rrp_fr|?}}}FF|{{{pce_code_fr|?}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|PCE|CZ|{{{pce_date_cz|}}}|{{{pce_rrp_cz|?}}}Kč|{{{pce_code_cz|?}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|PCE|KR|{{{pce_date_kr|}}}|₩{{{pce_rrp_kr|?}}}|{{{pce_code_kr|?}}}}}
+
|  
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |  
 
  
{{#if: {{{pce_date_jp|}}}{{{pce_date_fr|}}}{{{pce_date_cz|}}}{{{pce_date_kr|}}} | [[Category:PC Engine games]]
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
{{#vardefine:year|{{lowest
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{pce_date_jp}}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
|{{year|{{{pce_date_fr}}}}}
+
{{#switch:{{#var:sys}}|am={{#vardefine:aftermarket|true}}}}
|{{year|{{{pce_date_cz}}}}}
+
{{releasesRowPlus
|{{year|{{{pce_date_kr}}}}}
+
| console=PCE
}}}}
+
| region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}}
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} PC Engine games]] }}
+
| 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}}
 +
  |{{#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}}|}}}
 +
}}
 +
}}
  
<!-- Accessories -->
+
{{incvar|j}}
{{#ifeq: {{#var:type}} | 1 | [[Category:PC Engine accessories]] | }}
+
}}
 
+
{{incvar|i}}
<!-- Consoles -->
+
}}
{{#ifeq: {{#var:type}} | 2 | [[Category:PC Engine hardware]] | }}
+
{{#switch:{{#var:type}}
 
+
| 0=[[Category:PC Engine games]]{{ReleasesYearCheck|{{#var:year}}|PC Engine}}{{genre2cat|PC Engine}}{{#if:{{#var:aftermarket}}|[[Category:PC Engine aftermarket games]]}}
|-
+
| 1=[[Category:PC Engine accessories]]
| style="display:none" |
+
| 2=[[Category:PC Engine hardware]]
|-
+
}}{{#vardefine:pcerelease|true}}
 
</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 14:10, 4 July 2024

See Template:Releases/Usage for how to use.