Actions

Template

Difference between revisions of "ReleasesPCFX"

From NEC Retro

m
(added ReleasesYearCheck)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|PCFX|JP|{{{pcfx_date_jp|}}}|¥{{{pcfx_rrp_jp|?}}}|{{{pcfx_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|pcfx}}{{#vardefine:rgnlist|{{Regions/Classic}},world}}{{clearvar|aftermarket}}{{#vardefine:year|9999}}
|-
+
{{#vardefine:i|0}}{{#while:
| style="display:none" |
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
<!-- Games -->
+
|  
{{#ifeq: {{#var:type}} | 0 |  
+
{{#vardefine:j|0}}{{#while:
 +
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
 +
|  
  
{{#if: {{{pcfx_date_jp|}}} | [[Category:PC-FX games]]
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
{{#vardefine:year|{{lowest
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{pcfx_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-FX games]] }}
+
{{releasesRowPlus
| }}
+
| console=PCFX
| }}
+
| 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}}|}}}
 +
}}
 +
}}
  
<!-- Accessories -->
+
{{incvar|j}}
{{#ifeq: {{#var:type}} | 1 | [[Category:PC-FX accessories]] | }}
+
}}
 
+
{{incvar|i}}
<!-- Consoles -->
+
}}
{{#ifeq: {{#var:type}} | 2 | [[Category:PC-FX hardware]] | }}
+
{{#switch:{{#var:type}}
 
+
| 0=[[Category:PC-FX games]]{{ReleasesYearCheck|{{#var:year}}|PC-FX}}{{genre2cat|PC-FX}}
|-
+
| 1=[[Category:PC-FX accessories]]
| style="display:none" |
+
| 2=[[Category:PC-FX hardware]]
|-
+
}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
{{TODO}}
 
 
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:11, 4 July 2024

See Template:Releases/Usage for how to use.