This module creates a set of tables useful for video game List pages. The module pulls data from accompanying data pages, and then outputs a table containing the specified parameters and terms.
Usage
The module takes up to 4 named Parameters, and uses those to determine the type of table you’re looking to make. it then uses any provided Terms to fill that table with the appropriate information.
Terms must be defined on the appropriate template page, and must have the exact spelling, capitalization, and punctuation as on the template page, or else the table will provide an “undefined parameter” message. Terms must be given in alphabetical order, in order to display correctly
Example
For example, the code {{#invoke:VgData|main|ct=platform|col=3|DC|DS|GBA|GBC|Wii}} will output the Platform variant of the table in 3 column-pairs with the specified platforms, as seen below:
| DC | Dreamcast | DS | Nintendo DS, DSiWare, iQue DS | GBA | Game Boy Advance, iQue GBA |
| GBC | Game Boy Color | Wii | Wii, WiiWare, Wii Virtual Console |
Parameters
The following Parameters are supported within the module:
ct: This is used to select the type of table you want to create. This element is required for the table to generate. The following table types are supported:platform: This element creates a table of video game platformsrelease: This element creates a table of video game release typesgenre: This element creates a table of video game genres and their related subgenres
all: This optional element can be used with any table type. If set totrue, the table will output every element listed on the specific data page for that table type.ver: This element is only used in conjunction with thegenretable, and is used to select the version of the video game genre table you’re building. The following versions are currently supported:none: Ifveris left off, or you usever=none, then the table will generate with no genre preset. In this case, you can add any supported sub-genre, and the module will output a custom table for your needsRPG: This version sets the table to pull elements from the RPG genre dataset. In conjunction withall, this will output the default RPG tableStrategy: This version sets the table to pull elements from the Strategy genre dataset. In conjunction withall, this will output the default Strategy table
col: This sets the number of column-pairs you want the table to use (setting this number to 3 will create a 6 column table). If not included, this value defaults to 3 forplatformandgenre, and 1 forrelease
Terms
In addition to parameters, each table type has specific terms that can be input. Each of these elements are listed on the specific template page for that chart type. For a list of all the terms, see one of the following related Template pages:
- For the
platformtable type, see Template:VgPlatforms - For the
genretable type, see Template:VgGenres - For the
releasetable type, see Template:VgRelease