Difference between revisions of "ReleasesHC"

From Sega Retro

m (Text replacement - "0=\[\[Category:(.*) games\]\]" to "0=Category:$1 games{{genre2cat|$1|notsega=yes}}")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:syslist|amiga,st,cpc,c64,spectrum,apple2,a8b,bbc,c16,vic20,ti99,dos,msx,dragon,trs,trscoco,adam,macsystem1,macsystem6,ts1000,mo5}}{{#vardefine:rgnlist|{{Template:Regions/Classic}}}}{{clearvar|retail}}{{#vardefine:year|9999}}
+
<includeonly>{{#vardefine:sysmatch|}}{{#vardefine:syslist|amiga,st,cpc,c64,spectrum,dos,msx,apple2,a8b,bbc,c16,vic20,ti99,dragon,trs,trscoco,adam,macsystem1,macsystem6,ts1000,mo5}}{{#vardefine:rgnlist|{{Template:Regions/Classic}}}}{{clearvar|retail}}{{#vardefine:year|9999}}
 
{{#vardefine:i|0}}{{#while:
 
{{#vardefine:i|0}}{{#while:
 
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
 
| {{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
Line 32: Line 32:
 
{{#if:{{#var:sysmatch}}|{{#vardefine:formatfull|{{Code2Format|{{#var:sys}}}}}}
 
{{#if:{{#var:sysmatch}}|{{#vardefine:formatfull|{{Code2Format|{{#var:sys}}}}}}
 
{{#switch:{{#var:type}}
 
{{#switch:{{#var:type}}
| 0=[[Category:{{#var:formatfull}} games]]{{#ifeq:{{#var:year}}|9999||[[Category:{{#var:year}} {{#var:formatfull}} games]][[Category:All {{#var:year}} games]]}}
+
| 0=[[Category:{{#var:formatfull}} games]]{{genre2cat|{{#var:formatfull}}|notsega=yes}}{{ReleasesYearCheck|{{#var:year}}|{{#var:formatfull}}}}
 
| 1=
 
| 1=
 
| 2=
 
| 2=

Latest revision as of 05:43, 15 July 2024


See Template:Releases/Usage for how to use. Japanese home computers have been moved to Template:ReleasesHCJP.