Template:Infobox VG/sandbox: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
|{{#if:{{{genre|}}}|{{!}}'''Genre(s)'''{{!!}}{{#regex: {{#regex: {{{genre|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 games|$1]][[Category:$1 games|$1]]$2}}}}
|{{#if:{{{genre|}}}|{{!}}'''Genre(s)'''{{!!}}{{#regex: {{#regex: {{{genre|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 games|$1]][[Category:$1 games|$1]]$2}}}}
|{{#if:{{{mode|{{{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|}}}}}}|{{!}}'''Mode(s)'''{{!!}}{{#regex: {{{modes|}}}|/(Single-player{{!}}Multi(-)?player{{!}}Co-op{{!}}Online)/rsi|[[:Category:$1 games|$1]][[Category:$1 games|$1]]$2}}}}
|<!--Should output input links here, but complicated by + syntax-->{{#if:{{{input|}}}| {{!}} '''Input methods''' {{!!}} {{{input|}}}}}
|{{#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 games|$1]][[Category:$1 input supported|$1]]$2}}}}
|{{#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 games|$1]][[Category:$1 input supported|$1]]$2}}}}
|{{!}} '''Compatibility''' {{!!}} {{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{PAGENAME}}}}
|{{!}} '''Compatibility''' {{!!}} {{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{PAGENAME}}}}
|{{!}} '''See also...''' {{!!}}
|{{!}} '''See also...''' {{!!}}
Line 44: 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-->{{#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]]|}}</includeonly><noinclude>
<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>
-->
|}<!--
 
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]]|}}<!--
 
Input categories-->
{{#ifeq:{{#regex:{{{input|}}}|/.*Wii [Rr]emote.*/|Found}}|Found|[[Category:Wii Remote input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*C.*/|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]]|}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>