In order to edit this wiki, you must register and verify your account.

Template:Infobox VG: Difference between revisions

From Cemu Wiki
Jump to:navigation Jump to:search
No edit summary
m (Reverted edits by Malkierian (talk) to last revision by Kolano)
Line 1: Line 1:
{| class="{{#ifeq:{{{collapsible|}}}|yes|collapsible {{{state|autocollapse}}}}} infobox vevent" style="float:{{{align|right}}}; width:{{{width|300px}}}; font-size:90%; text-align:left;" cellspacing="0" cellpadding="3"
<includeonly>{| class="{{#ifeq:{{{collapsible|}}}|yes|collapsible {{{state|autocollapse}}}}} infobox vevent" style="float:{{{align|right}}}; width:{{{width|300px}}}; font-size:90%; text-align:left;" cellspacing="0" cellpadding="3"
|-
|-
! colspan=2 style="font-size:110%; text-align:center;" class="summary" | ''{{{title|{{PAGENAME}}}}}''
! colspan=2 style="font-size:110%; text-align:center;" class="summary" | ''{{{title|{{PAGENAME}}}}}''
Line 20: Line 20:
|{{#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}}}}
|{{#if:{{{platform|{{{platforms|}}}}}}| {{!}} '''[[:Category:Platforms|Platform(s)]]''' {{!!}} {{{platform|{{{platforms|}}}}}}}}<!--Still need to add appropriate params and automate this-->
|{{#if:{{{platform|{{{platforms|}}}}}}| {{!}} '''[[:Category:Platforms|Platform(s)]]''' {{!!}} {{{platform|{{{platforms|}}}}}}}}<!--Still need to add appropriate params and automate this-->
|{{#if:{{{released|{{{release|}}}}}}| {{!}} {{nowrap| '''[[:Category:Initial release year|Release date(s)]]'''}} {{!!}} {{{released|{{{release}}}}}} {{#regex:{{{released|}}}|/.*?(\d\d\d\d).*/rs|[[Category:$1 (Initial release year)]]|1}}|[[Category:Game pages without release date(s)]]}}
|{{#if:{{{released|{{{release|}}}}}}| {{!}} {{nowrap|'''[[:Category:Initial release year|Release date(s)]]'''}} {{!!}} {{{released|{{{release}}}}}} {{#regex:{{{released|}}}|/.*?(\d\d\d\d).*/rs|[[Category:$1 (Initial release year)]]|1}}|[[Category:Game pages without release date(s)]]}}
|{{#if:{{{genre|}}}|{{!}} '''[[:Category:Genres|Genre(s)]]'''{{!!}}{{#regex:{{#regex:{{{genre|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Genre)|$1]][[Category:$1 (Genre)]]$2}}|[[Category:Game pages without genre]]}}
|{{#if:{{{genre|}}}|{{!}}'''[[:Category:Genres|Genre(s)]]'''{{!!}}{{#regex:{{#regex:{{{genre|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Genre)|$1]][[Category:$1 (Genre)]]$2}}|[[Category:Game pages without genre]]}}
|{{#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{{!}}Nunchuk{{!}}Dance Pad{{!}}Wii Balance Board{{!}}USB Keyboard{{!}}Skylander Portal{{!}}Wii MotionPlus{{!}}GamePad{{!}}Wii Speak{{!}}Microphone{{!}}(Pro{{!}}GameCube{{!}}Classic{{!}}Keyboard{{!}}Guitar{{!}}) Controller)/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|{{{rating|}}}}}[[Category:{{{rating}}} (Rating)]]
|{{!}} '''[[:Category:Rating|Compatibility]]''' {{!!}}{{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{PAGENAME}}}}{{#regex:{{ratings|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{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|{{#if:{{{nonerror|}}}|nonerror=true{{!}}|}}{{PAGENAME}}}}|/.*?Stars(\d)\.png.*/|$1}}|=Unknown|0=Unknown|1=Broken|2=Intro/Menu|3=Starts|4=Playable|5=Perfect|$1}}</span>}}
|{{!}} '''[[GameIDs]]''' {{!!}} {{#dpl:
|{{!}} '''[[GameIDs]]''' {{!!}} {{#dpl:
|mode=inline
|mode=inline
Line 46: Line 46:
}}{{exist|{{#regex:{{PAGENAME}}|/(.+)\((?!WiiWare).+\)/|$1}} (WiiWare)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (WiiWare)|WiiWare Version]]<br />
}}{{exist|{{#regex:{{PAGENAME}}|/(.+)\((?!WiiWare).+\)/|$1}} (WiiWare)|[[{{#regex:{{PAGENAME}}|/(.+)\(.+\)/|$1}} (WiiWare)|WiiWare Version]]<br />
}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|New Play Control\! $1}}|{{PAGENAME}}||{{exist|{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|$1}} (GC)|[[{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|$1}} (GC)|GameCube Version]]<br />}}}}
}}}}{{#ifeq:{{#regex:{{PAGENAME}}|/New Play Control\! (.+)/|New Play Control\! $1}}|{{PAGENAME}}||{{exist|{{#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]][[Category:Game pages without Dolphin forum link]]}}<br />
{{#if:{{{wikipedia|}}}|[https://bugs.dolphin-emu.org/projects/emulator/search?q={{#regex:{{{wikipedia|}}}|/\s/|+}}&open_issues=1 Open Issues]|[https://bugs.dolphin-emu.org/projects/emulator/search?q={{#regex:{{PAGENAME}}|/\s/|+}}&open_issues=1 Open Issues]}}<br />
[[google:{{#regex:{{PAGENAME}}|/\s/|+}}|Search Google]]<br />
[[google:{{#regex:{{PAGENAME}}|/\s/|+}}|Search Google]]<br />
{{#if:{{{wikipedia|}}}|[[wikipedia:{{{wikipedia|}}}|Wikipedia page]]|[[wikipedia:{{PAGENAME}}|Search Wikipedia]]}}}}|}<!--Data Quality Categories-->
{{#if:{{{wikipedia|}}}|[[wikipedia:{{{wikipedia|}}}|Wikipedia page]]|[[wikipedia:{{PAGENAME}}|Search Wikipedia]]}}}}|}<!--Data Quality Categories-->{{#if:{{{compatibility|}}}|[[Category:Pages with an un-needed compatibility param in InfoBox]]|}}{{#if:{{{series|}}}|{{#if:{{#regex:{{{series|}}}|/(''[^,]*?''(, {{!}}$))*/rs|}}|[[Category:Game pages with misformatted series]]}}}}{{#ifeq:{{#regex:{{{input|}}}|/(((Wii Remote( \+ Nunchuk)?{{!}}Wii MotionPlus( \+ Nunchuk)?){{!}}Nunchuk{{!}}Nintendo DS{{!}}Active Heart Rate Monitor{{!}}Cyberbike{{!}}Your Shape Camera{{!}}USB Keyboard{{!}}Skylander Portal{{!}}Game Boy Advance{{!}}Game Boy Advance{{!}}Dance Pad{{!}}DK Bongos{{!}}Wii Speak{{!}}Microphone{{!}}uDraw GameTablet{{!}}Drawsome Tablet{{!}}Wii Balance Board{{!}}(Classic{{!}}GameCube{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Shinkansen{{!}}Turntable{{!}}Ride{{!}}Arcade) Controller)(, {{!}}$))*/rs}}|{{{input|}}}||[[Category:Pages with misformatted inputs]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/((Single-player{{!}}(Multiplayer{{!}}Co-op{{!}}Online) \((\d{1,2}{{!!}}\*)\))(, {{!}}$))*/rs}}|{{{modes|}}}||[[Category:Pages with misformatted modes of play]]|}}</includeonly><noinclude>
{{#if:{{{compatibility|}}}|[[Category:Pages with an un-needed compatibility param in InfoBox]]|}}{{#if:{{{series|}}}|{{#if:{{#regex:{{{series|}}}|/(''[^,]*?''(, {{!}}$))*/rs|}}|[[Category:Game pages with misformatted series]]}}}}
{{documentation}}
{{#ifeq:{{#regex:{{{input|}}}|/(((Wii Remote( \+ Nunchuk)?{{!}}Wii MotionPlus( \+ Nunchuk)?){{!}}Nunchuk{{!}}USB Keyboard{{!}}Skylander Portal{{!}}GamePad{{!}}Dance Pad{{!}}Keyboard{{!}}Wii Speak{{!}}Microphone{{!}}Wii Balance Board{{!}}(Pro{{!}}Classic{{!}}GameCube{{!}}Guitar{{!}}Keyboard) Controller)(, {{!}}$))*/rs}}|{{{input|}}}||[[Category:Pages with misformatted inputs]]|}}
</noinclude>
{{#ifeq:{{#regex:{{{modes|}}}|/((Single-player{{!}}(Multiplayer{{!}}Co-op{{!}}Online) \((\d{1,2}{{!!}}\*)\))(, {{!}}$))*/rs}}|{{{modes|}}}||[[Category:Pages with misformatted modes of play]]|}}

Revision as of 20:29, 4 October 2016

[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Use this template to display an infobox of a game.

Usage

{{Infobox VG |title = Mario Kart 8 |image = [[File:Mario Kart 8.png|295px]] |developer = Nintendo EAD |publisher = Nintendo |released = {{vgrelease|NA=May 30, 2014|EU=May 30, 2014|AUS= May 31, 2014|JP=May 29, 2014}} |genre = Racing |modes = Single-player, Multiplayer (4), Online |input = GamePad, Pro Controller, Wii Remote, Wii Remote + Nunchuk, Classic Controller |wikipedia = Mario_Kart_8 |rating = Perfect }}

Note
The above documentation is transcluded from Template:Infobox VG/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)