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...")
 
(+Semantics)
 
(4 intermediate revisions by the same user not shown)
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|}}}|[[{{gameLong|{{{1}}}}}|{{game|{{{1}}}}}]]|}}[[Appearance::{{game|{{{1|}}}}}| ]]{{#if: {{{2|}}}|<br />[[{{gameLong|{{{2}}}}}|{{game|{{{2}}}}}]]|}}[[Appearance::{{game|{{{2|}}}}}| ]]{{#if: {{{3|}}}|<br />[[{{gameLong|{{{3}}}}}|{{game|{{{3}}}}}]]|}}[[Appearance::{{game|{{{3|}}}}}| ]]{{#if: {{{4|}}}|<br />[[{{gameLong|{{{4}}}}}|{{game|{{{4}}}}}]]|}}[[Appearance::{{game|{{{4|}}}}}| ]]{{#if: {{{5|}}}|<br />[[{{gameLong|{{{5}}}}}|{{game|{{{5}}}}}]]|}}[[Appearance::{{game|{{{5|}}}}}| ]]{{#if: {{{6|}}}|<br />[[{{gameLong|{{{6}}}}}|{{game|{{{6}}}}}]]|}}[[Appearance::{{game|{{{6|}}}}}| ]]{{#if: {{{7|}}}|<br />[[{{gameLong|{{{7}}}}}|{{game|{{{7}}}}}]]|}}[[Appearance::{{game|{{{7|}}}}}| ]]{{#if: {{{8|}}}|<br />[[{{gameLong|{{{8}}}}}|{{game|{{{8}}}}}]]|}}[[Appearance::{{game|{{{8|}}}}}| ]]{{#if: {{{9|}}}|<br />[[{{gameLong|{{{9}}}}}|{{game|{{{9}}}}}]]|}}[[Appearance::{{game|{{{9|}}}}}| ]]{{#if: {{{10|}}}|<br />[[{{gameLong|{{{10}}}}}|{{game|{{{10}}}}}]]|}}[[Appearance::{{game|{{{10|}}}}}| ]]{{#if: {{{11|}}}|<br />[[{{gameLong|{{{11}}}}}|{{game|{{{11}}}}}]]|}}[[Appearance::{{game|{{{11|}}}}}| ]]{{#if: {{{12|}}}|<br />[[{{gameLong|{{{12}}}}}|{{game|{{{12}}}}}]]|}}[[Appearance::{{game|{{{12|}}}}}| ]]{{#if: {{{13|}}}|<br />[[{{gameLong|{{{13}}}}}|{{game|{{{13}}}}}]]|}}[[Appearance::{{game|{{{13|}}}}}| ]]{{#if: {{{14|}}}|<br />[[{{gameLong|{{{14}}}}}|{{game|{{{14}}}}}]]|}}[[Appearance::{{game|{{{14|}}}}}| ]]{{#if: {{{15|}}}|<br />[[{{gameLong|{{{15}}}}}|{{game|{{{15}}}}}]]|}}[[Appearance::{{game|{{{15|}}}}}| ]]{{#if: {{{16|}}}|<br />[[{{gameLong|{{{16}}}}}|{{game|{{{16}}}}}]]|}}[[Appearance::{{game|{{{16|}}}}}| ]]{{#if: {{{17|}}}|<br />[[{{gameLong|{{{17}}}}}|{{game|{{{17}}}}}]]|}}[[Appearance::{{game|{{{17|}}}}}| ]]{{#if: {{{18|}}}|<br />[[{{gameLong|{{{18}}}}}|{{game|{{{18}}}}}]]|}}[[Appearance::{{game|{{{18|}}}}}| ]]{{#if: {{{19|}}}|<br />[[{{gameLong|{{{19}}}}}|{{game|{{{19}}}}}]]|}}[[Appearance::{{game|{{{19|}}}}}| ]]{{#if: {{{20|}}}|<br />[[{{gameLong|{{{20}}}}}|{{game|{{{20}}}}}]]|}}[[Appearance::{{game|{{{20|}}}}}| ]]<noinclude>{{doc}}</noinclude>
{{#if: {{{19|}}}|<br />[[{{game|{{{19}}}}}]]|}}<noinclude>{{doc}}</noinclude>

Latest revision as of 10:39, 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|}}}}}