Difference between revisions of "Genre2num"

From Sega Retro

m (Can I expand genre ?)
(added multi-genre feature for future use)
Line 47: Line 47:
 
{{#ifeq: {{#sub:{{{1}}}|0|7}} | Drawing | {{#vardefine:genre|22}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|7}} | Drawing | {{#vardefine:genre|22}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|1}} | ? | {{#vardefine:genre|99}} }}
 
{{#ifeq: {{#sub:{{{1}}}|0|1}} | ? | {{#vardefine:genre|99}} }}
</div></includeonly><noinclude>[[Category:Sega Retro templates|{{PAGENAME}}]]</noinclude>
+
{{#if: {{#pos:{{{1}}}|Action}} | {{#vardefine:genre_action|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Educational}} | {{#vardefine:genre_education|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Puzzle}} | {{#vardefine:genre_puzzle|1}} }}
 +
{{#if: {{#pos:{{{1}}}|RPG}} | {{#vardefine:genre_rpg|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Role}} | {{#vardefine:genre_rpg|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Racing}} | {{#vardefine:genre_racing|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Driving}} | {{#vardefine:genre_racing|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Shoot}} | {{#vardefine:genre_shooting|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Shmup}} | {{#vardefine:genre_shooting|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Sport}} | {{#vardefine:genre_sport|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Table}} | {{#vardefine:genre_table|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Home}} | {{#vardefine:genre_table|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Family}} | {{#vardefine:genre_table|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Adventure}} | {{#vardefine:genre_adventure|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Compilation}} | {{#vardefine:genre_compilation|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Sim}} | {{#vardefine:genre_simulation|1}} }}
 +
{{#if: {{#pos:{{{1}}}|Strat}} | {{#vardefine:genre_simulation|1}} }}
 +
{{#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}} }}
 +
</div></includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude>

Revision as of 12:02, 30 July 2015