Actions

Template

Difference between revisions of "ReleasesWii"

From NEC Retro

(Created page with "<includeonly>{{releasesRow|Wii|JP|{{{wii_date_jp|}}}|¥{{{wii_rrp_jp|?}}}|{{{wii_code_jp|?}}}}} {{releasesRow|Wii|JP|{{{wiiware_date_jp|}}}|{{{wiiware_rrp_jp|?}}} pts|{{{wiiwa...")
 
 
Line 1: Line 1:
<includeonly>{{releasesRow|Wii|JP|{{{wii_date_jp|}}}|¥{{{wii_rrp_jp|?}}}|{{{wii_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|wii,wiiware,vc,vca}}{{#vardefine:rgnlist|{{Regions/Nintendo}}}}{{clearvar|retail|downloadable|vc}}{{#vardefine:year|9999}}
{{releasesRow|Wii|JP|{{{wiiware_date_jp|}}}|{{{wiiware_rrp_jp|?}}} pts|{{{wiiware_code_jp|?}}}|type=WiiWare}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|Wii|JP|{{{wii_date_jp_1|}}}|¥{{{wii_rrp_jp_1|?}}}|{{{wii_code_jp_1|?}}}|type={{{wii_type_jp_1|}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{releasesRow|Wii|JP|{{{wii_date_jp_2|}}}|¥{{{wii_rrp_jp_2|?}}}|{{{wii_code_jp_2|?}}}|type={{{wii_type_jp_2|}}}}}
+
|  
{{releasesRow|Wii|JP|{{{wii_date_jp_3|}}}|¥{{{wii_rrp_jp_3|?}}}|{{{wii_code_jp_3|?}}}|type={{{wii_type_jp_3|}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|Wii|US|{{{wii_date_us|}}}|${{{wii_rrp_us|?}}}|{{{wii_code_us|?}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
{{releasesRow|Wii|US|{{{wiiware_date_us|}}}|{{{wiiware_rrp_us|?}}} pts|{{{wiiware_code_us|?}}}|type=WiiWare}}
+
|  
{{releasesRow|Wii|EU|{{{wii_date_eu|}}}|£{{{wii_rrp_uk|?}}} €{{{wii_rrp_eu|?}}}|{{{wii_code_eu|?}}}}}
 
{{releasesRow|Wii|EU|{{{wiiware_date_eu|}}}|{{{wiiware_rrp_eu|?}}} pts|{{{wiiware_code_eu|?}}}|type=WiiWare}}
 
{{releasesRow|Wii|AU|{{{wii_date_au|}}}|${{{wii_rrp_au|?}}}|{{{wii_code_au|?}}}}}
 
{{releasesRow|Wii|KR|{{{wii_date_kr|}}}|₩{{{wii_rrp_kr|?}}}|{{{wii_code_kr|?}}}}}
 
{{releasesRow|Wii|TW|{{{wii_date_tw|}}}|NT${{{wii_rrp_tw|?}}}|{{{wii_code_tw|?}}}}}
 
{{releasesRow|VC|JP|{{{vc_date_jp|}}}|{{{vc_rrp_jp|?}}} points|{{{vc_code_jp|?}}}}}
 
{{releasesRow|VC|JP|{{{vc_date_jp_1|}}}|{{{vc_rrp_jp_1|?}}} points|{{{vc_code_jp_1|?}}}|type={{{vc_type_jp_1|}}}}}
 
{{releasesRow|VC|JP|{{{vc_date_jp_2|}}}|{{{vc_rrp_jp_2|?}}} points|{{{vc_code_jp_2|?}}}|type={{{vc_type_jp_2|}}}}}
 
{{releasesRow|VC|US|{{{vc_date_us|}}}|{{{vc_rrp_us|?}}} points|{{{vc_code_us|?}}}}}
 
{{releasesRow|VC|EU|{{{vc_date_eu|}}}|{{{vc_rrp_eu|?}}} points|{{{vc_code_eu|?}}}}}
 
{{releasesRow|VC|AU|{{{vc_date_au|}}}|{{{vc_rrp_au|?}}} points|{{{vc_code_au|?}}}}}
 
{{releasesRow|VC|JP|{{{vca_date_jp|}}}|{{{vca_rrp_jp|?}}} points|{{{vca_code_jp|?}}}|type=Arcade}}
 
{{releasesRow|VC|US|{{{vca_date_us|}}}|{{{vca_rrp_us|?}}} points|{{{vca_code_us|?}}}|type=Arcade}}
 
{{releasesRow|VC|EU|{{{vca_date_eu|}}}|{{{vca_rrp_eu|?}}} points|{{{vca_code_eu|?}}}|type=Arcade}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |  
 
  
{{#if: {{{wii_date_jp|}}}{{{wiiware_date_jp|}}}{{{wii_date_us|}}}{{{wiiware_date_us|}}}{{{wii_date_eu|}}}{{{wiiware_date_eu|}}}{{{wii_date_au|}}}{{{wii_date_kr|}}}{{{wii_date_tw|}}} | [[Category:Wii games]]
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
{{#vardefine:year|{{lowest
+
{{#if:{{#var:dat}}|{{lowest|var=year|{{#var:year}}|{{year|{{#var:dat}}}}}}}}
|{{year|{{{wii_date_jp}}}}}
+
{{#vardefine:typ1|{{#explode:{{#var:typ}}|_|1}}}}{{#vardefine:typ2|{{#explode:{{#var:typ}}|_|2}}}}
|{{year|{{{wiiware_date_jp}}}}}
+
{{#switch:{{#var:sys}}|wiiware={{#vardefine:downloadable|true}}|vc|vca={{#vardefine:downloadable|true}}{{#vardefine:vc|true}}|{{#ifeq:{{#var:typ1}}|d|{{#vardefine:downloadable|true}}|{{#vardefine:retail|true}}}}}}
|{{year|{{{wii_date_us}}}}}
+
{{releasesRowPlus
|{{year|{{{wiiware_date_us}}}}}
+
| console={{#switch:{{#var:sys}}|vc|vca=VC|Wii}}
|{{year|{{{wii_date_eu}}}}}
+
| region={{uc:{{#var:rgn}}}}
|{{year|{{{wiiware_date_eu}}}}}
+
| date={{#var:dat}}
|{{year|{{{wii_date_au}}}}}
+
| price={{{{{#var:sys}}_rrp_{{#var:rgn}}{{#var:typ}}|}}}
|{{year|{{{wii_date_kr}}}}}
+
| currency={{#switch:{{#var:sys}}|wiiware|vc|vca=*pts}}
|{{year|{{{wii_date_tw}}}}}
+
| code={{{{{#var:sys}}_code_{{#var:rgn}}{{#var:typ}}|}}}
}}}}
+
| code2={{{{{#var:sys}}_code2_{{#var:rgn}}{{#var:typ}}|}}}
{{#ifeq: {{#var:year}} | 9999 | | [[Category:{{#var:year}} Wii games]] }}
+
| type={{#switch:{{#var:typ1}}
| }}
+
  |d={{#var:typ2}}
 +
  |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#switch:{{#var:sys}}|vca=Arcade|{{#var:typ1}}}}}}
 +
  }}
 +
| download={{#switch:{{#var:sys}}|wiiware|vc|vca=yes|{{#ifeq:{{#var:typ1}}|d|yes}}}}
 +
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 +
}}
 +
}}
  
{{#if: {{{wiiware_date_jp|}}}{{{wiiware_date_us|}}}{{{wiiware_date_eu|}}} | [[Category:WiiWare games]] | }}
+
{{incvar|j}}
 
+
}}
{{#if: {{{vc_date_jp|}}}{{{vc_date_jp_1|}}}{{{vc_date_us|}}}{{{vc_date_eu|}}}{{{vc_date_au|}}}{{{vca_date_jp|}}}{{{vca_date_us|}}}{{{vca_date_eu|}}} | [[Category:Wii Virtual Console games]] | }}
+
{{incvar|i}}
 
+
}}
| }}
+
{{#switch:{{#var:type}}
 
+
| 0=[[Category:Wii games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} Wii games]]}}{{#if:{{#var:downloadable}}|{{#if:{{#var:retail}}||{{#if:{{#var:vc}}|[[Category:Wii Virtual Console games]]|[[Category:WiiWare games]]}}}}}}
<!-- Accessories -->
+
| 1=[[Category:Wii accessories]]
{{#ifeq: {{#var:type}} | 1 | [[Category:Wii accessories]] | }}
+
| 2=
 
+
}}
<!-- Consoles -->
 
{{#ifeq: {{#var:type}} | 2 |  | }}
 
 
 
|-
 
| style="display:none" |
 
|-
 
 
</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 08:49, 31 December 2021

See Template:Releases/Usage for how to use.