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}}}}}}}}
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}{{clearvar|digital}}
{{#switch:{{#var:sys}}|vc3ds={{#vardefine:downloadable|true}}{{#vardefine:vc3ds|true}}|{{#ifeq:{{#explode:{{#var:typ}}|_|1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}}}
+
{{#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}}}}}}
 
{{releasesRowPlus
 
{{releasesRowPlus
 
| console={{#switch:{{#var:sys}}|vc3ds=VC3DS|3DS}}
 
| console={{#switch:{{#var:sys}}|vc3ds=VC3DS|3DS}}
Line 22: Line 22:
 
   |{{#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}}|}}}|{{#replace:{{#var:typ2}}|d_}}}}
 
   }}
 
   }}
| download={{#ifeq:{{#var:downloadable}}|true|yes}}
+
| download={{#ifeq:{{#var:digital}}|true|yes}}
 
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 
}}
 
}}

Revision as of 23:05, 5 May 2019

See Template:Releases/Usage for how to use.