Difference between revisions of "ReleasesMultiFormat"
From Sega Retro
Line 1: | Line 1: | ||
− | + | <includeonly>{{#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}} | ||
+ | | | ||
− | {{ | + | {{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat | |
− | |{{ | + | {{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}} |
− | | | + | {{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}} |
− | | | + | {{#switch:{{#var:typ1}}|gt|sc|d={{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}} |
− | | | + | {{releasesRowPlus |
− | | | + | | console=Multi-format |
− | | | + | | region={{#switch:{{#var:rgn}}|world=World|{{uc:{{#var:rgn}}}}}} |
− | {{ | + | | date={{#var:dat}} |
− | | | + | | price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}} |
− | | | + | | currency= |
− | | | + | | code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}} |
− | | | + | | code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}} |
− | | | + | | type={{#switch:{{#var:typ1}} |
− | | | + | |d={{#var:typ2}} |
− | | | + | |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ1}}}} |
− | | | + | }} |
− | | | + | | download={{#switch:{{#var:typ1}}|d=yes}} |
− | | | + | | rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}} |
− | | | + | }} |
− | | | + | }} |
− | | | + | |
− | | | + | {{incvar|j}} |
− | |||
− | |||
− | | | ||
}} | }} | ||
− | {{ | + | {{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]]}}}} |
− | | | + | | 1=[[Category:Mega Drive accessories]] |
− | | | + | | 2=[[Category:Mega Drive hardware]] |
+ | }}--> | ||
+ | </includeonly><noinclude> | ||
+ | ==I'm thinking== | ||
+ | |||
+ | <pre> | ||
+ | | 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 | ||
+ | </pre> | ||
+ | |||
+ | {{releasesHeader}} | ||
+ | {{ReleasesMultiFormat | ||
+ | | 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: | + | |
+ | [[Category:Releases templates]] | ||
+ | </noinclude> |
Revision as of 14:08, 14 February 2022
I'm thinking
| 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 | |
---|---|---|---|---|
Template:Multi-format JP | 123 | ¥456456 | 789 | |
Template:Multi-format US | ABC | $DEFDEF | GHI |