Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a231db836989a0d6

Jump to content

Module:VgData/doc

From Wikipedia, the free encyclopedia

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

[edit]

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

[edit]

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

[edit]

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
    • 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 2 will create a 4 column table). If not included, this value defaults to 3 for all table types

Terms

[edit]

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: