Actions

Template

Difference between revisions of "ReleasesTG16"

From NEC Retro

m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|TG16|US|{{{tg16_date_us|}}}|${{{tg16_rrp_us|?}}}|{{{tg16_code_us|?}}}}}
+
<includeonly>{{#vardefine:syslist|tg16,am}}{{#vardefine:rgnlist|{{Regions/Classic}},world}}{{clearvar|aftermarket}}{{#vardefine:year|9999}}
{{releasesRow|TG16|UK|{{{tg16_date_uk|}}}|£{{{tg16_rrp_uk|?}}}|{{{tg16_code_uk|?}}}}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|TG16|UK|{{{tg16_date_uk_1|}}}|£{{{tg16_rrp_uk_1|?}}}|{{{tg16_code_uk_1|?}}}|type={{{tg16_type_uk_1|}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|TG16|ES|{{{tg16_date_es|}}}|{{{tg16_rrp_es|?}}}Ptas|{{{tg16_code_es|?}}}}}
+
|  
{{releasesRow|TG16|PT|{{{tg16_date_pt|}}}|{{{tg16_rrp_pt|?}}}|{{{tg16_code_pt|?}}}}}
+
{{#vardefine:j|0}}{{#while:
|-
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
| style="display:none" |
+
|  
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |  
 
  
{{#if: {{{tg16_date_us|}}}{{{tg16_date_uk|}}}{{{tg16_date_es|}}} | [[Category:TurboGrafx-16 games]]{{genre2cat|TurboGrafx-16}}
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
{{#vardefine:year|{{lowest
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{tg16_date_us}}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
|{{year|{{{tg16_date_uk}}}}}
+
{{#switch:{{#var:sys}}|am={{#vardefine:aftermarket|true}}}}
|{{year|{{{tg16_date_es}}}}}
+
{{releasesRowPlus
}}}}
+
| console=TG16
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} TurboGrafx-16 games]] }}
+
| 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:TurboGrafx-16 accessories]] | }}
+
}}
 
+
{{incvar|i}}
<!-- Consoles -->
+
}}
{{#ifeq: {{#var:type}} | 2 | [[Category:TurboGrafx-16 hardware]] | }}
+
{{#switch:{{#var:type}}
 
+
| 0=[[Category:TurboGrafx-16 games]]{{#ifeq:{{#var:year}}|9999|[[Category:Unknown year games]]|[[Category:{{#var:year}} TurboGrafx-16 games]]{{#if:{{#var:pcerelease}}||[[Category:All {{#var:year}} games]]}}}}{{genre2cat|TurboGrafx-16}}{{#if:{{#var:aftermarket}}|[[Category:TurboGrafx-16 aftermarket games]]}}
|-
+
| 1=[[Category:TurboGrafx-16 accessories]]
| style="display:none" |
+
| 2=[[Category:TurboGrafx-16 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:14, 4 July 2024

See Template:Releases/Usage for how to use.