Template:Infobox VG: Difference between revisions

Jump to navigation Jump to search
(Output categories for genres, Output some additional data quality categories)
(Oops)
Line 45: Line 45:
|{{#if:{{{channeltype|}}}| {{!}} '''Type''' {{!!}} {{{type|}}} }}
|{{#if:{{{channeltype|}}}| {{!}} '''Type''' {{!!}} {{{type|}}} }}
}}
}}
|}<!--Data Quality Categories-->{{#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|}}}||[[Category:Game pages without modes of play]]}}{{#if:{{{input|}}}||[[Category:Game pages without possible inputs]]}}<!--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|}}}|/.*(Online).*/|$1}}|Online|[[Category:Online games]]|}}<!--Genre categories-->{{#if:{{{genre|}}}|<!--1st-->{{#regex: {{{genre|}}}|/([^,]*).*/r|[[Category:$1 game]]|1}}<!--2nd-->{{#regex: {{{genre|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:$1 game]]|1}}<!--3rd-->{{#regex: {{{genre|}}}|/[^,]*,[^,]*,([^,]*)(,.*)?/r|[[Category:$1 game]]|1}}<!--4th-->{{#regex: {{{genre|}}}|/[^,]*,[^,]*,[^,]*,([^,]*)(,.*)?/r|[[Category:$1 game]]|1}}<!--5th-->{{#regex: {{{genre|}}}|/[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)(,.*)?/r|[[Category:$1 game]]|1}}}}</includeonly><noinclude>
|}<!--Data Quality Categories-->{{#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|}}}||[[Category:Game pages without modes of play]]}}{{#if:{{{input|}}}||[[Category:Game pages without possible inputs]]}}<!--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|}}}|/.*(Online).*/|$1}}|Online|[[Category:Online games]]|}}<!--Genre categories-->{{#if:{{{genre|}}}|<!--1st-->{{#regex: {{{genre|}}}|/([^,]*).*/r|[[Category:$1 games]]|1}}<!--2nd-->{{#regex: {{{genre|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--3rd-->{{#regex: {{{genre|}}}|/[^,]*,[^,]*,([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--4th-->{{#regex: {{{genre|}}}|/[^,]*,[^,]*,[^,]*,([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}<!--5th-->{{#regex: {{{genre|}}}|/[^,]*,[^,]*,[^,]*,[^,]*,([^,]*)(,.*)?/r|[[Category:$1 games]]|1}}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>