Sample Page

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:

Video game platforms
DCDreamcastDSNintendo DS, DSiWare, iQue DSGBAGame Boy Advance, iQue GBA
GBCGame Boy ColorWiiWii, 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 platforms
    • release : This element creates a table of video game release types
    • genre : 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 to true, 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 the genre table, and is used to select the version of the video game genre table you’re building. The following versions are currently supported:
    • none : If ver is left off, or you use ver=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 needs
    • RPG : This version sets the table to pull elements from the RPG genre dataset. In conjunction with all, this will output the default RPG table
    • Strategy : This version sets the table to pull elements from the Strategy genre dataset. In conjunction with all, 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 for platform and genre, and 1 for release

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: