Difference between revisions of "Releases3DS"

From Sega Retro

Line 8: Line 8:
  
 
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
 
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |  
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}{{clearvar|digital}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
{{#switch:{{#var:sys}}|vc3ds={{#vardefine:downloadable|true}}{{#vardefine:vc3ds|true}}{{#vardefine:digital|true}}|{{#ifeq:{{#explode:{{#var:typ}}|_|1}}|d|{{#vardefine:downloadable|true}}{{#vardefine:digital|true}}|{{#vardefine:retail|true}}}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
 +
{{#switch:{{#var:sys}}|vc3ds={{#vardefine:downloadable|true}}{{#vardefine:vc3ds|true}}|{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}}}
 
{{releasesRowPlus
 
{{releasesRowPlus
 
| console={{#switch:{{#var:sys}}|vc3ds=VC3DS|3DS}}
 
| console={{#switch:{{#var:sys}}|vc3ds=VC3DS|3DS}}
Line 18: Line 19:
 
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
 
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
 
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
 
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
| type={{#vardefine:typ2|{{#sub:{{#var:typ}}|1}}}}{{#switch:{{#var:typ2}}
+
| type={{#switch:{{#var:typ1}}
  |d=
+
  |d={{#var:typ2}}
   |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#replace:{{#var:typ2}}|d_}}}}
+
   |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ1}}}}
 
   }}
 
   }}
| download={{#ifeq:{{#var:digital}}|true|yes}}
+
| download={{#switch:{{#var:sys}}|vc3ds=yes|{{#switch:{{#var:typ1}}|d=yes}}}}
 
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 
}}
 
}}

Revision as of 22:30, 6 May 2019

See Template:Releases/Usage for how to use.