Difference between revisions of "Template:ToolBox"

From GTAMods Wiki
Jump to navigation Jump to search
(test game category)
m
Line 4: Line 4:
 
{{#if:{{{version|}}}|<tr><th>Current version:</th><td>{{{version}}}</td></tr>}}
 
{{#if:{{{version|}}}|<tr><th>Current version:</th><td>{{{version}}}</td></tr>}}
 
{{#if:{{{author|}}}|<tr><th>Developed by:</th><td>{{{author}}}</td></tr>}}
 
{{#if:{{{author|}}}|<tr><th>Developed by:</th><td>{{{author}}}</td></tr>}}
{{#if:{{{game|}}}|<tr><th>Supported games:</th><td> {{#switch:{{{game}}}|GTA 4=[[:Category:GTA 4]]|{{{game}}}}}</td></tr>}}
+
{{#if:{{{game|}}}|<tr><th>Supported games:</th><td> {{#switch:{{{game}}}|GTA 4=[[:Category:GTA 4|{{{game}}}]]|{{{game}}}}}</td></tr>}}
 
 
 
{{#if:{{{genre|}}}|<tr><th>Type:</th><td>{{{genre}}}</td></tr>}}
 
{{#if:{{{genre|}}}|<tr><th>Type:</th><td>{{{genre}}}</td></tr>}}
 
{{#if:{{{site|}}}|<tr><th>Website:</th><td>{{{site}}}</td></tr>}}
 
{{#if:{{{site|}}}|<tr><th>Website:</th><td>{{{site}}}</td></tr>}}

Revision as of 03:04, 31 December 2008

ToolBox

The ToolBox template is used to list informative facts about a tool in a box at the top right of its wiki page. To include it in an article, insert the following code at the beginning and fill in the <missing values>, without the angle brackets. All of them are optional, so you can delete the lines you have no data for.

{{ToolBox
| name    = <name of the tool; if not present then it uses a page name>
| version = <its latest public version>
| author  = <who made this tool>
| game    = <what game is it used for>
| genre   = <what type is it>
| site    = <link to official website>
| image   = [[Image:<image>|250px|<description>]]
}}