Actions

Template

Difference between revisions of "ReleasesiOS"

From Sega Retro

 
(7 intermediate revisions by 2 users not shown)
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_uk|?}}} {{{ios_rrp_eu|?}}}|{{{ios_code_eu|?}}}}}
 
{{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|{{{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_uk|?}}} {{{ipad_rrp_eu|?}}}|{{{ipad_code_eu|?}}}|type=iPad}}
 
|-
 
| 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_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
 +
  |sf=[[Sega Forever]][[Category:Sega Forever games]]
 +
  |{{#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|}}} | [[Category:iPad games]] | }}
+
{{incvar|j}}
 
+
}}
| }}
+
{{incvar|i}}
 
+
}}
<!-- Accessories -->
+
{{#switch:{{#var:type}}
{{#ifeq: {{#var:type}} | 1 |  | }}
+
| 0=
 
+
| 1=
<!-- Consoles -->
+
| 2=
{{#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 17:29, 31 August 2018

See Template:Releases/Usage for how to use.