Template:Infobox VG: Difference between revisions
Jump to navigation
Jump to search
(Grr, I give up for now. Can't work out why regional publishers are output as text rather than Categories.) |
(Revise mis-capitalization handling for input categories.) |
||
Line 56: | Line 56: | ||
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]]|}}<!-- | ||
Input categories-->{{#ifeq:{{#regex:{{{input|}}}|/.* | Input categories--> | ||
{{#ifeq:{{#regex:{{{input|}}}|/.*Wii [Rr]emote.*/|Found}}|Found|[[Category:Wii Remote input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Nunchuk.*/|$1}}|Nunchuk|[[Category:Nunchuk input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Classic [Cc]ontroller.*/|Found}}|Found|[[Category:Classic Controller input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Game[Cc]ube [Cc]ontroller.*/|Found}}|Found|[[Category:GameCube Controller input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Wii Balance Board).*/|$1}}|Wii Balance Board|[[Category:Wii Balance Board input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Shinkansen.*/|Found}}|Found|[[Category:Shinkansen Controller input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*([uU][Dd]raw).*/|Found}}|Found|[[Category:uDraw Tablet input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Nintendo DS).*/|$1}}|Nintendo DS|[[Category:Nintendo DS input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Game[ ]?[Bb]oy Advance.*/|Found}}|Found|[[Category:Game Boy Advance input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*Wii Motion[Pp]lus.*/|Found}}|Found|[[Category:Wii MotionPlus input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(DK Bongos).*/|$1}}|DK Bongos|[[Category:DK Bongos input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Drum).*/|$1}}|Drum|[[Category:Drum input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Guitar).*/|$1}}|Guitar|[[Category:Guitar input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Keyboard).*/|$1}}|Keyboard|[[Category:Keyboard input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Microphone).*/|$1}}|Microphone|[[Category:Microphone input supported]]|}}{{#ifeq:{{#regex:{{{input|}}}|/.*(Dance).*/|$1}}|Dance|[[Category:Dance Pad input supported]]|}}<!-- | |||
Genre categories (up to 16)-->{{#if:{{{genre|}}}|<!--1st-->{{#regex: {{{genre|}}}|/([^,]*).*/r|[[Category:$1 games]]|1}}<!--2nd-->{{#regex: {{{genre|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--3rd-->{{#regex: {{{genre|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--4th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){3}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--5th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){4}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--6th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){5}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--7th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){6}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--8th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){7}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--9th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){8}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--10th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){9}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--11th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){10}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--12th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){11}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--13th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){12}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--14th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){13}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--15th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){14}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--16th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){15}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}}}<!-- | Genre categories (up to 16)-->{{#if:{{{genre|}}}|<!--1st-->{{#regex: {{{genre|}}}|/([^,]*).*/r|[[Category:$1 games]]|1}}<!--2nd-->{{#regex: {{{genre|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--3rd-->{{#regex: {{{genre|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--4th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){3}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--5th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){4}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--6th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){5}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--7th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){6}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--8th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){7}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--9th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){8}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--10th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){9}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--11th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){10}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--12th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){11}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--13th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){12}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--14th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){13}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--15th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){14}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--16th-->{{#regex: {{{genre|}}}|/(?:[^,]*,){15}([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}}}<!-- |
Revision as of 21:42, 28 August 2013
[edit] [ ] 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
|
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 not300px
(or160px
for WiiWare titles,350px
for Wii Channels). - |channeltype= Used only in Wii Channel pages. Valid value to use:
Downloadable
,Downloadable (third party)
,Pre-installed
, orGame 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.
The above documentation is transcluded from Template:Infobox VG/doc. (edit | history) Editors can experiment in this template's sandbox (edit) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |