Difference between revisions of "ReleasesMultiFormat"

From Sega Retro

 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:syslist|multi}}{{#vardefine:rgnlist|{{Regions/Classic}},world}}{{clearvar|aftermarket|retail|downloadable}}{{#vardefine:year|9999}}
+
<includeonly>{{#vardefine:multiformatlist|{{{multi_formats|}}}}}{{#vardefine:syslist|multi}}{{#vardefine:rgnlist|{{Regions/Classic}},world}}{{clearvar|aftermarket|retail|downloadable}}{{#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 12: Line 12:
 
{{#switch:{{#var:typ1}}|gt|sc|d={{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
 
{{#switch:{{#var:typ1}}|gt|sc|d={{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
 
{{releasesRowPlus
 
{{releasesRowPlus
| console=Multi-format
+
| multiformat={{#var:multiformatlist}}
 
| region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}}
 
| region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}}
 
| date={{#var:dat}}
 
| date={{#var:dat}}
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}}
| 1=[[Category:Mega Drive accessories]]
+
{{#while:
| 2=[[Category:Mega Drive hardware]]
+
| {{#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]]{{ReleasesYearCheck|{{#var:year}}|{{#var:currentformat}}}}{{genre2cat|{{#var:currentformat}}}}
 +
| 1=[[Category:{{#var:currentformat}} accessories]]
 +
}}
 +
{{incvar|i}}
 +
}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
==I'm thinking==
+
See [[Template:Releases/Usage]] for how to use.
 +
 
 +
This is for multi-format releases, e.g. a disk that works in two different machines, and was sold as one package.
  
 
<pre>
 
<pre>
| multi_formats=PC,Mac,Linux
+
| multi_formats=Win,OSX,Linux
 
| multi_date_jp=xxx
 
| multi_date_jp=xxx
 
| multi_rrp_jp=yyy
 
| multi_rrp_jp=yyy
Line 52: Line 61:
 
{{releasesHeader}}
 
{{releasesHeader}}
 
{{ReleasesMultiFormat
 
{{ReleasesMultiFormat
 +
| multi_formats=Win,OSX,Linux
 
| multi_date_jp=123
 
| multi_date_jp=123
 
| multi_rrp_jp=456
 
| multi_rrp_jp=456

Latest revision as of 14:19, 19 March 2024

See Template:Releases/Usage for how to use.

This is for multi-format releases, e.g. a disk that works in two different machines, and was sold as one package.

| multi_formats=Win,OSX,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
Mac OS X
Linux
JP
¥456456 789
Windows PC
Mac OS X
Linux
US
$DEFDEF GHI