Actions

Template

Difference between revisions of "ReleasesWiiU"

From NEC Retro

(Created page with "<includeonly>{{releasesRow|WiiU|JP|{{{wiiu_date_jp|}}}|¥{{{wiiu_rrp_jp|?}}}|{{{wiiu_code_jp|?}}}}} {{releasesRow|WiiU|JP|{{{wiiu_date_jp_1|}}}|¥{{{wiiu_rrp_jp_1|?}}}|{{{wiiu...")
 
 
Line 1: Line 1:
<includeonly>{{releasesRow|WiiU|JP|{{{wiiu_date_jp|}}}|¥{{{wiiu_rrp_jp|?}}}|{{{wiiu_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|wiiu,vcwiiu}}{{#vardefine:rgnlist|{{Regions/Nintendo}}}}{{clearvar|retail|downloadable|vcwiiu}}{{#vardefine:year|9999}}
{{releasesRow|WiiU|JP|{{{wiiu_date_jp_1|}}}{{{wiiu_rrp_jp_1|?}}}|{{{wiiu_code_jp_1|?}}}|type={{{wiiu_type_jp_1|}}}}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|WiiU|US|{{{wiiu_date_us|}}}|${{{wiiu_rrp_us|?}}}|{{{wiiu_code_us|?}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|WiiU|US|{{{wiiu_date_us_1|}}}|${{{wiiu_rrp_us_1|?}}}|{{{wiiu_code_us_1|?}}}|type={{{wiiu_type_us_1|}}}}}
+
|  
{{releasesRow|WiiU|EU|{{{wiiu_date_eu|}}}|£{{{wiiu_rrp_uk|?}}} {{{wiiu_rrp_eu|?}}}|{{{wiiu_code_eu|?}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|WiiU|EU|{{{wiiu_date_eu_1|}}}|£{{{wiiu_rrp_uk_1|?}}} €{{{wiiu_rrp_eu_1|?}}}|{{{wiiu_code_eu_1|?}}}|type={{{wiiu_type_eu_1|}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|WiiU|AU|{{{wiiu_date_au|}}}|${{{wiiu_rrp_au|?}}}|{{{wiiu_code_au|?}}}}}
+
|  
{{releasesRow|WiiU|JP|{{{wiiu_date_jp_d|}}}|¥{{{wiiu_rrp_jp_d|?}}}|{{{wiiu_code_jp_d|?}}}|type=Download}}
 
{{releasesRow|WiiU|US|{{{wiiu_date_us_d|}}}|${{{wiiu_rrp_us_d|?}}}|{{{wiiu_code_us_d|?}}}|type=Download}}
 
{{releasesRow|WiiU|EU|{{{wiiu_date_eu_d|}}}|£{{{wiiu_rrp_uk_d|?}}} €{{{wiiu_rrp_eu_d|?}}}|{{{wiiu_code_eu_d|?}}}|type=Download}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 | [[Category:Wii U games]] | }}
 
  
<!-- Accessories -->
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
{{#ifeq: {{#var:type}} | 1 | [[Category:Wii U accessories]] | }}
+
{{#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}}|vcwiiu={{#vardefine:downloadable|true}}{{#vardefine:vcwiiu|true}}|{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}}}
 +
{{releasesRowPlus
 +
| console={{#switch:{{#var:sys}}|vcwiiu=VCWiiU|WiiU}}
 +
| 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}}|vcwiiu=yes|{{#ifeq:{{#var:typ1}}|d|yes}}}}
 +
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 +
}}
 +
}}
  
<!-- Consoles -->
+
{{incvar|j}}
{{#ifeq: {{#var:type}} | 2 | | }}
+
}}
 
+
{{incvar|i}}
|-
+
}}
| style="display:none" |
+
{{#switch:{{#var:type}}
|-
+
| 0=[[Category:Wii U games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} Wii U games]]}}{{#if:{{#var:downloadable}}|{{#if:{{#var:retail}}||{{#if:{{#var:vcwiiu}}|[[Category:Wii U Virtual Console games]]|[[Category:Download-only Wii U games]]}}}}}}
 +
| 1=[[Category:Wii U 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>

Latest revision as of 09:21, 1 January 2022

See Template:Releases/Usage for how to use.