Template:Infobox VG: Difference between revisions

no edit summary
(Add turntable controller handling)
No edit summary
Line 23: Line 23:
|{{#if:{{{genre|}}}|{{!}}'''[[:Category:Genres|Genre(s)]]'''{{!!}}{{#regex: {{#regex: {{{genre|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 games|$1]][[Category:$1 games|$1]]$2}}}}
|{{#if:{{{genre|}}}|{{!}}'''[[:Category:Genres|Genre(s)]]'''{{!!}}{{#regex: {{#regex: {{{genre|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 games|$1]][[Category:$1 games|$1]]$2}}}}
|{{#if:{{{mode|{{{modes|}}}}}}|{{!}}'''[[:Category:Game modes|Mode(s)]]'''{{!!}}{{#regex: {{{modes|}}}|/(Single-player{{!}}Multi(-)?player{{!}}Co-op{{!}}Online)/rsi|[[:Category:$1 games|$1]][[Category:$1 games|$1]]$2}}}}
|{{#if:{{{mode|{{{modes|}}}}}}|{{!}}'''[[:Category:Game modes|Mode(s)]]'''{{!!}}{{#regex: {{{modes|}}}|/(Single-player{{!}}Multi(-)?player{{!}}Co-op{{!}}Online)/rsi|[[:Category:$1 games|$1]][[Category:$1 games|$1]]$2}}}}
|{{#if:{{{input|}}}|{{!}}'''[[:Category:Input supported|Input methods]]'''{{!!}}{{#regex: {{{input|}}}|/(Wii Remote{{!}}Nunchu(c)?k{{!}}Dance Pad{{!}}Wii Balance Board{{!}}Nintendo DS{{!}}Game( )?Boy Advance{{!}}uDraw GameTablet{{!}}Wii MotionPlus{{!}}DK Bongos{{!}}(GameCube{{!}}Classic{{!}}Shinkansen{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Turntable) Controller{{!}}Microphone)/rsi|[[:Category:$1 input supported|$1]][[Category:$1 input supported|$1]]$2}}}}
|{{#if:{{{input|}}}|{{!}}'''[[:Category:Input supported|Input methods]]'''{{!!}}{{#regex: {{{input|}}}|/(Wii Remote{{!}}Nunchu(c)?k{{!}}Dance Pad{{!}}Wii Balance Board{{!}}USB Keyboard{{!}}Skylanders Portal{{!}}Nintendo DS{{!}}Game( )?Boy Advance{{!}}uDraw GameTablet{{!}}Wii MotionPlus{{!}}DK Bongos{{!}}(GameCube{{!}}Classic{{!}}Shinkansen{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Turntable{{!}}Ride) Controller{{!}}Microphone)/rsi|[[:Category:$1 input supported|$1]][[Category:$1 input supported|$1]]$2}}}}
|{{!}} '''[[Template:Compatibility|Compatibility]]''' {{!!}} {{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{PAGENAME}}}}
|{{!}} '''[[Template:Compatibility|Compatibility]]''' {{!!}} {{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{PAGENAME}}}}
|{{!}} '''See also...''' {{!!}}
|{{!}} '''See also...''' {{!!}}
Line 41: 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]]}}}}
|}<!--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|}}}|/.*(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]]|}}{{#ifeq:{{#regex:{{{input|}}}|/(((Wii Remote( \+ Nunchuk)?{{!}}Wii MotionPlus( \+ Nunchuk)?){{!}}Nunchuk{{!}}Nintendo DS{{!}}Game Boy Advance{{!}}Game Boy Advance{{!}}Dance Pad{{!}}DK Bongos{{!}}Microphone{{!}}uDraw GameTablet{{!}}Wii Balance Board{{!}}(Classic{{!}}GameCube{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Shinkansen{{!}}Turntable) Controller)(, {{!}}$))*/}}|{{{input|}}}||[[Category:Pages with misformatted inputs]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/((Single-player{{!}}(Multiplayer{{!}}Co-op{{!}}Online) \(\d{1,2}\))(, {{!}}$))*/}}|{{{modes|}}}||[[Category:Pages with misformatted modes of play]]|}}</includeonly><noinclude>
|}<!--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|}}}|/.*(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]]|}}{{#ifeq:{{#regex:{{{input|}}}|/(((Wii Remote( \+ Nunchuk)?{{!}}Wii MotionPlus( \+ Nunchuk)?){{!}}Nunchuk{{!}}Nintendo DS{{!}}USB Keyboard{{!}}Skylanders Portal{{!}}Game Boy Advance{{!}}Game Boy Advance{{!}}Dance Pad{{!}}DK Bongos{{!}}Microphone{{!}}uDraw GameTablet{{!}}Wii Balance Board{{!}}(Classic{{!}}GameCube{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Shinkansen{{!}}Turntable{{!}}Ride) Controller)(, {{!}}$))*/}}|{{{input|}}}||[[Category:Pages with misformatted inputs]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/((Single-player{{!}}(Multiplayer{{!}}Co-op{{!}}Online) \(\d{1,2}\))(, {{!}}$))*/}}|{{{modes|}}}||[[Category:Pages with misformatted modes of play]]|}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>