Difference between revisions of "Genre2num"

From Sega Retro

 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="display:none">
+
<includeonly><div style="display:none">
{{#vardefine:genre|0}}
+
{{#if: {{#pos:{{{1}}}|Action}} | {{#vardefine:genre_action|1}} }}
<includeonly>{{#switch: {{{1}}}
+
{{#if: {{#pos:{{{1}}}|Edu}} | {{#vardefine:genre_education|1}} }}
| Action =
+
{{#if: {{#pos:{{{1}}}|Puzzle}} | {{#vardefine:genre_puzzle|1}} }}
| Adventure =
+
{{#if: {{#pos:{{{1}}}|RPG}} | {{#vardefine:genre_rpg|1}} }}
| Arithmetic =
+
{{#if: {{#pos:{{{1}}}|Role}} | {{#vardefine:genre_rpg|1}} }}
| English
+
{{#if: {{#pos:{{{1}}}|Racing}} | {{#vardefine:genre_racing|1}} }}
| Fighting =
+
{{#if: {{#pos:{{{1}}}|Driv}} | {{#vardefine:genre_racing|1}} }}
| Puzzle =
+
{{#if: {{#pos:{{{1}}}|Shoot}} | {{#vardefine:genre_shooting|1}} }}
| Racing =
+
{{#if: {{#pos:{{{1}}}|Shmup}} | {{#vardefine:genre_shooting|1}} }}
| RPG =
+
{{#if: {{#pos:{{{1}}}|Sport}} | {{#vardefine:genre_sport|1}} }}
| Shoot-'em-Up = [[Category:Change to Shooting]]
+
{{#if: {{#pos:{{{1}}}|Table}} | {{#vardefine:genre_table|1}} }}
| Shooting =
+
{{#if: {{#pos:{{{1}}}|Home}} | {{#vardefine:genre_table|1}} }}
| Simulation =
+
{{#if: {{#pos:{{{1}}}|Family}} | {{#vardefine:genre_table|1}} }}
| Sports =
+
{{#if: {{#pos:{{{1}}}|Typing}} | {{#vardefine:genre_table|1}} }}
| Table =
+
{{#if: {{#pos:{{{1}}}|Variety}} | {{#vardefine:genre_table|1}} }}
| {{#ifeq: {{#sub:{{{1}}}|0|1}} | ? | | [[Category:Genres that need to be looked at]] }}
+
{{#if: {{#pos:{{{1}}}|Adventure}} | {{#vardefine:genre_adventure|1}} }}
}}</includeonly>
+
{{#if: {{#pos:{{{1}}}|Compilation}} | {{#vardefine:genre_compilation|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Action | {{#vardefine:genre|1}} }}
+
{{#if: {{#pos:{{{1}}}|Sim}} | {{#vardefine:genre_simulation|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|11}} | Educational | {{#vardefine:genre|2}} }}
+
{{#if: {{#pos:{{{1}}}|Strat}} | {{#vardefine:genre_simulation|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Puzzle | {{#vardefine:genre|3}} }}
+
{{#if: {{#pos:{{{1}}}|Misc}} | {{#vardefine:genre_misc|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|3}} | RPG | {{#vardefine:genre|4}} }}
+
{{#if: {{#pos:{{{1}}}|ETC}} | {{#vardefine:genre_misc|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|4}} | Role | {{#vardefine:genre|4}} }}
+
{{#if: {{#pos:{{{1}}}|Fight}} | {{#vardefine:genre_fighting|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Racing | {{#vardefine:genre|5}} }}
+
{{#if: {{#pos:{{{1}}}|Arithmetic}} | {{#vardefine:genre_arithmetic|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|7}} | Driving | {{#vardefine:genre|5}} }}
+
{{#if: {{#pos:{{{1}}}|Ethics}} | {{#vardefine:genre_ethics|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Shoot | {{#vardefine:genre|6}} }}
+
{{#if: {{#pos:{{{1}}}|English}} | {{#vardefine:genre_english|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Shmup | {{#vardefine:genre|6}} }}
+
{{#if: {{#pos:{{{1}}}|Social}} | {{#vardefine:genre_social|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Sport | {{#vardefine:genre|7}} }}
+
{{#if: {{#pos:{{{1}}}|Athletics}} | {{#vardefine:genre_athletics|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Table | {{#vardefine:genre|8}} }}
+
{{#if: {{#pos:{{{1}}}|Demo}} | {{#vardefine:genre_demo|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|4}} | Home | {{#vardefine:genre|8}} }}
+
{{#if: {{#pos:{{{1}}}|Multi}} | {{#vardefine:genre_multi|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Family | {{#vardefine:genre|8}} }}
+
{{#if: {{#pos:{{{1}}}|Experience}} | {{#vardefine:genre_experience|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|9}} | Adventure | {{#vardefine:genre|9}} }}
+
{{#if: {{#pos:{{{1}}}|Drawing}} | {{#vardefine:genre_drawing|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|11}} | Compilation | {{#vardefine:genre|10}} }}
+
{{#if: {{#pos:{{{1}}}|Arcade}} | {{#vardefine:genre_arcade|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|3}} | Sim | {{#vardefine:genre|11}} }}
+
{{#if: {{#pos:{{{1}}}|Card}} | {{#vardefine:genre_card|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Strat | {{#vardefine:genre|11}} }}
+
</div></includeonly><noinclude>[[Category:Templates]]</noinclude>
{{#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|8}} | Social| {{#vardefine:genre|17}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|1}} | ? | {{#vardefine:genre|99}} }}
 
</div><noinclude>
 
[[Category:Sega Retro templates|{{PAGENAME}}]]
 
</noinclude>
 

Latest revision as of 13:06, 1 January 2022