Template:Infobox VG: Difference between revisions
Jump to navigation
Jump to search
(Use Template:Exist instead of #ifexist to avoid polluting Special:WantedPages; hopefully this doesn't break everything) |
(Undo revision 169909 by Pokechu22 (throws everything at Category:Pages with template loops, which is potentially worse than having a polluted Special:WantedPages)) |
||
Line 26: | Line 26: | ||
<!--Regional List-->{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}PAL{{!}}AUS{{!}}KO{{!}}RU{{!}}SA{{!}}CA{{!}}NL).*?>.*?>\s*([^\[{{!}}<]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:$1 (Publisher)|$1]][[Category:$1 (Publisher)]]}}}} | <!--Regional List-->{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}PAL{{!}}AUS{{!}}KO{{!}}RU{{!}}SA{{!}}CA{{!}}NL).*?>.*?>\s*([^\[{{!}}<]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:$1 (Publisher)|$1]][[Category:$1 (Publisher)]]}}}} | ||
}} | }} | ||
|{{#if:{{{series|}}}|{{!}} '''[[:Category:Series|Series]]''' {{!!}}{{#vardefine:tl_infobox_series|{{#regex:{{{series|}}}|/''/|}}}}{{#vardefine:tl_infobox_seriescheck|{{#regex:{{#var:tl_infobox_series}}|/^\s*([^,]*).*/|$1}}}}{{#while:|{{#var:tl_infobox_seriescheck}}|{{#if:{{#var:tl_infobox_serieshaslooped}}|, <nowiki/>|{{#vardefine:tl_infobox_serieshaslooped|true}}}}''[[:Category:{{#var:tl_infobox_seriescheck}} (Series)|{{#var:tl_infobox_seriescheck}}]]''[[Category:{{#var:tl_infobox_seriescheck}} (Series)]]{{ | |{{#if:{{{series|}}}|{{!}} '''[[:Category:Series|Series]]''' {{!!}}{{#vardefine:tl_infobox_series|{{#regex:{{{series|}}}|/''/|}}}}{{#vardefine:tl_infobox_seriescheck|{{#regex:{{#var:tl_infobox_series}}|/^\s*([^,]*).*/|$1}}}}{{#while:|{{#var:tl_infobox_seriescheck}}|{{#if:{{#var:tl_infobox_serieshaslooped}}|, <nowiki/>|{{#vardefine:tl_infobox_serieshaslooped|true}}}}''[[:Category:{{#var:tl_infobox_seriescheck}} (Series)|{{#var:tl_infobox_seriescheck}}]]''[[Category:{{#var:tl_infobox_seriescheck}} (Series)]]{{#ifexist:Category:{{#var:tl_infobox_seriescheck}} (Series)||[[Category:Pages with redlink series]]}}{{#vardefine:tl_infobox_series|{{#regex:{{#var:tl_infobox_series}}|/^\s*([^,]*)(,? ?)/|}}}}{{#vardefine:tl_infobox_seriescheck|{{#regex:{{#var:tl_infobox_series}}|/^\s*([^,]*).*/|$1}}}}}}{{#if:{{#var:tl_infobox_serieshaslooped}}||[[Category:Game pages with misformatted series]]}}}} | ||
|{{#ifpageincat:Platforms||{{!}} '''[[:Category:Platforms|Platform(s)]]''' {{!!}}{{#ifpageincat:Virtual Console games|[[Virtual Console]]{{#ifpageincat:NES games|, [[NES]]|{{#ifpageincat:TurboGrafx-16 games|, [[TurboGrafx-16]]|{{#ifpageincat:SNES games|, [[SNES]]|{{#ifpageincat:Sega Genesis games|, [[Sega Genesis]]|{{#ifpageincat:Arcade games|, [[Arcade]]|{{#ifpageincat:Neo Geo games|, [[Neo Geo]]|{{#ifpageincat:Nintendo 64 games|, [[Nintendo 64]]|{{#ifpageincat:Commodore 64 games|, [[Commodore 64]]|{{#ifpageincat:Sega Master System games|, [[Sega Master System]]|{{#ifpageincat:MSX games|, [[MSX]]|[[Category:Pages missing platform category]]}}}}}}}}}}}}}}}}}}}}|{{#ifpageincat:Wii games|[[Wii]]|{{#ifpageincat:GameCube games|[[GameCube]]|{{#ifpageincat:WiiWare games|[[WiiWare]]|{{#ifpageincat:Wii Channels|[[Wii Channels]]|{{#ifpageincat:Triforce games|[[Triforce]]|{{#ifpageincat:Wii U vWii|[[:Category:Wii U vWii|Wii U vWii]]|[[Category:Pages missing platform category]]}}}}}}}}}}}}}}}} | |{{#ifpageincat:Platforms||{{!}} '''[[:Category:Platforms|Platform(s)]]''' {{!!}}{{#ifpageincat:Virtual Console games|[[Virtual Console]]{{#ifpageincat:NES games|, [[NES]]|{{#ifpageincat:TurboGrafx-16 games|, [[TurboGrafx-16]]|{{#ifpageincat:SNES games|, [[SNES]]|{{#ifpageincat:Sega Genesis games|, [[Sega Genesis]]|{{#ifpageincat:Arcade games|, [[Arcade]]|{{#ifpageincat:Neo Geo games|, [[Neo Geo]]|{{#ifpageincat:Nintendo 64 games|, [[Nintendo 64]]|{{#ifpageincat:Commodore 64 games|, [[Commodore 64]]|{{#ifpageincat:Sega Master System games|, [[Sega Master System]]|{{#ifpageincat:MSX games|, [[MSX]]|[[Category:Pages missing platform category]]}}}}}}}}}}}}}}}}}}}}|{{#ifpageincat:Wii games|[[Wii]]|{{#ifpageincat:GameCube games|[[GameCube]]|{{#ifpageincat:WiiWare games|[[WiiWare]]|{{#ifpageincat:Wii Channels|[[Wii Channels]]|{{#ifpageincat:Triforce games|[[Triforce]]|{{#ifpageincat:Wii U vWii|[[:Category:Wii U vWii|Wii U vWii]]|[[Category:Pages missing platform category]]}}}}}}}}}}}}}}}} | ||
|{{#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)]]}} | ||
Line 42: | Line 42: | ||
}} | }} | ||
|{{!}} '''See also...''' {{!!}} | |{{!}} '''See also...''' {{!!}} | ||
{{#ifeq:{{#var:tl_infobox_autotitle}}|{{PAGENAME}}||{{ | {{#ifeq:{{#var:tl_infobox_autotitle}}|{{PAGENAME}}||{{#ifexist:{{#var:tl_infobox_autotitle}} (Arcade)|{{#ifeq:{{#var:tl_infobox_autotitle}} (Arcade)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (Arcade)|Arcade Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (C64)|{{#ifeq:{{#var:tl_infobox_autotitle}} (C64)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (C64)|C64 Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (Genesis)|{{#ifeq:{{#var:tl_infobox_autotitle}} (Genesis)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (Genesis)|Genesis Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (MSX)|{{#ifeq:{{#var:tl_infobox_autotitle}} (MSX)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (MSX)|MSX Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (NES)|{{#ifeq:{{#var:tl_infobox_autotitle}} (NES)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (NES)|NES Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (SNES)|{{#ifeq:{{#var:tl_infobox_autotitle}} (SNES)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (SNES)|SNES Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (SMS)|{{#ifeq:{{#var:tl_infobox_autotitle}} (SMS)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (SMS)|SMS Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (TurboGrafx-16)|{{#ifeq:{{#var:tl_infobox_autotitle}} (TurboGrafx-16)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (TurboGrafx-16)|TurboGrafx-16 Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (Triforce)|{{#ifeq:{{#var:tl_infobox_autotitle}} (Triforce)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (Triforce)|Triforce Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (GC)|{{#ifeq:{{#var:tl_infobox_autotitle}} (GC)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (GC)|GameCube Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (WiiWare)|{{#ifeq:{{#var:tl_infobox_autotitle}} (WiiWare)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (WiiWare)|WiiWare Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (Wii)|{{#ifeq:{{#var:tl_infobox_autotitle}} (Wii)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (Wii)|Wii Version]]<br /> | ||
}}}}{{ | }}}}{{#ifexist:{{#var:tl_infobox_autotitle}} (Metroid Prime: Trilogy)|{{#ifeq:{{#var:tl_infobox_autotitle}} (Metroid Prime: Trilogy)|{{PAGENAME}}||[[{{#var:tl_infobox_autotitle}} (Metroid Prime: Trilogy)|Trilogy Version]]<br /> | ||
}}}}}} | }}}}}} | ||
{{#if:{{{forumlink|}}}|[{{{forumlink|}}} Dolphin Forum thread]|[[google:{{#regex:{{#var:tl_infobox_autotitle}}|/\s/|+}}+site:forums.dolphin-emu.org|Search Dolphin Forums]][[Category:Game pages without Dolphin forum link]]}}<br /> | {{#if:{{{forumlink|}}}|[{{{forumlink|}}} Dolphin Forum thread]|[[google:{{#regex:{{#var:tl_infobox_autotitle}}|/\s/|+}}+site:forums.dolphin-emu.org|Search Dolphin Forums]][[Category:Game pages without Dolphin forum link]]}}<br /> |
Revision as of 08:12, 24 November 2019
[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. |