Template:Infobox VG: Difference between revisions

Jump to navigation Jump to search
(Update to handle NES/SNES title matches)
(Fixes for NES/SNES tests.)
Line 39: Line 39:
|{{!}} '''Compatibility''' {{!!}} {{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}name={{PAGENAME}}}}
|{{!}} '''Compatibility''' {{!!}} {{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}name={{PAGENAME}}}}
|{{!}} '''See also...''' {{!!}}
|{{!}} '''See also...''' {{!!}}
{{#ifeq:{{#regex:{{PAGENAME}}|/.*(NES)/$1}}|NES||{{#ifexist:{{#regex:{{PAGENAME}}|/(.*) (NES)/|$1}} (SNES)|[[{{#regex:{{PAGENAME}}|/(.*) (NES)/|$1}} (SNES)|SNES Title]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/.*(SNES)/$1}}|SNES||{{#ifexist:{{#regex:{{PAGENAME}}|/(.*) (SNES)/|$1}} (NES)|[[{{#regex:{{PAGENAME}}|/(.*) (SNES)/|$1}} (NES)|NES Title]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|New Play Control\! $1}}|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|$1}} (GC)|[[{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|$1}} (GC)|GameCube Version]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/(.+)\ \(.+\)/|$1}} (Wii)|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Wii)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Wii)|Wii Version]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/(.+)\ \(.+\)/|$1}} (GC)|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (GC)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (GC)|GameCube Version]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/(.+)\ \(.+\)/|$1}} (WiiWare)|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (WiiWare)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (WiiWare)|WiiWare Version]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/(.+)\ \(.+\)/|$1}} (Virtual Console)|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Virtual Console)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Virtual Console)|Virtual Console Version]]<br />}}}}
 
{{#ifeq:{{#regex:{{PAGENAME}}|/.*(NES)\)/$1}}|NES||{{#ifexist:{{#regex:{{PAGENAME}}|/(.*) \(NES\)/|$1}} (SNES)|[[{{#regex:{{PAGENAME}}|/(.*) \(NES\)/|$1}} (SNES)|SNES Title]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/.*(SNES)\)/$1}}|SNES||{{#ifexist:{{#regex:{{PAGENAME}}|/(.*) \(SNES\)/|$1}} (NES)|[[{{#regex:{{PAGENAME}}|/(.*) \(SNES\)/|$1}} (NES)|NES Title]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/(.+)\ \(.+\)/|$1}} (Wii)|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Wii)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Wii)|Wii Version]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|New Play Control\! $1}}|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|$1}} (GC)|[[{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|$1}} (GC)|GameCube Version]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/(.+)\ \(.+\)/|$1}} (Wii)|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Wii)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Wii)|Wii Version]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/(.+)\ \(.+\)/|$1}} (GC)|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (GC)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (GC)|GameCube Version]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/(.+)\ \(.+\)/|$1}} (WiiWare)|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (WiiWare)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (WiiWare)|WiiWare Version]]<br />}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/(.+)\ \(.+\)/|$1}} (Virtual Console)|{{PAGENAME}}||{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Virtual Console)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Virtual Console)|Virtual Console Version]]<br />}}}}
{{#if:{{{forumlink|}}}|[{{{forumlink|}}} Dolphin Forum thread]|[[google:{{#regex:{{PAGENAME}}|/\s/|+}}+site:forums.dolphin-emu.org|Search Dolphin Forums]]}}<br />
{{#if:{{{forumlink|}}}|[{{{forumlink|}}} Dolphin Forum thread]|[[google:{{#regex:{{PAGENAME}}|/\s/|+}}+site:forums.dolphin-emu.org|Search Dolphin Forums]]}}<br />
[[google:{{#regex:{{PAGENAME}}|/\s/|+}}|Search Google]]<br />
[[google:{{#regex:{{PAGENAME}}|/\s/|+}}|Search Google]]<br />