Template:Infobox VG: Difference between revisions

Clean up input categories a bit
No edit summary
(Clean up input categories a bit)
Line 57: Line 57:


Input categories-->
Input categories-->
{{#ifeq:{{#regex:{{{input|}}}|/.*Wii [Rr]emote.*/|Found}}|Found|[[Category:Wii Remote input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Nunchuk.*/|$1}}|Nunchuk|[[Category:Nunchuk input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Classic [Cc]ontroller.*/|Found}}|Found|[[Category:Classic Controller input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Game[Cc]ube [Cc]ontroller.*/|Found}}|Found|[[Category:GameCube Controller input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Wii Balance Board).*/|$1}}|Wii Balance Board|[[Category:Wii Balance Board input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Shinkansen.*/|Found}}|Found|[[Category:Shinkansen Controller input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*([uU][Dd]raw).*/|Found}}|Found|[[Category:uDraw Tablet input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Nintendo DS).*/|$1}}|Nintendo DS|[[Category:Nintendo DS input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Game[ ]?[Bb]oy Advance.*/|Found}}|Found|[[Category:Game Boy Advance input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Wii Motion[Pp]lus.*/|Found}}|Found|[[Category:Wii MotionPlus input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(DK Bongos).*/|$1}}|DK Bongos|[[Category:DK Bongos input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Drum).*/|$1}}|Drum|[[Category:Drum input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Guitar).*/|$1}}|Guitar|[[Category:Guitar input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Keyboard).*/|$1}}|Keyboard|[[Category:Keyboard input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Microphone).*/|$1}}|Microphone|[[Category:Microphone input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Dance).*/|$1}}|Dance|[[Category:Dance Pad input supported]]|}}<!--
{{#ifeq:{{#regex:{{{input|}}}|/.*Wii [Rr]emote.*/|Found}}|Found|[[Category:Wii Remote input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Nunchuk.*/|Found}}|Found|[[Category:Nunchuk input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Classic [Cc]ontroller.*/|Found}}|Found|[[Category:Classic Controller input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Game[Cc]ube [Cc]ontroller.*/|Found}}|Found|[[Category:GameCube Controller input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Wii Balance Board.*/|Found}}|Found|[[Category:Wii Balance Board input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Shinkansen.*/|Found}}|Found|[[Category:Shinkansen Controller input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*[uU][Dd]raw.*/|Found}}|Found|[[Category:uDraw Tablet input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Nintendo DS.*/|Found}}|Nintendo DS|[[Category:Nintendo DS input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Game[ ]?[Bb]oy Advance.*/|Found}}|Found|[[Category:Game Boy Advance input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Wii Motion[Pp]lus.*/|Found}}|Found|[[Category:Wii MotionPlus input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*DK Bongos.*/|Found}}|Found|[[Category:DK Bongos input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Drum.*/|Found}}|Found|[[Category:Drum input supported]]|}}
{{#ifeq:{{#regex:{{{input|}}}|/.*Guitar.*/|$1}}|Found|[[Category:Guitar input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Keyboard.*/|$1}}|Found|[[Category:Keyboard input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Microphone.*/|$1}}|Found|[[Category:Microphone input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Dance.*/|$1}}|Found|[[Category:Dance Pad input supported]]|}}<!--


Genre categories (up to 16)-->{{#if:{{{genre|}}}|<!--1st-->{{#regex: {{{genre|}}}|/([^,]*).*/r|[[Category:$1 games]]|1}}<!--2nd-->{{#regex: {{{genre|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--3rd-->{{#regex: {{{genre|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--4th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){3}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--5th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){4}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--6th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){5}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--7th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){6}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--8th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){7}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--9th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){8}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--10th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){9}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--11th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){10}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--12th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){11}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--13th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){12}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--14th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){13}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--15th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){14}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--16th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){15}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}}}<!--
Genre categories (up to 16)-->{{#if:{{{genre|}}}|<!--1st-->{{#regex: {{{genre|}}}|/([^,]*).*/r|[[Category:$1 games]]|1}}<!--2nd-->{{#regex: {{{genre|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--3rd-->{{#regex: {{{genre|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--4th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){3}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--5th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){4}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--6th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){5}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--7th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){6}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--8th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){7}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--9th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){8}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--10th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){9}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--11th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){10}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--12th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){11}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--13th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){12}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--14th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){13}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--15th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){14}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--16th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){15}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}}}<!--