Template:Infobox VG/sandbox: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 18: Line 18:
<!--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]]}}}}
<!--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]]$2}}}}
|{{#if:{{{series|}}}|{{!}} '''*Series''' {{!!}}{{#regex: {{#regex: {{{series|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 series|$1]][[Category:$1 series|$1]]$2}}}}
|{{#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}}<!--Initial release year category (presumes appropriate date order)-->{{#regex: {{{released|}}}|/.*?(\d\d\d\d).*/rs|[[Category:Initial release $1]]|1}}}}}}}}
|{{#if:{{{genre|}}}|{{!}}'''Genre(s)'''{{!!}}{{#regex: {{#regex: {{{genre|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 games|$1]]$2}}}}
|{{#if:{{{genre|}}}|{{!}}'''Genre(s)'''{{!!}}{{#regex: {{#regex: {{{genre|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 games|$1]][[Category:$1 games|$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}}|}}}}
|<!--Gameplay mode category links-->{{#if:{{{mode|{{{modes|}}}}}}|{{!}}'''Mode(s)'''{{!!}}{{#ifeq:{{#regex:{{{modes|}}}|/.*[Ss]ingle.*/|Single-player}}|Single-player|[[:Category:Single-player games|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]][[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]][[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]][[Category:Online games|Online]]{{#regex:{{{modes|}}}|/.*[Oo]nline([^,]*).*/|$1}}|}}}}
|<!--Should output category links here, but complicated by + syntax-->{{#if:{{{input|}}}| {{!}} '''Input methods''' {{!!}} {{{input|}}}}}
|<!--Should output input 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 48: Line 48:
|}<!--
|}<!--


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]]|}}<!--
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]]|}<!--


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]]|}}</includeonly><noinclude>
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>