Template:Infobox VG/sandbox: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
(another approach to id verification)
No edit summary
(10 intermediate revisions by 2 users not shown)
Line 9: Line 9:
{{Alternating rows table section
{{Alternating rows table section
|es=background:#f0f0f0;
|es=background:#f0f0f0;
|{{#if:{{{channeltype|}}}| {{!}} '''Type''' {{!!}} {{{channeltype|}}}}}
|{{#if:{{{channeltype|}}}| {{!}} '''Type''' {{!!}} {{{channeltype|}}}}}<!--
 
Make sure to update Template:Vgrelease along with the developer and publisher regexes
 
-->
|{{#if:{{{developer|}}}|{{!}}'''[[:Category:Developers|Developer(s)]]'''{{!!}}{{#ifeq:{{#regex:{{{developer|}}}|/>/rs|}}||
|{{#if:{{{developer|}}}|{{!}}'''[[:Category:Developers|Developer(s)]]'''{{!!}}{{#ifeq:{{#regex:{{{developer|}}}|/>/rs|}}||
<!--List-->{{#regex:{{{developer|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Developer)|$1]][[Category:$1 (Developer)]]$2}}|
<!--List-->{{#regex:{{{developer|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Developer)|$1]][[Category:$1 (Developer)]]$2}}|
<!--Regional List-->{{#regex:{{{developer|}}}|/({{#regex:{{{developer|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}AUS{{!}}KO{{!}}RUS{{!}}SA{{!}}CA).*?>.*?>\s*([^\[{{!}}<]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:$1 (Developer)|$1]][[Category:$1 (Developer)]]}}}}
<!--Regional List-->{{#regex:{{{developer|}}}|/({{#regex:{{{developer|}}}|/.*?(?:JP{{!}}NA{{!}}CA{{!}}EU{{!}}FR{{!}}DE{{!}}IT{{!}}NL{{!}}SC{{!}}SP{{!}}AUS{{!}}RU{{!}}KO{{!}}TW{{!}}SA).*?>.*?>\s*([^\[{{!}}<]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:$1 (Developer)|$1]][[Category:$1 (Developer)]]}}}}
}}
}}
|{{#if:{{{publisher|}}}|{{!}}'''[[:Category:Publishers|Publisher(s)]]'''{{!!}}{{#ifeq:{{#regex:{{{publisher|}}}|/>/rs|}}||
|{{#if:{{{publisher|}}}|{{!}}'''[[:Category:Publishers|Publisher(s)]]'''{{!!}}{{#ifeq:{{#regex:{{{publisher|}}}|/>/rs|}}||
<!--List-->{{#regex:{{{publisher|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Publisher)|$1]][[Category:$1 (Publisher)]]$2}}|
<!--List-->{{#regex:{{{publisher|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Publisher)|$1]][[Category:$1 (Publisher)]]$2}}|
<!--Regional List-->{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}AUS{{!}}KO{{!}}RUS{{!}}SA{{!}}CA).*?>.*?>\s*([^\[{{!}}<]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:$1 (Publisher)|$1]][[Category:$1 (Publisher)]]}}}}
<!--Regional List-->{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:JP{{!}}NA{{!}}CA{{!}}EU{{!}}FR{{!}}DE{{!}}IT{{!}}NL{{!}}SC{{!}}SP{{!}}AUS{{!}}RU{{!}}KO{{!}}TW{{!}}SA).*?>.*?>\s*([^\[{{!}}<]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:$1 (Publisher)|$1]][[Category:$1 (Publisher)]]}}}}
}}
}}
|{{#if:{{{series|}}}|{{!}} '''[[:Category:Series|Series]]''' {{!!}}{{#regex:{{#regex:{{{series|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Series)|$1]][[Category:$1 (Series)]]$2}}}}
|{{#if:{{{series|}}}|{{!}} '''[[:Category:Series|Series]]''' {{!!}}{{#regex:{{#regex:{{{series|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Series)|$1]][[Category:$1 (Series)]]$2}}}}
Line 25: Line 29:
|{{#if:{{{mode|{{{modes|}}}}}}|{{!}}'''[[:Category:Game mode|Mode(s)]]'''{{!!}}{{#regex:{{#regex:{{{modes|}}}|/(Single-player{{!}}Multi(-)?player{{!}}Co-op{{!}}Online)/rsi|[[:Category:$1 (Game mode)|$1]][[Category:$1 (Game mode)]]$2}}|/\((\d{1,2}{{!}}\*)\)/|([[:Category:$1 (Players supported)|$1]][[Category:$1 (Players supported)]])}}{{#ifeq:{{{modes|}}}|Single-player|[[Category:Single-player only (Game mode)]][[Category:1 (Players supported)]]|}}|{{#if:{{#regex:{{{genre|}}}|/Utility/}}||[[Category:Game pages without modes of play]]}}}}
|{{#if:{{{mode|{{{modes|}}}}}}|{{!}}'''[[:Category:Game mode|Mode(s)]]'''{{!!}}{{#regex:{{#regex:{{{modes|}}}|/(Single-player{{!}}Multi(-)?player{{!}}Co-op{{!}}Online)/rsi|[[:Category:$1 (Game mode)|$1]][[Category:$1 (Game mode)]]$2}}|/\((\d{1,2}{{!}}\*)\)/|([[:Category:$1 (Players supported)|$1]][[Category:$1 (Players supported)]])}}{{#ifeq:{{{modes|}}}|Single-player|[[Category:Single-player only (Game mode)]][[Category:1 (Players supported)]]|}}|{{#if:{{#regex:{{{genre|}}}|/Utility/}}||[[Category:Game pages without modes of play]]}}}}
|{{#if:{{{input|}}}|{{!}}'''[[:Category:Input supported|Input methods]]'''{{!!}}{{#regex:{{{input|}}}|/(Wii Remote{{!}}Nunchu(c)?k{{!}}Dance Pad{{!}}Wii Balance Board{{!}}USB Keyboard{{!}}Skylander Portal{{!}}Active Heart Rate Monitor{{!}}Cyberbike{{!}}Your Shape Camera{{!}}Nintendo DS{{!}}Game( )?Boy Advance{{!}}uDraw GameTablet{{!}}Drawsome Tablet{{!}}Wii MotionPlus{{!}}DK Bongos{{!}}(GameCube{{!}}Classic{{!}}Shinkansen{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Turntable{{!}}Ride{{!}}Arcade) Controller{{!}}Wii Speak{{!}}Microphone)/rsi|[[:Category:$1 (Input supported)|$1]][[Category:$1 (Input supported)]]$2}}|[[Category:Game pages without possible inputs]]}}
|{{#if:{{{input|}}}|{{!}}'''[[:Category:Input supported|Input methods]]'''{{!!}}{{#regex:{{{input|}}}|/(Wii Remote{{!}}Nunchu(c)?k{{!}}Dance Pad{{!}}Wii Balance Board{{!}}USB Keyboard{{!}}Skylander Portal{{!}}Active Heart Rate Monitor{{!}}Cyberbike{{!}}Your Shape Camera{{!}}Nintendo DS{{!}}Game( )?Boy Advance{{!}}uDraw GameTablet{{!}}Drawsome Tablet{{!}}Wii MotionPlus{{!}}DK Bongos{{!}}(GameCube{{!}}Classic{{!}}Shinkansen{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Turntable{{!}}Ride{{!}}Arcade) Controller{{!}}Wii Speak{{!}}Microphone)/rsi|[[:Category:$1 (Input supported)|$1]][[Category:$1 (Input supported)]]$2}}|[[Category:Game pages without possible inputs]]}}
|{{!}} '''[[:Category:Rating|Compatibility]]''' {{!!}}{{ratings/sandbox|{{PAGENAME}}}}{{#switch:{{#regex:{{ratings/sandbox|{{PAGENAME}}}}|/.*?Stars(\d)(.*?)\.png.*/|$2}}| +blue = {{#regex:{{ratings/sandbox|{{PAGENAME}}}}|/.*?Stars(\d)\+blue\.png.*/|[[Category:$1 stars (Rating)]]<br /><span style="display:inline-block;width:118px;text-align:center;font-size:8pt;font-weight:bold;color:#666;">{{#switch:{{#regex:{{ratings/sandbox|{{PAGENAME}}}}|/.*?Stars(\d)\+blue\.png.*/|$1}}|=Unknown|0=Unknown|1=Broken|2=Intro/Menu|3=Starts|4=Playable|5=Perfect|$1}} ([[#Configuration|configured]])</span>}}| = {{#regex:{{ratings/sandbox|{{PAGENAME}}}}|/.*?Stars(\d)\.png.*/|[[Category:$1 stars (Rating)]]<br /><span style="display:inline-block;width:118px;text-align:center;font-size:8pt;font-weight:bold;color:#666;">{{#switch:{{#regex:{{ratings/sandbox|{{PAGENAME}}}}|/.*?Stars(\d)\.png.*/|$1}}|=Unknown|0=Unknown|1=Broken|2=Intro/Menu|3=Starts|4=Playable|5=Perfect|$1}}</span>}}}}
|{{!}} '''[[Stereoscopic 3D Compatibility Guide|Stereoscopic 3D]]''' {{!!}}{{3Dconditions|{{PAGENAME}}}}{{#regex:{{3Dconditions|{{PAGENAME}}}}|/.*?3DStars(\d)\.png.*/|[[Category:$1 stars (3D Condition Rating)]]<br /><span style="display:inline-block;width:118px;text-align:center;font-size:8pt;font-weight:bold;color:#666;">{{#switch:{{#regex:{{3Dconditions|{{PAGENAME}}}}|/.*?3DStars(\d)\.png.*/|$1}}|=Unknown|0=Unknown|1=Poor|2=Acceptable|3=Excellent|$1}}</span>}}
|{{!}} '''[[GameIDs]]''' {{!!}} {{#vardefine:tl_infobox_gameids|{{#dpl:
|{{!}} '''[[GameIDs]]''' {{!!}} {{#vardefine:tl_infobox_gameids|{{#dpl:
|mode=userformat
|mode=userformat
Line 33: Line 35:
|redirects=only
|redirects=only
|titlematch=______
|titlematch=______
|notcategory=Not GameID
<!--|notcategory=Not GameID
|notcategory=Unofficial GameID
|notcategory=Unofficial GameID-->
}}}}{{#while:|{{#var:tl_infobox_gameids}}|{{#vardefine:tl_infobox_currentid|{{#regex:{{#var:tl_infobox_gameids}}|/([^\s]*)\s*/}}}}{{#if:{{#var:tl_infobox_idhaslooped}}|, <nowiki/>|{{#vardefine:tl_infobox_idhaslooped|true}}}}{{#if:{{{{{#var:tl_infobox_currentid}}|}}}|[{{{{{#var:tl_infobox_currentid}}|}}} {{#var:tl_infobox_currentid}}]|[[{{#var:tl_infobox_currentid}}]][[Category:Pages with unverified GameIDs]]}}{{#vardefine:tl_infobox_gameids|{{#regex:{{#var:tl_infobox_gameids}}|/([^\s]*)\s*/|}}}}}}
}}}}{{#while:|{{#var:tl_infobox_gameids}}|{{#vardefine:tl_infobox_currentid|{{#regex:{{#var:tl_infobox_gameids}}|/([^\s]*)\s*/}}}}{{#if:{{#var:tl_infobox_idhaslooped}}|, <nowiki/>|{{#vardefine:tl_infobox_idhaslooped|true}}}}{{#if:{{{{{#var:tl_infobox_currentid}}|}}}|[{{{{{#var:tl_infobox_currentid}}|}}} {{#var:tl_infobox_currentid}}]|[[{{#var:tl_infobox_currentid}}]][[Category:Pages with unverified GameIDs]]}}{{#vardefine:tl_infobox_gameids|{{#regex:{{#var:tl_infobox_gameids}}|/^([^\s]*)\s*/|}}}}}}
|{{!}} '''See also...''' {{!!}}
|{{!}} '''See also...''' {{!!}}
{{#if:{{{altsys|}}}|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} ({{{altsys|}}})|{{#ifeq:{{{altsys|}}}|GC|GameCube|{{{altsys|}}}}} Version]]<br />}}
{{#if:{{{altsys|}}}|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} ({{{altsys|}}})|{{#ifeq:{{{altsys|}}}|GC|GameCube|{{{altsys|}}}}} Version]]<br />}}

Revision as of 21:08, 24 November 2019