Difference between revisions of "GenreCatNav"

From Sega Retro

(because bold shoot-'em-up stretches things)
Line 7: Line 7:
 
demo discs,Notavailable.svg,Demo Disc;
 
demo discs,Notavailable.svg,Demo Disc;
 
educational games,Genre edu.svg,Educational;
 
educational games,Genre edu.svg,Educational;
fighting games,Notavailable.svg,Fighting;
+
fighting games,Genre fighting.png,Fighting;
 
miscellaneous software,Notavailable.svg,Misc.;
 
miscellaneous software,Notavailable.svg,Misc.;
 
puzzle games,Genre puzzle.svg,Puzzle;
 
puzzle games,Genre puzzle.svg,Puzzle;
 
RPGs,Genre rpg.svg,RPG;
 
RPGs,Genre rpg.svg,RPG;
 
racing games,Genre racing.svg,Racing;
 
racing games,Genre racing.svg,Racing;
shoot-'em-up games,Genre shmup.svg,Shoot-'em-Up;
+
shoot-'em-up games,Genre shmup.svg,Shooting;
 
simulation games,Genre simulation.svg,Simulation;
 
simulation games,Genre simulation.svg,Simulation;
 
sports games,Genre sports.svg,Sport;
 
sports games,Genre sports.svg,Sport;
table games,Notavailable.svg,Table
+
table games,Genre home.png,Table
 
}}{{#vardefine:i|0}}{{#vardefine:j|0}}{{#while:  
 
}}{{#vardefine:i|0}}{{#vardefine:j|0}}{{#while:  
 
| {{#ifexpr: {{#len:{{#explode:{{#var:catdata}}|;|{{#var:i}}}}}} > 0 | true }}
 
| {{#ifexpr: {{#len:{{#explode:{{#var:catdata}}|;|{{#var:i}}}}}} > 0 | true }}

Revision as of 16:15, 22 August 2020

Usage

{{GenreCatNav|system}}

Examples

{{GenreCatNav|Mega Drive}}

becomes

and

{{GenreCatNav|Saturn}}

becomes