Difference between revisions of "ReleasesPS4"

From Sega Retro

Line 9: Line 9:
 
{{#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}}}}}}}}
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
 +
{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
 
{{releasesRowPlus
 
{{releasesRowPlus
 
| console=PS4
 
| console=PS4
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={{#switch:{{#if:{{#var:typ2}}|{{#var:typ2}}|{{#var:typ1}}}}
+
| type={{#switch:{{#var:typ1}}
 
   |tb=The Best
 
   |tb=The Best
 
   |stb=[[Sega the Best]]
 
   |stb=[[Sega the Best]]
   |d=
+
   |d={{#switch:{{#var:typ2}}|tb=The Best|{{#var:typ2}}}}
   |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#if:{{#var:typ2}}|{{#var:typ2}}|{{#var:typ1}}}}}}
+
   |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ1}}}}
 
   }}
 
   }}
 
| download={{#ifeq:{{#var:typ1}}|d|yes}}
 
| download={{#ifeq:{{#var:typ1}}|d|yes}}

Revision as of 22:46, 6 May 2019

See Template:Releases/Usage for how to use.