Actions

Template

Difference between revisions of "ReleasesPCE"

From NEC Retro

(Created page with "<includeonly>{{releasesRow|PCE|JP|{{{pce_date_jp|}}}|¥{{{pce_rrp_jp|?}}}|{{{pce_code_jp|?}}}}} {{releasesRow|PCE|JP|{{{pce_date_jp_1|}}}|¥{{{pce_rrp_jp_1|?}}}|{{{pce_code_jp...")
 
(added ReleasesYearCheck)
 
(12 intermediate revisions by 4 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|}}}}}
+
|  
|-
+
{{#vardefine:j|0}}{{#while:
| style="display:none" |
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
<!-- Games -->
+
|  
{{#ifeq: {{#var:type}} | 0 |  
 
  
{{#if: {{{pce_date_jp|}}} | [[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}}}}
}}}}
+
{{#switch:{{#var:sys}}|am={{#vardefine:aftermarket|true}}}}
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} PC Engine games]] }}
+
{{releasesRowPlus
| }}
+
| console=PCE
| }}
+
| region={{#switch:{{#var:rgn}}|world=World|{{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}}
 +
  |{{#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}}|}}}
 +
}}
 +
}}
  
| }}
+
{{incvar|j}}
 
+
}}
<!-- Accessories -->
+
{{incvar|i}}
{{#ifeq: {{#var:type}} | 1 | [[Category:PC Engine accessories]] | }}
+
}}
 
+
{{#switch:{{#var:type}}
<!-- Consoles -->
+
| 0=[[Category:PC Engine games]]{{ReleasesYearCheck|{{#var:year}}|PC Engine}}{{genre2cat|PC Engine}}{{#if:{{#var:aftermarket}}|[[Category:PC Engine aftermarket games]]}}
{{#ifeq: {{#var:type}} | 2 | [[Category:PC Engine hardware]] | }}
+
| 1=[[Category:PC Engine accessories]]
 
+
| 2=[[Category:PC Engine hardware]]
|-
+
}}{{#vardefine:pcerelease|true}}
| 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>

Latest revision as of 14:10, 4 July 2024

See Template:Releases/Usage for how to use.