Template:Infobox VG: Difference between revisions

Undo revision 72093 by Kolano (talk)
No edit summary
(Undo revision 72093 by Kolano (talk))
Line 10: Line 10:
|es=background:#f0f0f0;
|es=background:#f0f0f0;
|{{#if:{{{channeltype|}}}| {{!}} '''Type''' {{!!}} {{{channeltype|}}}}}
|{{#if:{{{channeltype|}}}| {{!}} '''Type''' {{!!}} {{{channeltype|}}}}}
|<!--Should output Developer category links, but complicated by vgrelease/commas-->{{#if:{{{developer|}}}|{{!}}'''Developer(s)'''{{!!}}{{{developer|}}}}}
|<!--Should output Publisher category links, but complicated by vgrelease/commas-->{{#if:{{{publisher|}}}|{{!}}'''Publisher(s)'''{{!!}}{{{publisher|}}}}}
|<!--Series Category Links (up to 3)-->{{#if:{{{series|}}}|{{!}} '''Series''' {{!!}}<!--1st-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/([^,]*).*/r|[[:Category:$1 series|$1]]|1}}<!--2nd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/[^,]*,([^,]*)(,.*)?/r|, [[:Category:$1 series|$1]]|1}}<!--3rd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|, [[:Category:$1 series|$1]]|1}}}}
|{{#if:{{{platform|{{{platforms|}}}}}}| {{!}} '''Platform(s)''' {{!!}} {{{platform|{{{platforms|}}}}}}}}
|{{#if:{{{released|{{{release|}}}}}}| {{!}} {{nowrap|'''Release date(s)'''}} {{!!}} {{{released|{{{release}}}}}}}}
|<!--Genre category links (up to 16)-->{{#if:{{{genre|}}}|{{!}}'''Genre(s)'''{{!!}}<!--1st-->{{#regex: {{{genre|}}}|/([^,]*).*/r|[[:Category:$1 games|$1]]|1}}<!--2nd-->{{#regex: {{{genre|}}}|/[^,]*,([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--3rd-->{{#regex: {{{genre|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--4th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){3}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--5th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){4}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--6th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){5}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--7th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){6}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--8th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){7}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--9th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){8}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--10th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){9}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}
<!--11th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){10}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--12th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){11}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--13th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){12}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--14th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){13}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--15th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){14}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|1}}<!--16th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){15}([^,]*)(,.*)?/r|, [[:Category:$1 games|$1]]|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]]|}}{{#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-op.*/|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}}|}}}}
|<!--Should output category links here, but complicated by + syntax-->{{#if:{{{input|}}}| {{!}} '''Input methods''' {{!!}} {{{input|}}}}}
|{{!}} '''Compatibility''' {{!!}} {{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{PAGENAME}}}}
|{{!}} '''See also...''' {{!!}}
{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!Arcade).+\)/|$1}} (Arcade)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Arcade)|Arcade Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!C64).+\)/|$1}} (C64)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (C64)|C64 Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!Genesis).+\)/|$1}} (Genesis)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Genesis)|Genesis Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!MSX).+\)/|$1}} (MSX)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (MSX)|MSX Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!NES).+\)/|$1}} (NES)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (NES)|NES Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!SNES).+\)/|$1}} (SNES)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (SNES)|SNES Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!SMS).+\)/|$1}} (SMS)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (SMS)|SMS Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!TurboGrafx-16).+\)/|$1}} (TurboGrafx-16)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (TurboGrafx-16)|TurboGrafx-16 Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!Wii).+\)/|$1}} (Wii)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (Wii)|Wii Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!GC).+\)/|$1}} (GC)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (GC)|GameCube Version]]<br />
}}{{#ifexist:{{#regex:{{PAGENAME}}|/(.+)\((?!WiiWare).+\)/|$1}} (WiiWare)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (WiiWare)|WiiWare 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 />}}}}
{{#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 />
{{#if:{{{wikipedia|}}}|[[wikipedia:{{{wikipedia|}}}|Wikipedia page]]|[[wikipedia:{{PAGENAME}}|Search Wikipedia]]}}}}
<!--Translations broken since migration to HTTPS as Google Translate doesn't support HTTPS pages.
<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>
-->
|}<!--
|}<!--