Difference between revisions of "ReleasesWeb"

From Sega Retro

(Created page with "<includeonly>{{releasesRow|Java|World|{{{java_date_world|}}}| | }} {{releasesRow|Flash|World|{{{flash_date_world|}}}| | }} |- | style="display:none" | <!-- Games --> {{#ifeq:...")
 
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{releasesRow|Java|World|{{{java_date_world|}}}| | }}
+
<includeonly>{{#vardefine:syslist|flash,html5,java,shockwave}}{{#vardefine:rgnlist|{{Regions/Mobile}},world}}{{clearvar|flash|html5|java|shockwave}}{{#vardefine:year|9999}}
{{releasesRow|Flash|World|{{{flash_date_world|}}}| | }}
+
{{#vardefine:i|0}}{{#while:
|-
+
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
| style="display:none" |
+
|  
<!-- Games -->
+
{{#vardefine:j|0}}{{#while:
{{#ifeq: {{#var:type}} | 0 |
+
| {{#vardefine:rgn|{{#explode:{{#var:rgnlist}}|,|{{#var:j}}}}}}{{#var:rgn}}
 +
|  
  
{{#if: {{{java_date_world|}}}{{{flash_date_world|}}} | [[Category:Web-based games]] | }}
+
{{#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}}|flash={{#vardefine:flash|true}}|html5={{#vardefine:html5|true}}|java={{#vardefine:java|true}}|shockwave={{#vardefine:shockwave|true}}}}
 +
{{releasesRowPlus
 +
| console={{#switch:{{#var:sys}}|flash=Flash|html5=HTML5|java=Java|shockwave=Shockwave}}
 +
| region={{#switch:{{#var:rgn}}|world=World|{{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={{#switch:{{#var:typ1}}
 +
  |{{#if:{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{{{{#var:sys}}_type_{{#var:rgn}}{{#var:typ}}|}}}|{{#var:typ1}}}}
 +
  }}
 +
| download=
 +
| rating={{{{{#var:sys}}_rating_{{#var:rgn}}{{#var:typ}}|}}}
 +
}}
 +
}}
  
{{#if: {{{java_date_world|}}} | [[Category:Web-based Java games]] | }}
+
{{incvar|j}}
 
+
}}
{{#if: {{{flash_date_world|}}} | [[Category:Web-based Flash games]] | }}
+
{{incvar|i}}
 
+
}}
| }}
+
{{#switch:{{#var:type}}
 
+
| 0=[[Category:Browser games]]{{#if:{{#var:flash}}|[[Category:Flash browser games]]}}{{#if:{{#var:html5}}|[[Category:HTML5 browser games]]}}{{#if:{{#var:java}}|[[Category:Java browser games]]}}{{#if:{{#var:shockwave}}|[[Category:Shockwave browser games]]}}
<!-- Accessories -->
+
| 1=
{{#ifeq: {{#var:type}} | 1 |  | }}
+
| 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 15:15, 18 August 2021

See Template:Releases/Usage for how to use.