Jump to content

Template:Game/doc: Difference between revisions

no edit summary
(New Page: "This template transforms any format of a game's name (eg: gtavc, gta 3, grand theft auto four) into its proper mid-form name (GTA Vice City, GTA III, GTA IV). This is designed for te...")
 
No edit summary
Line 1: Line 1:
This template transforms any format of a game's name (eg: gtavc, gta 3, grand theft auto four) into its proper mid-form name (GTA Vice City, GTA III, GTA IV).
This template is used for showing the short-length game name for any game.


This is designed for templates, where a user could put in a slightly-wrong game name when we want the exact name (for use in links or semantics).
For example, inputting 'sa' or 'san andreas' would produce the output: {{game|sa}}


Tho change an input, just pass it as a parameter, one game at a time.
 
<pre>{{game | text to transform }}
If you want a different [[Grand Theft Wiki:Games|game name format]], you can instead use {{template|id}}, {{template|long}} or {{template|condensed}}. Those templates actually use this template to figure out which game is being requested.
{{game | gta4 }}</pre>
 
 
===Usage===
 
There is 1 parameter. You can input virtually ANY variation on a game name, whether long or short form, or any other incorrect form.
 
It will output the short-length game name, such as: <code>GTA III, GTA San Andreas</code>
 
To request the short game name for the input "Three" just use:
<nowiki>{{game | Three}}</nowiki>
 
This will then work out that you mean GTA III and output the correct long name of: {{game|three}}




Cookies help us deliver our services. By using our services, you agree to our use of cookies.