Difference between revisions of "GenreCatNav"

From Sega Retro

Line 9: Line 9:
 
#if:{{#pos:{{PAGENAME}}|RPGs}}|RPGs|{{
 
#if:{{#pos:{{PAGENAME}}|RPGs}}|RPGs|{{
 
#if:{{#pos:{{PAGENAME}}|racing}}|racing|{{
 
#if:{{#pos:{{PAGENAME}}|racing}}|racing|{{
#if:{{#pos:{{PAGENAME}}|shoot-'em-up}}|shoot-'em-up|{{
+
#if:{{#pos:{{PAGENAME}}|shoot}}|shoot|{{
 
#if:{{#pos:{{PAGENAME}}|simulation}}|simulation|{{
 
#if:{{#pos:{{PAGENAME}}|simulation}}|simulation|{{
 
#if:{{#pos:{{PAGENAME}}|sports}}|sports|{{
 
#if:{{#pos:{{PAGENAME}}|sports}}|sports|{{
Line 23: Line 23:
 
|RPGs={{#vardefine:icon|Genre rpg.svg}}{{#vardefine:category|RPGs}}
 
|RPGs={{#vardefine:icon|Genre rpg.svg}}{{#vardefine:category|RPGs}}
 
|racing={{#vardefine:icon|Genre racing.svg}}{{#vardefine:category|racing games}}
 
|racing={{#vardefine:icon|Genre racing.svg}}{{#vardefine:category|racing games}}
|shoot-'em-up={{#vardefine:icon|Genre shmup.svg}}{{#vardefine:category|shoot-'em-up games}}
+
|shoot={{#vardefine:icon|Genre shmup.svg}}{{#vardefine:category|shoot-'em-up games}}
 
|simulation={{#vardefine:icon|Genre simulation.svg}}{{#vardefine:category|simulation games}}
 
|simulation={{#vardefine:icon|Genre simulation.svg}}{{#vardefine:category|simulation games}}
 
|sports={{#vardefine:icon|Genre sports.svg}}{{#vardefine:category|sports games}}
 
|sports={{#vardefine:icon|Genre sports.svg}}{{#vardefine:category|sports games}}

Revision as of 07:13, 1 July 2022

Genre action.svg

Usage

{{GenreCatNav|system}}

Examples

{{GenreCatNav|Mega Drive}}

becomes

Genre action.svg

and

{{GenreCatNav|Saturn}}

becomes

Genre action.svg