Template:Infobox VG: Difference between revisions
Jump to navigation
Jump to search
m (this redundancy doesn't hurt anything so i'll put it back) |
(add data quality category for pages with no GameIDs, and set the stage to do User:Techydude3's suggestion) |
||
Line 10: | Line 10: | ||
-->{{#vardefine:tl_infobox_autotitle|{{#regex:{{#var:tl_infobox_searchfix}}|/\((Arcade{{!}}C64{{!}}Genesis{{!}}MSX{{!}}NES{{!}}SNES{{!}}SMS{{!}}TurboGrafx-16{{!}}Wii{{!}}GC{{!}}WiiWare{{!}}Triforce{{!}}Metroid Prime\: Trilogy)\)/|}}}}<!-- | -->{{#vardefine:tl_infobox_autotitle|{{#regex:{{#var:tl_infobox_searchfix}}|/\((Arcade{{!}}C64{{!}}Genesis{{!}}MSX{{!}}NES{{!}}SNES{{!}}SMS{{!}}TurboGrafx-16{{!}}Wii{{!}}GC{{!}}WiiWare{{!}}Triforce{{!}}Metroid Prime\: Trilogy)\)/|}}}}<!-- | ||
Store GameIDs in a variable so we can check that GameIDs exist for the page and manipulate them | |||
-->{{#vardefine:tl_infobox_ids|{{#dpl: | |||
|mode=inline | |||
|inlinetext=<nowiki>, </nowiki> | |||
|linksto={{FULLPAGENAME}} | |||
|redirects=only | |||
|titlematch=______ | |||
|notcategory=Not GameID | |||
}}}}<!-- | |||
Wikitable | Wikitable | ||
Line 43: | Line 54: | ||
|{{#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{{!}}Ubisoft Camera{{!}}Nintendo DS{{!}}Game( )?Boy Advance{{!}}uDraw GameTablet{{!}}Drawsome Tablet{{!}}Wii MotionPlus{{!}}TaTaCon{{!}}DK Bongos{{!}}(GameCube{{!}}Classic{{!}}Shinkansen{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Turntable{{!}}Ride{{!}}Arcade) Controller{{!}}Wii Speak{{!}}USB Microphone{{!}}GameCube Microphone{{!}}Microphone)/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{{!}}Ubisoft Camera{{!}}Nintendo DS{{!}}Game( )?Boy Advance{{!}}uDraw GameTablet{{!}}Drawsome Tablet{{!}}Wii MotionPlus{{!}}TaTaCon{{!}}DK Bongos{{!}}(GameCube{{!}}Classic{{!}}Shinkansen{{!}}Drum{{!}}Guitar{{!}}Keyboard{{!}}Turntable{{!}}Ride{{!}}Arcade) Controller{{!}}Wii Speak{{!}}USB Microphone{{!}}GameCube Microphone{{!}}Microphone)/rsi|[[:Category:$1 (Input supported)|$1]][[Category:$1 (Input supported)]]$2}}|[[Category:Game pages without possible inputs]]}} | ||
|{{#ifpageincat:Disambiguation pages||{{!}} '''[[:Category:Rating|Compatibility]]''' {{!!}}{{ratings|{{PAGENAME}}}}{{#regex:{{ratings|{{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|{{PAGENAME}}}}|/.*?Stars(\d)\.png.*/|$1}}|=Unknown|0=Unknown|1=Broken|2=Intro/Menu|3=Starts|4=Playable|5=Perfect|$1}}</span>}}}} | |{{#ifpageincat:Disambiguation pages||{{!}} '''[[:Category:Rating|Compatibility]]''' {{!!}}{{ratings|{{PAGENAME}}}}{{#regex:{{ratings|{{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|{{PAGENAME}}}}|/.*?Stars(\d)\.png.*/|$1}}|=Unknown|0=Unknown|1=Broken|2=Intro/Menu|3=Starts|4=Playable|5=Perfect|$1}}</span>}}}} | ||
|{{!}} '''[[GameIDs]]''' {{!!}} {{# | |{{!}} '''[[GameIDs]]''' {{!!}} {{#var:tl_infobox_ids}} | ||
}} | |||
|{{!}} '''See also...''' {{!!}} | |{{!}} '''See also...''' {{!!}} | ||
{{#ifeq:{{#var:tl_infobox_autotitle}}|{{#var:tl_infobox_searchfix}}||{{#ifexist:{{#var:tl_infobox_autotitle}} (Arcade)|{{#ifeq:{{#var:tl_infobox_autotitle}} (Arcade)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (Arcade)|Arcade Version]]<br /> | {{#ifeq:{{#var:tl_infobox_autotitle}}|{{#var:tl_infobox_searchfix}}||{{#ifexist:{{#var:tl_infobox_autotitle}} (Arcade)|{{#ifeq:{{#var:tl_infobox_autotitle}} (Arcade)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (Arcade)|Arcade Version]]<br /> | ||
Line 74: | Line 78: | ||
Data Quality Categories | Data Quality Categories | ||
-->{{#if:{{{released|}}}|{{#if:{{#regex:{{{released|}}}|/Category/}}||[[Category:Pages with regionless release dates]]}}}}{{#ifeq:{{#regex:{{{input|}}}|/(((Wii Remote( \+ Nunchuk)?{{!}}Wii MotionPlus( \+ Nunchuk)?){{!}}Nunchuk{{!}}Nintendo DS{{!}}Active Heart Rate Monitor{{!}}Cyberbike{{!}}Ubisoft Camera{{!}}USB Keyboard{{!}}Skylander Portal{{!}}Game Boy Advance{{!}}Dance Pad{{!}}DK Bongos{{!}}TaTaCon{{!}}Wii Speak{{!}}USB Microphone{{!}}GameCube Microphone{{!}}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{{!}}LAN) \((\d{1,2}{{!!}}\*)\))(, {{!}}$))*/rs}}|{{{modes|}}}||[[Category:Pages with misformatted modes of play]]}}</includeonly><noinclude> | -->{{#if:{{#var:tl_infobox_ids}}||[[Category:Pages with no GameIDs]]}}{{#if:{{{released|}}}|{{#if:{{#regex:{{{released|}}}|/Category/}}||[[Category:Pages with regionless release dates]]}}}}{{#ifeq:{{#regex:{{{input|}}}|/(((Wii Remote( \+ Nunchuk)?{{!}}Wii MotionPlus( \+ Nunchuk)?){{!}}Nunchuk{{!}}Nintendo DS{{!}}Active Heart Rate Monitor{{!}}Cyberbike{{!}}Ubisoft Camera{{!}}USB Keyboard{{!}}Skylander Portal{{!}}Game Boy Advance{{!}}Dance Pad{{!}}DK Bongos{{!}}TaTaCon{{!}}Wii Speak{{!}}USB Microphone{{!}}GameCube Microphone{{!}}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{{!}}LAN) \((\d{1,2}{{!!}}\*)\))(, {{!}}$))*/rs}}|{{{modes|}}}||[[Category:Pages with misformatted modes of play]]}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 21:52, 29 May 2020
[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. |