Template:Gameselect: Difference between revisions

m (Gboyers moved page Template:GameSelect to Template:Gameselect without leaving a redirect)
No edit summary
Line 1: Line 1:
[[{{game|{{{1|}}}}}]]{{#if: {{{2|}}}|<br />[[{{game|{{{2}}}}}]]|}}{{#if: {{{3|}}}|<br />[[{{game|{{{3}}}}}]]|}}{{#if: {{{4|}}}|<br /> [[{{game|{{{4}}}}}]]|}}<br /> {{#if: {{{5|}}}|<br />[[{{game|{{{5}}}}}]]|}}{{#if: {{{6|}}}|<br />[[{{game|{{{6}}}}}]]|}}{{#if: {{{7|}}}|<br />[[{{game|{{{7}}}}}]]|}}{{#if: {{{8|}}}|<br />[[{{game|{{{8}}}}}]]|}}{{#if: {{{9|}}}|<br />[[{{game|{{{9}}}}}]]|}}{{#if: {{{10|}}}|<br />[[{{game|{{{10}}}}}]]|}}{{#if: {{{11|}}}|<br />[[{{game|{{{11}}}}}]]|}}{{#if: {{{12|}}}|<br />[[{{game|{{{12}}}}}]]|}}{{#if: {{{13|}}}|<br />[[{{game|{{{13}}}}}]]|}}{{#if: {{{14|}}}|<br />[[{{game|{{{14}}}}}]]|}}{{#if: {{{15|}}}|<br />[[{{game|{{{15}}}}}]]|}}{{#if: {{{16|}}}|<br />[[{{game|{{{16}}}}}]]|}}{{#if: {{{17|}}}|<br />[[{{game|{{{17}}}}}]]|}}{{#if: {{{18|}}}|<br />[[{{game|{{{18}}}}}]]|}}
{{#if: {{{1|}}}|<br />[[{{gameLong|{{{1}}}}}|{{game|{{{1}}}}}]]|}}
{{#if: {{{19|}}}|<br />[[{{game|{{{19}}}}}]]|}}<noinclude>{{doc}}</noinclude>
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{2}}}}}|{{game|{{{2}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{3}}}}}|{{game|{{{3}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{4}}}}}|{{game|{{{4}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{5}}}}}|{{game|{{{5}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{6}}}}}|{{game|{{{6}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{7}}}}}|{{game|{{{7}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{8}}}}}|{{game|{{{8}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{9}}}}}|{{game|{{{9}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{10}}}}}|{{game|{{{10}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{11}}}}}|{{game|{{{11}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{12}}}}}|{{game|{{{12}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{13}}}}}|{{game|{{{13}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{14}}}}}|{{game|{{{14}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{15}}}}}|{{game|{{{15}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{16}}}}}|{{game|{{{16}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{17}}}}}|{{game|{{{17}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{18}}}}}|{{game|{{{18}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{19}}}}}|{{game|{{{19}}}}}]]|}}
{{#if: {{{2|}}}|<br />[[{{gameLong|{{{20}}}}}|{{game|{{{20}}}}}]]|}}<noinclude>{{doc}}</noinclude>

Revision as of 10:14, 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
[[{{{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|}}}}}