Help:Game Templates
Grand Theft Wiki has a number of templates to help give consistency in how games work
Game ID
The {{id}} template gives you the correct ID for a GTA game, used in all these other templates.
This means whether someone inputs GTA 4
or GTA IV
or Grand Theft Auto IV
into a template, it will use the id template to translate that into iv
.
The other template can then just supply the correct output for iv
and not need to worry about the other permutations.
This means that if someone uses another tmeplate like {{icon}}, but supplies a name in any format, it should work. For example, {{icon|four}}
still gives
.
Other Templates
Template | Description | Example | Output |
---|---|---|---|
{{game}} | Shows the normal/short game name | {{game|iv}}
|
GTA IV |
{{long}} | Shows the full game name | {{long|iv}}
|
Grand Theft Auto IV |
{{gamelink}} | Shows the short game name, with a link | {{gamelink|iv}}
|
GTA IV |
{{condensed}} | Shows a condensed version of the game name (no spaces), usually used for generating image URLs | {{condensed|iv}}
|
GTAIV |
{{gameselect}} | Shows a list of game names, on new lines (for infoboxes) | {{gameselect | VC | SA | IV | BOGT }}
|
GTA Vice City GTA San Andreas GTA IV The Ballad of Gay Tony |
{{icon-large}} | Shows the large icon | {{Icon-large|iv}}
|
![]() |
{{icon}} | Shows a small icon | {{icon|iv}}
|
|
{{boxart}} | Shows the game's box art | {{boxart|iv|100px}}
|
![]() |
Checking all Variants
This table shows all of those templates, for all games, to prove they all work.
{{id}} | 1 | L61 | L69 | 2 | III | VC | SA | LCS | VCS | IV | TLAD | BOGT | CW | V | O | VI |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{game}} | GTA 1 | GTA London 1961 | GTA London 1969 | GTA 2 | GTA III | GTA Vice City | GTA San Andreas | GTA Liberty City Stories | GTA Vice City Stories | GTA IV | The Lost and Damned | The Ballad of Gay Tony | GTA Chinatown Wars | GTA V | GTA Online | GTA VI |
{{long}} | Grand Theft Auto 1 | Grand Theft Auto: London 1961 | Grand Theft Auto: London 1969 | Grand Theft Auto 2 | Grand Theft Auto III | Grand Theft Auto: Vice City | Grand Theft Auto: San Andreas | Grand Theft Auto: Liberty City Stories | Grand Theft Auto: Vice City Stories | Grand Theft Auto IV | The Lost and Damned | The Ballad of Gay Tony | Grand Theft Auto: Chinatown Wars | Grand Theft Auto V | Grand Theft Auto Online | Grand Theft Auto VI |
{{gamelink}} | GTA 1 | GTA London 1961 | GTA London 1969 | GTA 2 | GTA III | GTA Vice City | GTA San Andreas | GTA Liberty City Stories | GTA Vice City Stories | GTA IV | The Lost and Damned | The Ballad of Gay Tony | GTA Chinatown Wars | GTA V | GTA Online | GTA VI |
{{condensed}} | GTA1 | GTAL61 | GTAL69 | GTA2 | GTAIII | GTAVC | GTASA | GTALCS | GTAVCS | GTAIV | GTATLAD | GTABOGT | GTACW | GTAV | GTAO | GTAVI |
{{icon-large}} | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
{{icon}} | ||||||||||||||||
{{boxart}} | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |