Actions

Template

Difference between revisions of "ReleasesSGX"

From NEC Retro

Line 1: Line 1:
<includeonly>{{releasesRow|SGX|JP|{{{sgx_date_jp|}}}|¥{{{sgx_rrp_jp|?}}}|{{{sgx_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|sgx}}{{#vardefine:rgnlist|{{Regions/Classic}}}}{{#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: {{{sgx_date_jp|}}} | [[Category:PC Engine SuperGrafx games]]
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
{{#vardefine:year|{{lowest
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{sgx_date_jp}}}}}
+
{{releasesRowPlus
}}}}
+
| console=SGX
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} PC Engine SuperGrafx games]] }}
+
| 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}}
 +
  |{{#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 SuperGrafx accessories]] | }}
+
}}
 
+
{{incvar|i}}
<!-- Consoles -->
+
}}
{{#ifeq: {{#var:type}} | 2 | [[Category:PC Engine SuperGrafx hardware]] | }}
+
{{#switch:{{#var:type}}
 
+
| 0=[[Category:PC Engine SuperGrafx games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} PC Engine SuperGrafx games]]}}{{genre2cat|PC Engine SuperGrafx}}
|-
+
| 1=[[Category:PC Engine SuperGrafx accessories]]
| style="display:none" |
+
| 2=[[Category:PC Engine SuperGrafx 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>

Revision as of 21:07, 31 January 2022

See Template:Releases/Usage for how to use.