Difference between revisions of "Genre2num"

From Sega Retro

(removed unused code)
Line 1: Line 1:
<div style="display:none">
+
<includeonly><div style="display:none">
{{#vardefine:genre|0}}
 
<includeonly>{{#switch: {{{1}}}
 
| Action =
 
| Adventure =
 
| Arithmetic =
 
| Compilation =
 
| English
 
| Fighting =
 
| Puzzle =
 
| Racing =
 
| RPG =
 
| Shoot-'em-Up = [[Category:Change to Shooting]]
 
| Shooting =
 
| Simulation =
 
| Sports =
 
| Table =
 
| {{#ifeq: {{#sub:{{{1}}}|0|1}} | ? | | [[Category:Genres that need to be looked at]] }}
 
}}
 
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Action | {{#vardefine:genre|1}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|11}} | Educational | {{#vardefine:genre|2}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Puzzle | {{#vardefine:genre|3}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|3}} | RPG | {{#vardefine:genre|4}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|4}} | Role | {{#vardefine:genre|4}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Racing | {{#vardefine:genre|5}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|7}} | Driving | {{#vardefine:genre|5}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Shoot | {{#vardefine:genre|6}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Shmup | {{#vardefine:genre|6}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Sport | {{#vardefine:genre|7}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Table | {{#vardefine:genre|8}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|4}} | Home | {{#vardefine:genre|8}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Family | {{#vardefine:genre|8}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|9}} | Adventure | {{#vardefine:genre|9}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|11}} | Compilation | {{#vardefine:genre|10}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|3}} | Sim | {{#vardefine:genre|11}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Strat | {{#vardefine:genre|11}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|4}} | Misc | {{#vardefine:genre|12}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|3}} | ETC | {{#vardefine:genre|12}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Fight | {{#vardefine:genre|13}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|10}} | Arithmetic | {{#vardefine:genre|14}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Ethics | {{#vardefine:genre|15}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|7}} | English | {{#vardefine:genre|16}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Social | {{#vardefine:genre|17}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|9}} | Athletics | {{#vardefine:genre|18}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|4}} | Demo | {{#vardefine:genre|19}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Multi | {{#vardefine:genre|20}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|10}} | Experience | {{#vardefine:genre|21}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|7}} | Drawing | {{#vardefine:genre|22}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|1}} | ? | {{#vardefine:genre|99}} }}
 
 
{{#if: {{#pos:{{{1}}}|Action}} | {{#vardefine:genre_action|1}} }}
 
{{#if: {{#pos:{{{1}}}|Action}} | {{#vardefine:genre_action|1}} }}
 
{{#if: {{#pos:{{{1}}}|Educational}} | {{#vardefine:genre_education|1}} }}
 
{{#if: {{#pos:{{{1}}}|Educational}} | {{#vardefine:genre_education|1}} }}
Line 61: Line 13:
 
{{#if: {{#pos:{{{1}}}|Home}} | {{#vardefine:genre_table|1}} }}
 
{{#if: {{#pos:{{{1}}}|Home}} | {{#vardefine:genre_table|1}} }}
 
{{#if: {{#pos:{{{1}}}|Family}} | {{#vardefine:genre_table|1}} }}
 
{{#if: {{#pos:{{{1}}}|Family}} | {{#vardefine:genre_table|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Typing}} | {{#vardefine:genre_table|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Variety}} | {{#vardefine:genre_table|1}} }}
 
{{#if: {{#pos:{{{1}}}|Adventure}} | {{#vardefine:genre_adventure|1}} }}
 
{{#if: {{#pos:{{{1}}}|Adventure}} | {{#vardefine:genre_adventure|1}} }}
 
{{#if: {{#pos:{{{1}}}|Compilation}} | {{#vardefine:genre_compilation|1}} }}
 
{{#if: {{#pos:{{{1}}}|Compilation}} | {{#vardefine:genre_compilation|1}} }}
Line 77: Line 31:
 
{{#if: {{#pos:{{{1}}}|Experience}} | {{#vardefine:genre_experience|1}} }}
 
{{#if: {{#pos:{{{1}}}|Experience}} | {{#vardefine:genre_experience|1}} }}
 
{{#if: {{#pos:{{{1}}}|Drawing}} | {{#vardefine:genre_drawing|1}} }}
 
{{#if: {{#pos:{{{1}}}|Drawing}} | {{#vardefine:genre_drawing|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Arcade}} | {{#vardefine:genre_arcade|1}} }}
 
</div></includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude>
 
</div></includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude>

Revision as of 23:24, 24 July 2020