Template:Gameselect

Revision as of 10:14, 4 August 2012 by Gboyers (talk | contribs)










This documentation is imported from Template:Gameselect/doc

This template is used for generating 'Games' or 'Appearances' lists, usually for infoboxes.

Input game names or IDs (in any format), and it will output a list of links to those games (in short form, but linking to long form) on new lines.

For example, specifying {{gameselect | 3}} will output GTA III - where the link goes to Grand Theft Auto III.

Note the order of the output will be the order of the input - it won't reorder them into chronological/numerical order. There is currently a maximum of 20 games in this template.


Usage

The code:

{{gameselect | VC | San andreas | gta4 | ballad}}

Will produce:

GTA Vice City
GTA San Andreas
GTA IV
The Ballad of Gay Tony
[[{{{5}}}|{{{5}}}]]
[[{{{6}}}|{{{6}}}]]
[[{{{7}}}|{{{7}}}]]
[[{{{8}}}|{{{8}}}]]
[[{{{9}}}|{{{9}}}]]
[[{{{10}}}|{{{10}}}]]
[[{{{11}}}|{{{11}}}]]
[[{{{12}}}|{{{12}}}]]
[[{{{13}}}|{{{13}}}]]
[[{{{14}}}|{{{14}}}]]
[[{{{15}}}|{{{15}}}]]
[[{{{16}}}|{{{16}}}]]
[[{{{17}}}|{{{17}}}]]
[[{{{18}}}|{{{18}}}]]
[[{{{19}}}|{{{19}}}]]
[[{{{20}}}|{{{20}}}]]


Infoboxes

For an infobox, you probably already have the inputs {{{game}}} (or {{{game1}}}), {{{game2}}}, {{{game3}}} etc. To apply this template, just use the following code:

{{gameselect|{{{game1|}}}|{{{game2|}}}|{{{game3|}}}|{{{game4|}}}|{{{game5|}}}|{{{game6|}}}|{{{game7|}}}|{{{game8|}}}|{{{game9|}}}|{{{game10|}}}|{{{game11|}}}|{{{game12|}}}|{{{game13|}}}|{{{game14|}}}|{{{game15|}}}|{{{game16|}}}|{{{game17|}}}|{{{game18|}}}|{{{game19|}}}|{{{game20|}}}}}