Template:Infobox VG: Difference between revisions

Jump to navigation Jump to search
(Regional developer/publisher links, now need to look into reducing down some of the craziness here.)
(Significantly simplified various regex related calls, I think I'm finally done with these edits. Hooray inner-infobox links and logic simplification.)
Line 10: Line 10:
|es=background:#f0f0f0;
|es=background:#f0f0f0;
|{{#if:{{{channeltype|}}}| {{!}} '''Type''' {{!!}} {{{channeltype|}}}}}
|{{#if:{{{channeltype|}}}| {{!}} '''Type''' {{!!}} {{{channeltype|}}}}}
|{{#if:{{{developer|}}}|{{!}}'''Developer(s)'''{{!!}}{{#ifeq:{{#regex:{{{developer|}}}|/>/rs|}}||
|{{#if:{{{developer|}}}|{{!}}'''Developer(s)'''{{!!}}{{#ifeq:{{#regex:{{{developer|}}}|/>/rs|}}||
<!--1st-->{{#regex:{{{developer|}}}|/([^,]*).*/rs|[[:Category:Developed by $1|$1]]|1}}<!--2nd-->{{#regex:{{{developer|}}}|/[^,]*,([^,]*)(,.*)?/rs|,[[:Category:Developed by $1|$1]]|1}}<!--3rd-->{{#regex:{{{developer|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|,[[:Category:Developed by $1|$1]]|1}}|{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}AUS{{!}}KO{{!}}RUS).*?>.*?>\s*([^\[]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:Developed by $1|$1]]}}}}
<!--List-->{{#regex:{{{developer|}}}|/([^,]+)(,? ?)/rs|[[:Category:Developed by $1|$1]][[Category:Developed by $1|$1]]$2}}|
<!--Regional List-->{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}AUS{{!}}KO{{!}}RUS).*?>.*?>\s*([^\[]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:Developed by $1|$1]][[Category:Developed by $1|$1]]}}}}
}}
}}
|{{#if:{{{publisher|}}}|{{!}}'''Publisher(s)'''{{!!}}{{#ifeq:{{#regex:{{{publisher|}}}|/>/rs|}}||
|{{#if:{{{publisher|}}}|{{!}}'''Publisher(s)'''{{!!}}{{#ifeq:{{#regex:{{{publisher|}}}|/>/rs|}}||
<!--1st-->{{#regex:{{{publisher|}}}|/([^,]*).*/rs|[[:Category:Published by $1|$1]]|1}}<!--2nd-->{{#regex:{{{publisher|}}}|/[^,]*,([^,]*)(,.*)?/rs|,[[:Category:Published by $1|$1]]|1}}<!--3rd-->{{#regex:{{{publisher|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|,[[:Category:Published by $1|$1]]|1}}|{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}AUS{{!}}KO{{!}}RUS).*?>.*?>\s*([^\[]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:Published by $1|$1]]}}}}
<!--List-->{{#regex:{{{publisher|}}}|/([^,]+)(,? ?)/rs|[[:Category:Published by $1|$1]][[Category:Published by $1|$1]]$2}}|
<!--Regional List-->{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}AUS{{!}}KO{{!}}RUS).*?>.*?>\s*([^\[]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:Published by $1|$1]][[Category:Published by $1|$1]]}}}}
}}
}}
 
|{{#if:{{{series|}}}|{{!}} '''*Series''' {{!!}}{{#regex: {{#regex: {{{series|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 series|$1]][[Category:$1 series|$1]]$2}}}}
|<!--Series Category Links (up to 3)-->{{#if:{{{series|}}}|{{!}} '''Series''' {{!!}}<!--1st-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/([^,]*).*/rs|[[:Category:$1 series|$1]]|1}}<!--2nd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/[^,]*,([^,]*)(,.*)?/rs|, [[:Category:$1 series|$1]]|1}}<!--3rd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|, [[:Category:$1 series|$1]]|1}}}}
 
|{{#if:{{{platform|{{{platforms|}}}}}}| {{!}} '''Platform(s)''' {{!!}} {{{platform|{{{platforms|}}}}}}}}
|{{#if:{{{platform|{{{platforms|}}}}}}| {{!}} '''Platform(s)''' {{!!}} {{{platform|{{{platforms|}}}}}}}}
|{{#if:{{{released|{{{release|}}}}}}| {{!}} {{nowrap|'''Release date(s)'''}} {{!!}} {{{released|{{{release}}}}}}}}
|{{#if:{{{released|{{{release|}}}}}}| {{!}} {{nowrap|'''Release date(s)'''}} {{!!}} {{{released|{{{release}}}}}} {{#regex: {{{released|}}}|/.*?(\d\d\d\d).*/rs|[[Category:Initial release $1]]|1}}}}
 
|{{#if:{{{genre|}}}|{{!}}'''Genre(s)'''{{!!}}{{#regex: {{#regex: {{{genre|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 games|$1]][[Category:$1 games|$1]]$2}}}}
|<!--Genre category links (up to 16)-->{{#if:{{{genre|}}}|{{!}}'''Genre(s)'''{{!!}}<!--1st-->{{#regex: {{{genre|}}}|/([^,]*).*/rs|[[:Category:$1 games|$1]]|1}}<!--2nd-->{{#regex: {{{genre|}}}|/[^,]*,([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--3rd-->{{#regex: {{{genre|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--4th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){3}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--5th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){4}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--6th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){5}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--7th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){6}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--8th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){7}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--9th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){8}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--10th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){9}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}
|{{#if:{{{mode|{{{modes|}}}}}}|{{!}}'''Mode(s)'''{{!!}}{{#regex: {{{modes|}}}|/(Single-player{{!}}Multi(-)?player{{!}}Co-op{{!}}Online)/rsi|[[:Category:$1 games|$1]][[Category:$1 games|$1]]$2}}}}
<!--11th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){10}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--12th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){11}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--13th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){12}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--14th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){13}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--15th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){14}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}<!--16th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){15}([^,]*)(,.*)?/rs|, [[:Category:$1 games|$1]]|1}}}}
|{{#if:{{{input|}}}|{{!}}'''Input methods'''{{!!}}{{#regex: {{{input|}}}|/(Wii Remote{{!}}Nunchu(c)?k{{!}}GameCube Controller{{!}}Classic Controller{{!}}Dance Pad{{!}}Wii Balance Board{{!}}Shinkansen{{!}}Nintendo DS{{!}}Game( )?Boy Advance{{!}}uDraw{{!}}Wii Motion Plus{{!}}DK Bongos{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Microphone)/rsi|[[:Category:$1 input supported|$1]][[Category:$1 input supported|$1]]$2}}}}
 
|<!--Gameplay mode category links-->{{#if:{{{mode|{{{modes|}}}}}}|{{!}}'''Mode(s)'''{{!!}}{{#ifeq:{{#regex:{{{modes|}}}|/.*[Ss]ingle.*/|Single-player}}|Single-player|[[:Category:Single-player games|Single-player]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*[Mm]ultiplayer.*/|Multiplayer}}|Multiplayer|{{#ifeq:{{#regex:{{{modes|}}}|/.*[Ss]ingle.*/|Prior}}|Prior|, |}} [[:Category:Multiplayer games|Multiplayer]]{{#regex:{{{modes|}}}|/.*[Mm]ultiplayer([^,]*).*/|$1}}|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*[Cc]o-[oO]p.*/|Co-op}}|Co-op|{{#ifeq:{{#regex:{{{modes|}}}|/.*([Ss]ingle{{!}}[Mm]ultiplayer).*/|Prior}}|Prior|, |}} [[:Category:Co-op games|Co-op]]{{#regex:{{{modes|}}}|/.*[Cc]o-op([^,]*).*/|$1}}|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*[Oo]nline.*/|Online}}|Online|{{#ifeq:{{#regex:{{{modes|}}}|/.*([Ss]ingle{{!}}[Mm]ultiplayer{{!}}[Cc]o-op).*/|Prior}}|Prior|, |}} [[:Category:Online games|Online]]{{#regex:{{{modes|}}}|/.*[Oo]nline([^,]*).*/|$1}}|}}}}
 
|<!--Should output category links here, but complicated by + syntax-->{{#if:{{{input|}}}| {{!}} '''Input methods''' {{!!}} {{{input|}}}}}
|{{!}} '''Compatibility''' {{!!}} {{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{PAGENAME}}}}
|{{!}} '''Compatibility''' {{!!}} {{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{PAGENAME}}}}
|{{!}} '''See also...''' {{!!}}
|{{!}} '''See also...''' {{!!}}
Line 47: Line 41:
[[google:{{#regex:{{PAGENAME}}|/\s/|+}}|Search Google]]<br />
[[google:{{#regex:{{PAGENAME}}|/\s/|+}}|Search Google]]<br />
{{#if:{{{wikipedia|}}}|[[wikipedia:{{{wikipedia|}}}|Wikipedia page]]|[[wikipedia:{{PAGENAME}}|Search Wikipedia]]}}}}
{{#if:{{{wikipedia|}}}|[[wikipedia:{{{wikipedia|}}}|Wikipedia page]]|[[wikipedia:{{PAGENAME}}|Search Wikipedia]]}}}}
<!--Translations broken since migration to HTTPS as Google Translate doesn't support HTTPS pages.
|}<!--Data Quality Categories-->
<ul id="nav"><li><span class="plainlinks" style="margin-left: 5px;">Translations <span style="font-size:80%;">▼</span></span><ul><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=zh-CN&u={{canonicalurl:{{FULLPAGENAME}}}} 中文(中国)]</span> <span style="margin: 2px;">[[File:CN.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=cs&u={{canonicalurl:{{FULLPAGENAME}}}} Česky]</span> <span style="margin: 2px;">[[File:CS.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=es&u={{canonicalurl:{{FULLPAGENAME}}}} Español]</span><span style="margin: 2px;">[[File:ES.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=de&u={{canonicalurl:{{FULLPAGENAME}}}} Deutsch]</span> <span style="margin: 2px;">[[File:DE.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=fa&u={{canonicalurl:{{FULLPAGENAME}}}} ﻑﺍﺮﺳی]</span> <span style="margin: 2px;">[[File:FA.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=fr&u={{canonicalurl:{{FULLPAGENAME}}}} Français]</span> <span style="margin: 2px;">[[File:FR.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=ja&u={{canonicalurl:{{FULLPAGENAME}}}} 日本語]</span> <span style="margin: 2px;">[[File:JP.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=ko&u={{canonicalurl:{{FULLPAGENAME}}}} 한국어]</span> <span style="margin: 2px;">[[File:KO.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=nl&u={{canonicalurl:{{FULLPAGENAME}}}} Nederlands]</span> <span style="margin: 2px;">[[File:NL.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=pl&u={{canonicalurl:{{FULLPAGENAME}}}} Polski]</span> <span style="margin: 2px;">[[File:PL.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=pt&u={{canonicalurl:{{FULLPAGENAME}}}} Português]</span> <span style="margin: 2px;">[[File:PT.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=ru&u={{canonicalurl:{{FULLPAGENAME}}}} Русский]</span> <span style="margin: 2px;">[[File:RU.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=sv&u={{canonicalurl:{{FULLPAGENAME}}}} Svenska]</span> <span style="margin: 2px;">[[File:SV.png|22px|link=]]</span></span><li><span class="plainlinks"><span style="position: absolute; margin-left: 28px;">[http://translate.google.com/translate?sl=en&tl=tr&u={{canonicalurl:{{FULLPAGENAME}}}} Türkçe]</span> <span style="margin: 2px;">[[File:TK.png|22px|link=]]</span></span></li></ul></ul>
{{#ifeq:{{#regex:{{{modes|}}}|/.*(Single-Player).*/|$1}}|Single-Player|[[Category:Game pages with mis-capitalized Single-player]]|}}
-->
{{#if:{{{compatibility|}}}|[[Category:Pages with an un-needed compatibility param in InfoBox]]|}}
|}<!--
{{#if:{{{released|}}}{{{release|}}}||[[Category:Game pages without release date(s)]]}}
 
{{#if:{{{forumlink|}}}||[[Category:Game pages without Dolphin forum link]]}}
Data Quality Categories-->{{#ifeq:{{#regex:{{{modes|}}}|/.*(Single-Player).*/|$1}}|Single-Player|[[Category:Game pages with mis-capitalized Single-player]]|}}{{#if:{{{compatibility|}}}|[[Category:Pages with an un-needed compatibility param in InfoBox]]|}}{{#if:{{{released|}}}{{{release|}}}||[[Category:Game pages without release date(s)]]}}{{#if:{{{forumlink|}}}||[[Category:Game pages without Dolphin forum link]]}}{{#if:{{{genre|}}}||[[Category:Game pages without genre]]}}{{#if:{{{modes|}}}||{{#ifeq:{{{genre|}}}|Utility||[[Category:Game pages without modes of play]]}}}}{{#if:{{{input|}}}||[[Category:Game pages without possible inputs]]}}{{#if: {{{series|}}}|{{#if:{{#regex: {{{series|}}}|/''/rs||1}}||[[Category:Game pages with non-italic series]]}}}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Gamecube).*/|$1}}|Gamecube|[[Category:Game page with improperly capitalized inputs]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(controller).*/|$1}}|controller|[[Category:Game page with improperly capitalized inputs]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(wii).*/|$1}}|wii|[[Category:Game page with improperly capitalized inputs]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Balance board).*/|$1}}|Balance board|[[Category:Game page with improperly capitalized inputs]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(nunchuk).*/|$1}}|nunchuk|[[Category:Game page with improperly capitalized inputs]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(balance board).*/|$1}}|balance board|[[Category:Game page with improperly capitalized inputs]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Wiimote).*/|$1}}|Wiimote|[[Category:Game page with Wiimote rather than Wii Remote]]|}}<!--
{{#if:{{{genre|}}}||[[Category:Game pages without genre]]}}
 
{{#if:{{{modes|}}}||{{#ifeq:{{{genre|}}}|Utility||[[Category:Game pages without modes of play]]}}}}
Developer categories-->{{#if:{{{developer|}}}|{{#ifeq:{{#regex:{{{developer|}}}|/>/rs|}}||<!--1st-->{{#regex:{{{developer|}}}|/([^,]*).*/rs|[[Category:Developed by $1]]|1}}<!--2nd-->{{#regex:{{{developer|}}}|/[^,]*,([^,]*)(,.*)?/rs|[[Category:Developed by $1]]|1}}<!--3rd-->{{#regex:{{{developer|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|[[Category:Developed by $1]]|1}}|<!--NA-->{{#regex:{{{developer|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|[[Category:Developed by $1]]|1}}<!--EU-->{{#regex:{{{developer|}}}|/.*?EU.*?>.*?>([^/[]*).*/r|[[Category:Developed by $1]]|1}}<!--JP-->{{#regex:{{{developer|}}}|/.*?JP.*?>.*?>([^/[]*).*/r|[[Category:Developed by $1]]|1}}<!--AUS-->{{#regex:{{{developer|}}}|/.*?AUS.*?>.*?>([^/[]*).*/r|[[Category:Developed by $1]]|1}}}}}}<!--
{{#if:{{{input|}}}||[[Category:Game pages without possible inputs]]}}
 
{{#if:{{{series|}}}|{{#if:{{#regex: {{{series|}}}|/''/rs||1}}||[[Category:Game pages with non-italic series]]}}}}
Publisher categories: regional ones are outputting as text rather than as categories for some reason, seems to have something to do with the replacement used.-->{{#if:{{{publisher|}}}|{{#ifeq:{{#regex:{{{publisher|}}}|/>/rs|}}||<!--1st-->{{#regex:{{{publisher|}}}|/([^,]*).*/rs|[[Category:Published by $1]]|1}}<!--2nd-->{{#regex:{{{publisher|}}}|/[^,]*,([^,]*)(,.*)?/rs|[[Category:Published by $1]]|1}}<!--3rd-->{{#regex:{{{publisher|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|[[Category:Published by]]|1}}|<!--NA-->{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|[[Category:Published by $1]]|1}}<!--EU-->{{#regex:{{{publisher|}}}|/.*?EU.*?>.*?>\s*([^\[]*).*/r|[[Category:Published by $1]]|1}}<!--JP-->{{#regex:{{{publisher|}}}|/.*?JP.*?>.*?>\s*([^\[]*).*/r|[[Category:Published by $1]]|1}}<!--AUS-->{{#regex:{{{publisher|}}}|/.*?AUS.*?>.*?>\s*([^\[]*).*/r|[[Category:Published by $1]]|1}}}}}}<!--
{{#ifeq:{{#regex:{{{input|}}}|/.*(game{{!}}cube{{!}}controller{{!}}wii{{!}}balance{{!}}board{{!}}nunchuk).*/|Found}}|Found|[[Category:Game page with improperly capitalized inputs]]|}}
 
{{#ifeq:{{#regex:{{{input|}}}|/.*(Wiimote).*/|$1}}|Wiimote|[[Category:Game page with Wiimote rather than Wii Remote]]|}}</includeonly><noinclude>
Gameplay mode categories-->{{#ifeq:{{#regex:{{{modes|}}}|/.*[Mm]ultiplayer.*/|Found}}|Found|[[Category:Multiplayer games]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*[Cc]o-[oO]p.*/|Found}}|Found|[[Category:Multiplayer games]][[Category:Co-op games]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*[Ss]ingle-[pP]layer.*/|Found}}|Found|[[Category:Single-player games]]{{#ifeq:{{#regex:{{{modes|}}}|/[Ss]ingle-[pP]layer/|Single-player}}|Single-Player|[[Category:Single-player only games]]|}}|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*[Oo]nline.*/|Found}}|Found|[[Category:Online games]]|}}<!--
 
Input categories-->
{{#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|}}}|/([^,]*).*/rs|[[Category:$1 games]]|1}}<!--2nd-->{{#regex: {{{genre|}}}|/[^,]*,([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--3rd-->{{#regex: {{{genre|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--4th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){3}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--5th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){4}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--6th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){5}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--7th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){6}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--8th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){7}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--9th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){8}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--10th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){9}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--11th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){10}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--12th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){11}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--13th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){12}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--14th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){13}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--15th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){14}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}<!--16th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){15}([^,]*)(,.*)?/rs|[[Category:$1 games]]|1}}}}<!--
 
Series Categories (up to 3)-->{{#if:{{{series|}}}|<!--1st-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/([^,]*).*/rs|[[Category:$1 series]]|1}}<!--2nd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/[^,]*,([^,]*)(,.*)?/rs|[[Category:$1 series]]|1}}<!--3rd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|[[Category:$1 series]]|1}}}}<!--
 
Initial release year category (presumes appropriate date order)-->{{#regex: {{{released|}}}|/.*?(\d\d\d\d).*/rs|[[Category:Initial release $1]]|1}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>