Template:Gameselect: Difference between revisions
New Page: "[[{{game|{{{1|}}}}}]]{{#if: {{{2|}}}|<br />[[{{game|{{{2}}}}}]]|}}{{#if: {{{3|}}}|<br />[[{{game|{{{3}}}}}]]|}}{{#if: {{{4|}}}|<br /> [[{{game|{{{4}}}}}]]|}}<br /> {{#if: {{{5|}}}|<br..." |
m Gboyers moved page Template:GameSelect to Template:Gameselect without leaving a redirect |
||
(No difference)
|
Revision as of 10:05, 4 August 2012
[[]]
- 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
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|}}}}}