Difference between revisions of "ReleasesMultiFormat"

From Sega Retro

(Created page with "Spoilers: I don't know how best to do this -~~~~ {{releasesHeader}} |{{PC8001}}{{PC8801}}{{PC6001}}{{PASOPIA}}{{MZ80B}}JP |1990-12-24 |£1234.56 |whatever |XX |- {{releasesMD...")
 
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Spoilers: I don't know how best to do this -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 13:46, 14 February 2022 (EST)
+
<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:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
 +
|  
 +
{{#vardefine:j|0}}{{#while:
 +
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
 +
|
  
{{releasesHeader}}
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
|{{PC8001}}{{PC8801}}{{PC6001}}{{PASOPIA}}{{MZ80B}}JP
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|1990-12-24
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
|£1234.56
+
{{#switch:{{#var:typ1}}|gt|sc|d={{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}
|whatever
+
{{releasesRowPlus
|XX
+
| multiformat={{#var:multiformatlist}}
|-
+
| region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}}
{{releasesMD
+
| date={{#var:dat}}
| md_date_us=1995-06-01
+
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
| md_code_us=T-139086
+
| currency=
| md_rrp_us=49.95{{magref|gamepro|77|88}}
+
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
| md_rating_us=ka
+
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
| md_date_eu=1995-10-28
+
| type={{#switch:{{#var:typ1}}
| md_code_eu=T-139086-50
+
  |d={{#var:typ2}}
| md_rating_eu=3
+
  |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ1}}}}
| md_date_uk=1995-10-28
+
  }}
| md_code_uk=T-139086-50
+
| download={{#switch:{{#var:typ1}}|d=yes}}
| md_rating_uk=3
+
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
| md_rrp_uk=29.99{{magref|mms|38|86}}
+
}}
| md_date_au=199x
+
}}
| md_code_au=FZOO04SMC
+
 
| md_rating_au=g
+
{{incvar|j}}
| md_date_pt=1995
+
}}
| md_code_pt=MDJ139086
+
{{incvar|i}}
| md_date_se_r=199x
 
 
}}
 
}}
{{releasesSat
+
 
| sat_date_jp=1996-11-29{{ref|https://web.archive.org/web/20200320230509/https://sega.jp/fb/segahard/ss/soft_licensee2.html}}
+
{{#vardefine:i|0}}
| sat_code_jp=T-26406G
+
{{#while:
| sat_rrp_jp=4,800e{{magref|ssmjp|1996-14|15}}
+
| {{#if:{{#explode:{{#var:multiformatlist}}|,|{{#var:i}}}}|true}}
| sat_rating_jp=all
+
| {{#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]]
 
}}
 
}}
{{releasesGG
+
{{incvar|i}}
| gg_date_us=1995
+
}}
| gg_code_us=T-139049
+
</includeonly><noinclude>
| gg_rating_us=ka
+
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>
 +
| 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
 +
</pre>
 +
 
 +
{{releasesHeader}}
 +
{{ReleasesMultiFormat
 +
| multi_formats=Win,OSX,Linux
 +
| multi_date_jp=123
 +
| multi_rrp_jp=456
 +
| multi_code_jp=789
 +
| multi_date_us=ABC
 +
| multi_rrp_us=DEF
 +
| multi_code_us=GHI
 
}}
 
}}
 
{{releasesEnd}}
 
{{releasesEnd}}
 +
 +
 +
[[Category:Releases templates]]
 +
</noinclude>

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