Template:Infobox VG: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
(Peal back a layer, maybe it's a template depth issue)
No edit summary
Line 51: Line 51:
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|}}}|/''/r||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|}}}|/''/r||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]]|}}<!--


Developer categories-->{{#ifeq:{{#regex:{{{developer|}}}|/>/r|}}||<!--1st-->{{#regex:{{{developer|}}}|/([^,]*).*/r|[[Category:Developed by $1]]|1}}<!--2nd-->{{#regex:{{{developer|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:Developed by $1]]|1}}<!--3rd-->{{#regex:{{{developer|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:Developed by $1]]|1}}|<!--Test-->{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*(.*?)<.*/r|@$1@|1}}<!--Test--><!--NA-->{{#regex:{{{developer|}}}|/.*?NA.*?>.*?>\s*(.*?)<.*/r|[[Category:Developed by]]|1}}<!--EU-->{{#regex:{{{developer|}}}|/.*?EU.*?>.*?>(.*?)<.*/r|[[Category:Developed by]]|1}}<!--JP-->{{#regex:{{{developer|}}}|/.*?JP.*?>.*?>(.*?)<.*/r|[[Category:Developed by]]|1}}<!--AUS-->{{#regex:{{{developer|}}}|/.*?AUS.*?>.*?>(.*?)<.*/r|[[Category:Developed by]]|1}}}}<!--
Developer categories-->{{#ifeq:{{#regex:{{{developer|}}}|/>/r|}}||<!--1st-->{{#regex:{{{developer|}}}|/([^,]*).*/r|[[Category:Developed by $1]]|1}}<!--2nd-->{{#regex:{{{developer|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:Developed by $1]]|1}}<!--3rd-->{{#regex:{{{developer|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:Developed by $1]]|1}}|<!--Test-->{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*(.*?)<.*/r|@$1@|1}}<!--Test--><!--NA-->{{#regex:{{{developer|}}}|/.*?NA.*?>.*?>\s*(.*?)<.*/r|[[Category:Developed by $1]]|1}}<!--EU-->{{#regex:{{{developer|}}}|/.*?EU.*?>.*?>(.*?)<.*/r|[[Category:Developed by $1]]|1}}<!--JP-->{{#regex:{{{developer|}}}|/.*?JP.*?>.*?>(.*?)<.*/r|[[Category:Developed by $1]]|1}}<!--AUS-->{{#regex:{{{developer|}}}|/.*?AUS.*?>.*?>(.*?)<.*/r|[[Category:Developed by $1]]|1}}}}<!--


Publisher categories: regional ones are outputting as text rather than as categories for some reason, seems to have something to do with the replacement used.-->{{#ifeq:{{#regex:{{{publisher|}}}|/>/r|}}||<!--1st-->{{#regex:{{{publisher|}}}|/([^,]*).*/r|[[Category:Published by $1]]|1}}<!--2nd-->{{#regex:{{{publisher|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:Published by $1]]|1}}<!--3rd-->{{#regex:{{{publisher|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:Published by]]|1}}|<!--NA--><!--Hrm, seems to be some problem with the $1 replace here, including it causes the categories to output as text-->{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by ???]]|1}}<!--EU-->{{#regex:{{{publisher|}}}|/.*?EU.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by ???]]|1}}<!--JP-->{{#regex:{{{publisher|}}}|/.*?JP.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by ???]]|1}}<!--AUS-->{{#regex:{{{publisher|}}}|/.*?AUS.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by ???]]|1}}}}<!--
Publisher categories: regional ones are outputting as text rather than as categories for some reason, seems to have something to do with the replacement used.-->{{#ifeq:{{#regex:{{{publisher|}}}|/>/r|}}||<!--1st-->{{#regex:{{{publisher|}}}|/([^,]*).*/r|[[Category:Published by $1]]|1}}<!--2nd-->{{#regex:{{{publisher|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:Published by $1]]|1}}<!--3rd-->{{#regex:{{{publisher|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:Published by]]|1}}|<!--NA--><!--Hrm, seems to be some problem with the $1 replace here, including it causes the categories to output as text-->{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}<!--EU-->{{#regex:{{{publisher|}}}|/.*?EU.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}<!--JP-->{{#regex:{{{publisher|}}}|/.*?JP.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}<!--AUS-->{{#regex:{{{publisher|}}}|/.*?AUS.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}}}<!--


Gameplay mode categories-->{{#ifeq:{{#regex:{{{modes|}}}|/.*(Multiplayer).*/|$1}}|Multiplayer|[[Category:Multiplayer games]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*(Co-op).*/|$1}}|Co-op|[[Category:Multiplayer games]][[Category:Co-op games]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*(Single-Player).*/|$1}}|Single-Player|[[Category:Single-player games]]{{#ifeq:{{{modes|}}}|Single-Player|[[Category:Single-player only games]]|}}|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*(Single-player).*/|$1}}|Single-player|[[Category:Single-player games]]{{#ifeq:{{{modes|}}}|Single-player|[[Category:Single-player only games]]|}}|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*(Online).*/|$1}}|Online|[[Category:Online games]]|}}<!--
Gameplay mode categories-->{{#ifeq:{{#regex:{{{modes|}}}|/.*(Multiplayer).*/|$1}}|Multiplayer|[[Category:Multiplayer games]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*(Co-op).*/|$1}}|Co-op|[[Category:Multiplayer games]][[Category:Co-op games]]|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*(Single-Player).*/|$1}}|Single-Player|[[Category:Single-player games]]{{#ifeq:{{{modes|}}}|Single-Player|[[Category:Single-player only games]]|}}|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*(Single-player).*/|$1}}|Single-player|[[Category:Single-player games]]{{#ifeq:{{{modes|}}}|Single-player|[[Category:Single-player only games]]|}}|}}{{#ifeq:{{#regex:{{{modes|}}}|/.*(Online).*/|$1}}|Online|[[Category:Online games]]|}}<!--

Revision as of 02:49, 29 August 2013

[edit] [purge] Template documentation

About

Infobox VG is used on all game pages to display a title's compatibility rating along with various other information, including the title's GameIDs, release dates, and box art. Categories are also generated depending on the parameters to indicate information about the title, and flag parts of the infobox that may need improvement. When creating a new page, the infobox should be fleshed out with as much release information as possible.

Example

The following parameters are considered required on all pages:

{{Infobox VG
|image     =
|developer =
|publisher =
|released  =
|genre     =
|modes     =
|input     =
|forumlink =
}}

Produces

Infobox VG
Platform(s)
Compatibility Stars0.pngNote.svg.png
Unknown
See also...

Search Dolphin Forums
Open Issues
Search Google
Search Wikipedia

Parameters

The following are the only valid parameters accepted by this template.

  • |image= Box cover art. Supply only with [[File:{{SUBPAGENAME}}.jpg|300px]]. The image size tag is optional, used to resize when the image is not 300px (or 160px for WiiWare titles, 350px for Wii Channels).
  • |channeltype= Used only in Wii Channel pages. Valid value to use: Downloadable, Downloadable (third party), Pre-installed, or Game Channel.
  • |developer= May be supplied with {{vgrelease|}} template to list developers by region. Further details on how to use vgrelease are available at Template:vgrelease.
  • |publisher= May be supplied with {{vgrelease|}} template to list publishers by region. Further details on how to use vgrelease are available at Template:vgrelease.
  • |series= Used only for games that are part of a series with more than one title playable in Dolphin. Input there will be italicized automatically.
  • |released= Supply only with {{vgrelease|}} template(s). Further details on how to use vgrelease are available at Template:vgrelease.
  • |genre=
  • |modes= Valid modes of play: Single-player, Multiplayer (#), Co-op (#), Online (#). Separate modes with commas. Parentheses are required. "Online" here means online multiplayer, not online functionality.
  • |input= Valid controller inputs: Active Heart Rate Monitor, Arcade Controller, Classic Controller, Cyberbike, Dance Pad, DK Bongos, TaTaCon, Drawsome Tablet, Drum Controller, Game Boy Advance, GameCube Controller, Guitar Controller, Keyboard Controller, Microphone, Nintendo DS, Nunchuk, Ride Controller, Shinkansen Controller, Skylander Portal, Speed Force Wireless, Turntable Controller, uDraw GameTablet, USB Keyboard, Wii Balance Board, Wii MotionPlus, Wii MotionPlus + Nunchuk, Wii Remote, Wii Remote + Nunchuk, Wii Speak, Your Shape Camera. Separate controller inputs with commas.
  • |forumlink= Supply only with Dolphin forum page URL. As the forums have restrictions on creating per-game threads, this can only be created and added to the infobox by users with privileges on the forums.
  • |wikipedia= Wikipedia page title, only when automatic link does not work; see F1 2002.