Difference between revisions of "ReleasesMultiFormat"

From Sega Retro

Line 32: Line 32:
 
{{incvar|i}}
 
{{incvar|i}}
 
}}
 
}}
<!-- todo {{#switch:{{#var:type}}
+
 
| 0=[[Category:Mega Drive games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} Mega Drive games]]}}{{genre2cat|Mega Drive}}{{#if:{{#var:aftermarket}}|[[Category:Mega Drive aftermarket games]]}}{{#if:{{#var:downloadable}}|{{#if:{{#var:retail}}||[[Category:Download-only Mega Drive games]]}}}}
+
{{#vardefine:i|0}}
}}-->
+
{{#while:
 +
| {{#if:{{#explode:{{#var:multiformatlist}}|,|{{#var:i}}}}|true}}
 +
| {{#vardefine:output|{{#explode:{{#var:multiformatlist}}|,|{{#var:i}}}}}}
 +
{{#vardefine:currentformat|{{Code2Format|{{#var:output}}}}}}
 +
{{#switch:{{#var:type}}
 +
| 0=[[Category:{{#var:currentformat}} games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} {{#var:currentformat}} games]]}}{{genre2cat|{{#var:currentformat}}}}
 +
}}
 +
{{incvar|i}}
 +
}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{TODO}}
 
{{TODO}}

Revision as of 16:38, 14 February 2022


Clock.svg
This task is unfinished
This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of Sega Retro:Todo until this message is removed.

This needs to loop through a supplied list - will do this eventually -Black Squirrel (talk) 14:17, 14 February 2022 (EST)

| multi_formats=PC,Mac,Linux
| multi_date_jp=xxx
| multi_rrp_jp=yyy
| multi_code_jp=zzz
| multi_date_us=xxx
| multi_rrp_us=yyy
| multi_code_us=zzz
Release Date RRP Code
Windows PC
Macintosh
Linux
JP
¥456456 789
Windows PC
Macintosh
Linux
US
$DEFDEF GHI