Difference between revisions of "ReleasesiOS"

From Sega Retro

Line 1: Line 1:
<includeonly>{{releasesRow|iOS|JP|{{{ios_date_jp|}}}|{{{ios_rrp_jp|?}}}|{{{ios_code_jp|?}}}}}
+
<includeonly>{{#vardefine:syslist|ios,ipod,ipad,appletv}}{{#vardefine:rgnlist|{{Regions/Mobile}}}}{{#vardefine:year|9999}}
{{releasesRow|iOS|JP|{{{ios_date_jp_gree|}}}|{{{ios_rrp_jp_gree|?}}}|{{{ios_code_jp_gree|?}}}|type=GREE}}
+
{{#vardefine:i|0}}{{#while:
{{releasesRow|iOS|JP|{{{ios_date_jp_1|}}}|{{{ios_rrp_jp_1|?}}}|{{{ios_code_jp_1|?}}}|type={{{ios_type_jp_1|}}}}}
+
| {{#ifexpr: {{#len:{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}} > 0 | true }}
{{releasesRow|iOS|JP|{{{ios_date_jp_2|}}}|{{{ios_rrp_jp_2|?}}}|{{{ios_code_jp_2|?}}}|type={{{ios_type_jp_2|}}}}}
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}
{{releasesRow|iOS|JP|{{{ios_date_jp_3|}}}|{{{ios_rrp_jp_3|?}}}|{{{ios_code_jp_3|?}}}|type={{{ios_type_jp_3|}}}}}
+
{{#vardefine:j|0}}{{#while:
{{releasesRow|iOS|JP|{{{ios_date_jp_4|}}}|{{{ios_rrp_jp_4|?}}}|{{{ios_code_jp_4|?}}}|type={{{ios_type_jp_4|}}}}}
+
| {{#ifexpr: {{#len:{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}} > 0 | true }}
{{releasesRow|iOS|JP|{{{ios_date_jp_5|}}}|{{{ios_rrp_jp_5|?}}}|{{{ios_code_jp_5|?}}}|type={{{ios_type_jp_5|}}}}}
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}
{{releasesRow|iOS|US|{{{ios_date_us|}}}|{{{ios_rrp_us|?}}}|{{{ios_code_us|?}}}}}
 
{{releasesRow|iOS|EU|{{{ios_date_eu|}}}|{{{ios_rrp_eu|?}}}|{{{ios_code_eu|?}}}}}
 
{{releasesRow|iOS|UK|{{{ios_date_uk|}}}|{{{ios_rrp_uk|?}}}|{{{ios_code_uk|?}}}}}
 
{{releasesRow|iOS|AU|{{{ios_date_au|}}}|{{{ios_rrp_au|?}}}|{{{ios_code_au|?}}}}}
 
{{releasesRow|iOS|KR|{{{ios_date_kr|}}}|{{{ios_rrp_kr|?}}}|{{{ios_code_kr|?}}}}}
 
{{releasesRow|iOS|JP|{{{ipod_date_jp|}}}|{{{ipod_rrp_jp|?}}}|{{{ipod_code_jp|?}}}|type=iPod}}
 
{{releasesRow|iOS|US|{{{ipod_date_us|}}}|{{{ipod_rrp_us|?}}}|{{{ipod_code_us|?}}}|type=iPod}}
 
{{releasesRow|iOS|EU|{{{ipod_date_eu|}}}|{{{ipod_rrp_eu|?}}}|{{{ipod_code_eu|?}}}|type=iPod}}
 
{{releasesRow|iOS|UK|{{{ipod_date_uk|}}}|{{{ipod_rrp_uk|?}}}|{{{ipod_code_uk|?}}}|type=iPod}}
 
{{releasesRow|iOS|AU|{{{ipod_date_au|}}}|{{{ipod_rrp_au|?}}}|{{{ipod_code_au|?}}}|type=iPod}}
 
{{releasesRow|iOS|JP|{{{ipad_date_jp|}}}|{{{ipad_rrp_jp|?}}}|{{{ipad_code_jp|?}}}|type=iPad}}
 
{{releasesRow|iOS|US|{{{ipad_date_us|}}}|{{{ipad_rrp_us|?}}}|{{{ipad_code_us|?}}}|type=iPad}}
 
{{releasesRow|iOS|EU|{{{ipad_date_eu|}}}|{{{ipad_rrp_eu|?}}}|{{{ipad_code_eu|?}}}|type=iPad}}
 
{{releasesRow|iOS|UK|{{{ipad_date_uk|}}}|{{{ipad_rrp_uk|?}}}|{{{ipad_code_uk|?}}}|type=iPad}}
 
{{releasesRow|iOS|AU|{{{ipad_date_au|}}}|{{{ipad_rrp_au|?}}}|{{{ipad_code_au|?}}}|type=iPad}}
 
{{releasesRow|iOS|JP|{{{ipad_date_jp_1|}}}|{{{ipad_rrp_jp_1|?}}}|{{{ipad_code_jp_1|?}}}|type=iPad, {{{ipad_type_jp_1|}}}}}
 
{{releasesRow|iOS|US|{{{ipad_date_us_1|}}}|{{{ipad_rrp_us_1|?}}}|{{{ipad_code_us_1|?}}}|type=iPad, {{{ipad_type_us_1|}}}}}
 
{{releasesRow|iOS|EU|{{{ipad_date_eu_1|}}}|{{{ipad_rrp_eu_1|?}}}|{{{ipad_code_eu_1|?}}}|type=iPad, {{{ipad_type_eu_1|}}}}}
 
{{releasesRow|iOS|UK|{{{ipad_date_uk_1|}}}|{{{ipad_rrp_uk_1|?}}}|{{{ipad_code_uk_1|?}}}|type=iPad, {{{ipad_type_uk_1|}}}}}
 
{{releasesRow|iOS|JP|{{{ipad_date_jp_2|}}}|{{{ipad_rrp_jp_2|?}}}|{{{ipad_code_jp_2|?}}}|type=iPad, {{{ipad_type_jp_2|}}}}}
 
{{releasesRow|iOS|US|{{{ipad_date_us_2|}}}|{{{ipad_rrp_us_2|?}}}|{{{ipad_code_us_2|?}}}|type=iPad, {{{ipad_type_us_2|}}}}}
 
{{releasesRow|iOS|EU|{{{ipad_date_eu_2|}}}|{{{ipad_rrp_eu_2|?}}}|{{{ipad_code_eu_2|?}}}|type=iPad, {{{ipad_type_eu_2|}}}}}
 
{{releasesRow|iOS|UK|{{{ipad_date_uk_2|}}}|{{{ipad_rrp_uk_2|?}}}|{{{ipad_code_uk_2|?}}}|type=iPad, {{{ipad_type_uk_2|}}}}}
 
{{releasesRow|AppleTV|US|{{{appletv_date_us|}}}|{{{appletv_rrp_us|?}}}|{{{appletv_code_us|?}}}}}
 
{{releasesRow|AppleTV|EU|{{{appletv_date_eu|}}}|{{{appletv_rrp_eu|?}}}|{{{appletv_code_eu|?}}}}}
 
{{releasesRow|AppleTV|UK|{{{appletv_date_uk|}}}|{{{appletv_rrp_uk|?}}}|{{{appletv_code_uk|?}}}}}
 
{{releasesRow|AppleTV|AU|{{{appletv_date_au|}}}|{{{appletv_rrp_au|?}}}|{{{appletv_code_au|?}}}}}
 
|-
 
| style="display:none" |
 
<!-- Games -->
 
{{#ifeq: {{#var:type}} | 0 |
 
  
{{#if: {{{ios_date_jp|}}}{{{ios_date_jp_au|}}}{{{ios_date_jp_gree|}}}{{{ios_date_us|}}}{{{ios_date_eu|}}}{{{ios_date_uk|}}}{{{ios_date_au|}}}{{{ios_date_kr|}}} | [[Category:iOS games]] | }}
+
{{#forargs: {{#var:sys}}_date_{{#var:rgn}} | typ | dat |
 +
{{releasesRowPlus
 +
| console={{#switch:{{#var:sys}}|appletv=AppleTV|iOS}}
 +
| 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=
 +
| type={{#vardefine:typ2|{{#sub:{{#var:typ}}|1}}}}{{#switch:{{#var:sys}}|ipod={{#vardefine:typ2|iPod}}|ipad={{#vardefine:typ2|iPad{{#if:{{#var:typ2}}|<nowiki>;</nowiki> {{#var:typ2}}}}}}}}{{#switch:{{#var:typ2}}
 +
  |gree=GREE
 +
  |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ2}}}}
 +
  }}
 +
| download=yes
 +
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 +
}}
 +
{{#switch:{{#var:sys}}|ipod=[[Category:iPod games]]|ipad=[[Category:iPad games]][[Category:iOS games]]|appletv=[[Category:Apple TV games]]|[[Category:iOS games]]}}
 +
}}
  
{{#if: {{{ipad_date_jp|}}}{{{ipad_date_us|}}}{{{ipad_date_eu|}}}{{{ipad_date_uk|}}}{{{ipad_date_au|}}} | [[Category:iPad games]] | }}
+
{{incvar|j}}
 
+
}}
{{#if: {{{ipod_date_jp|}}}{{{ipod_date_us|}}}{{{ipod_date_eu|}}}{{{ipod_date_uk|}}}{{{ipod_date_au|}}} | [[Category:iPod games]] | }}
+
{{incvar|i}}
 
+
}}
{{#if: {{{appletv_date_us|}}}{{{appletv_date_eu|}}}{{{appletv_date_uk|}}}{{{appletv_date_au|}}} | [[Category:Apple TV games]] | }}
+
{{#switch:{{#var:type}}
 
+
| 0=
| }}
+
| 1=
 
+
| 2=
<!-- Accessories -->
+
}}
{{#ifeq: {{#var:type}} | 1 |  | }}
 
 
 
<!-- 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>

Revision as of 16:10, 31 August 2018

See Template:Releases/Usage for how to use.