Difference between revisions of "ReleasesSwitch"
From Sega Retro
Ccawley2011 (talk | contribs) (Created page with "<includeonly>{{releasesRow|Switch|JP|{{{switch_date_jp|}}}|{{{switch_rrp_jp|?}}}|{{{switch_code_jp|?}}}}} {{releasesRow|Switch|JP|{{{switch_date_jp_1|}}}|{{{switch_rrp_jp_1|?}...") |
m (Text replacement - "{{#ifeq:{{#var:year}}\|9999\|\|\[\[Category:{{#var:year}} (.*) games\]\]\[\[Category:All {{#var:year}} games\]\]}}" to "{{ReleasesYearCheck|{{#var:year}}|$1}}") |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{ | + | <includeonly>{{#vardefine:syslist|switch,switchonline}}{{#vardefine:rgnlist|{{Regions/Nintendo}}}}{{clearvar|retail|downloadable|switchonline}}{{#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}} | |
− | {{ | + | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#if: {{{ | + | {{#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:sys}}|switchonline={{#vardefine:downloadable|true}}{{#vardefine:switchonline|true}}|{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}}} | ||
+ | {{releasesRowPlus | ||
+ | | console={{#switch:{{#var:sys}}|switchonline=SwitchOnline|Switch}} | ||
+ | | region={{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:sys}}|switchonline=yes|{{#ifeq:{{#var:typ1}}|d|yes}}}} | ||
+ | | rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}} | ||
+ | }} | ||
+ | }} | ||
− | | }} | + | {{incvar|j}} |
− | + | }} | |
− | + | {{incvar|i}} | |
− | + | }} | |
− | {{# | + | {{#switch:{{#var:type}} |
− | + | | 0=[[Category:Nintendo Switch games]]{{ReleasesYearCheck|{{#var:year}}|Nintendo Switch}}{{#if:{{#var:downloadable}}|{{#if:{{#var:retail}}||{{#if:{{#var:switchonline}}|[[Category:Nintendo Switch Online games]]|[[Category:Download-only Nintendo Switch games]]}}}}}} | |
− | + | | 1=[[Category:Nintendo Switch accessories]] | |
− | {{# | + | | 2= |
− | + | }} | |
− | |- | ||
− | | | ||
− | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
See [[Template:Releases/Usage]] for how to use. | See [[Template:Releases/Usage]] for how to use. | ||
[[Category:Releases templates]]</noinclude> | [[Category:Releases templates]]</noinclude> |
Revision as of 12:40, 14 August 2023
See Template:Releases/Usage for how to use.