Difference between revisions of "ReleasesDA"

From Sega Retro

(Created page with "<includeonly>{{#vardefine:syslist|amazon,bandcamp,itunes,mora,spotify}}{{#vardefine:rgnlist|{{Regions/Mobile}}}}{{clearvar|amazon|bandcamp|itunes|mora|spotify}}{{#vardefine:ye...")
 
Line 1: Line 1:
<includeonly>{{#vardefine:syslist|amazon,bandcamp,itunes,mora,spotify}}{{#vardefine:rgnlist|{{Regions/Mobile}}}}{{clearvar|amazon|bandcamp|itunes|mora|spotify}}{{#vardefine:year|9999}}
+
<includeonly>{{#vardefine:syslist|amazon,bandcamp,itunes,mora,soundcloud,spotify,da}}{{#vardefine:rgnlist|{{Regions/Mobile}}}}{{clearvar|amazon|bandcamp|itunes|mora|soundcloud|spotify|da}}{{#vardefine:year|9999}}
 
{{#vardefine:i|0}}{{#while:
 
{{#vardefine:i|0}}{{#while:
 
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
 
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
Line 10: Line 10:
 
{{#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}}}}
 
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
{{#switch:{{#var:sys}}|amazon={{#vardefine:amazon|true}}|bandcamp={{#vardefine:bandcamp|true}}|itunes={{#vardefine:itunes|true}}|mora={{#vardefine:mora|true}}|spotify={{#vardefine:spotify|true}}}}
+
{{#switch:{{#var:sys}}|amazon={{#vardefine:amazon|true}}|bandcamp={{#vardefine:bandcamp|true}}|itunes={{#vardefine:itunes|true}}|mora={{#vardefine:mora|true}}|soundcloud={{#vardefine:soundcloud|true}}|spotify={{#vardefine:spotify|true}}|da={{#vardefine:da|true}}}}
 
{{releasesRowPlus
 
{{releasesRowPlus
| console={{#switch:{{#var:sys}}|amazon=Amazon|bandcamp=Bandcamp|itunes=iTunes|mora=Mora|spotify=Spotify}}
+
| console={{#switch:{{#var:sys}}|amazon=Amazon|bandcamp=Bandcamp|itunes=iTunes|mora=Mora|soundcloud=Soundcloud|spotify=Spotify|da=DA}}
 
| region={{uc:{{#var:rgn}}}}
 
| region={{uc:{{#var:rgn}}}}
 
| date={{#var:dat}}
 
| date={{#var:dat}}
Line 32: Line 32:
 
{{incvar|i}}
 
{{incvar|i}}
 
}}
 
}}
{{#if:{{#var:amazon}}|[[Category:Amazon audio releases]]}}{{#if:{{#var:bandcamp}}|[[Category:Bandcamp audio releases]]}}{{#if:{{#var:itunes}}|[[Category:iTunes audio releases]]}}{{#if:{{#var:mora}}|[[Category:Mora audio releases]]}}{{#if:{{#var:spotify}}|[[Category:Spotify audio releases]]}}{{#switch:{{#var:musictype}}
+
{{#if:{{#var:amazon}}|[[Category:Amazon audio releases]]}}{{#if:{{#var:bandcamp}}|[[Category:Bandcamp audio releases]]}}{{#if:{{#var:itunes}}|[[Category:iTunes audio releases]]}}{{#if:{{#var:mora}}|[[Category:Mora audio releases]]}}{{#if:{{#var:soundcloud}}|[[Category:Soundcloud audio releases]]}}{{#if:{{#var:spotify}}|[[Category:Spotify audio releases]]}}{{#if:{{#var:da}}|[[Category:Digital audio releases]]}}{{#switch:{{#var:musictype}}
 
| album={{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} albums]]}}[[Category:Digital albums]]
 
| album={{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} albums]]}}[[Category:Digital albums]]
 
}}
 
}}

Revision as of 17:38, 11 July 2020

See Template:Releases/Usage for how to use.