Difference between revisions of "Genre2num"

From Sega Retro

m
 
(34 intermediate revisions by 5 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}} }}
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Action | {{#vardefine:genre|1}} }}
+
{{#if: {{#pos:{{{1}}}|Edu}} | {{#vardefine:genre_education|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|11}} | Educational | {{#vardefine:genre|2}} }}
+
{{#if: {{#pos:{{{1}}}|Puzzle}} | {{#vardefine:genre_puzzle|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Puzzle | {{#vardefine:genre|3}} }}
+
{{#if: {{#pos:{{{1}}}|RPG}} | {{#vardefine:genre_rpg|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|3}} | RPG | {{#vardefine:genre|4}} }}
+
{{#if: {{#pos:{{{1}}}|Role}} | {{#vardefine:genre_rpg|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|4}} | Role | {{#vardefine:genre|4}} }}
+
{{#if: {{#pos:{{{1}}}|Racing}} | {{#vardefine:genre_racing|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|6}} | Racing | {{#vardefine:genre|5}} }}
+
{{#if: {{#pos:{{{1}}}|Driv}} | {{#vardefine:genre_racing|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|7}} | Driving | {{#vardefine:genre|5}} }}
+
{{#if: {{#pos:{{{1}}}|Shoot}} | {{#vardefine:genre_shooting|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Shoot | {{#vardefine:genre|6}} }}
+
{{#if: {{#pos:{{{1}}}|Shmup}} | {{#vardefine:genre_shooting|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Shmup | {{#vardefine:genre|6}} }}
+
{{#if: {{#pos:{{{1}}}|Sport}} | {{#vardefine:genre_sport|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Sport | {{#vardefine:genre|7}} }}
+
{{#if: {{#pos:{{{1}}}|Table}} | {{#vardefine:genre_table|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Table | {{#vardefine:genre|8}} }}
+
{{#if: {{#pos:{{{1}}}|Home}} | {{#vardefine:genre_table|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|9}} | Adventure | {{#vardefine:genre|9}} }}
+
{{#if: {{#pos:{{{1}}}|Family}} | {{#vardefine:genre_table|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|11}} | Compilation | {{#vardefine:genre|10}} }}
+
{{#if: {{#pos:{{{1}}}|Typing}} | {{#vardefine:genre_table|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|3}} | Sim | {{#vardefine:genre|11}} }}
+
{{#if: {{#pos:{{{1}}}|Variety}} | {{#vardefine:genre_table|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|4}} | Misc | {{#vardefine:genre|12}} }}
+
{{#if: {{#pos:{{{1}}}|Adventure}} | {{#vardefine:genre_adventure|1}} }}
{{#ifeq: {{#sub:{{{1}}}|0|5}} | Fight | {{#vardefine:genre|13}} }}
+
{{#if: {{#pos:{{{1}}}|Compilation}} | {{#vardefine:genre_compilation|1}} }}
</div><noinclude>
+
{{#if: {{#pos:{{{1}}}|Sim}} | {{#vardefine:genre_simulation|1}} }}
[[Category:Sega Retro Templates|{{PAGENAME}}]]
+
{{#if: {{#pos:{{{1}}}|Strat}} | {{#vardefine:genre_simulation|1}} }}
</noinclude>
+
{{#if: {{#pos:{{{1}}}|Misc}} | {{#vardefine:genre_misc|1}} }}
 +
{{#if: {{#pos:{{{1}}}|ETC}} | {{#vardefine:genre_misc|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Fight}} | {{#vardefine:genre_fighting|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Arithmetic}} | {{#vardefine:genre_arithmetic|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Ethics}} | {{#vardefine:genre_ethics|1}} }}
 +
{{#if: {{#pos:{{{1}}}|English}} | {{#vardefine:genre_english|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Social}} | {{#vardefine:genre_social|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Athletics}} | {{#vardefine:genre_athletics|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Demo}} | {{#vardefine:genre_demo|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Multi}} | {{#vardefine:genre_multi|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Experience}} | {{#vardefine:genre_experience|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Drawing}} | {{#vardefine:genre_drawing|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Arcade}} | {{#vardefine:genre_arcade|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Card}} | {{#vardefine:genre_card|1}} }}
 +
</div></includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 13:06, 1 January 2022