Difference between revisions of "Template:ToolBox"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
+
<includeonly><table cellspacing="4" cellpadding="2" style="border: 1px solid #cedff2; background-color: #F9F9F9; clear: right; float: right; width: 25em; text-align: left; font-size: 88%; line-height: 1.5em; margin: .5em 0 .5em 1em"><caption style="font-size: 125%; font-weight: bold;">{{{name|{{PAGENAME}}}}}</caption>{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align: center">{{{image}}}</td></tr>}}{{#if:{{{version|}}}|<tr><th>Current version:</th><td>{{Hint|{{{version}}}|
<includeonly><table cellspacing="4" cellpadding="2" style="border: 1px solid #cedff2; background-color: #F9F9F9; clear: right; float: right; width: 25em; text-align: left; font-size: 88%; line-height: 1.5em; margin: .5em 0 .5em 1em"><caption style="font-size: 125%; font-weight: bold;">{{{name|{{PAGENAME}}}}}</caption>
+
{{#if:{{{date|}}}|Released on {{{date}}}}}}}{{#ifeq:{{{patrol|yes}}}|yes|{{#ifexpr:{{#expr:(({{CURRENTYEAR}}-{{REVISIONYEAR}})*365)+(({{CURRENTMONTH}}-{{REVISIONMONTH}})*30)+({{CURRENTDAY}}-{{REVISIONDAY}})}}>90|&nbsp;<span style="color: red">{{hint|('''!''')|It has been 3 months since last edit of this page. Check if a new version of this tool has been released since then and update the article with appropriate information.}}</span>[[Category:Articles needing update]]}}}}</td></tr>}}{{#if:{{{author|}}}|<tr><th>Developed by:</th><td>{{{author}}}</td></tr>}}{{#if:{{{game|}}}|<tr><th>Supported games:</th><td>{{{game}}}</td></tr>}}{{#if:{{{genre|}}}|<tr><th>Type:</th><td>{{{genre}}}</td></tr>}}{{#if:{{{site|}}}|<tr><th>Website:</th><td>{{{site}}}</td></tr>}}{{#if:{{{initialrelease|}}}|<tr><th>Initial release:</th><td>{{{initialrelease}}}</td></tr>}}{{#if:{{{devstatus|}}}|<tr><th>Development status:</th><td>{{{devstatus}}}</td></tr>}}{{#if:{{{nextversion|}}}|<tr><th>Next version:</th><td>{{{nextversion}}}</td></tr>}}{{#if:{{{languages|}}}|<tr><th>Languages:</th><td>{{{languages}}}</td></tr>}}</table>[[Category:Tools]]</includeonly><noinclude>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.
{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align: center">{{{image}}}</td></tr>}}{{#if:{{{version|}}}|<tr><th>Current version:</th><td>{{Hint|{{{version}}}|{{#if:{{{date|}}}|Released on {{{date}}}}}}}{{#ifeq:{{{patrol|yes}}}|yes|{{#ifexpr:{{#expr:(({{CURRENTYEAR}}-{{REVISIONYEAR}})*365)+(({{CURRENTMONTH}}-{{REVISIONMONTH}})*30)+({{CURRENTDAY}}-{{REVISIONDAY}})}}>90|&nbsp;<span style="color: red">{{hint|('''!''')|It has been 3 months since last edit of this page. Check if a new version of this tool has been released since then and update the article with appropriate information.}}</span>[[Category:Articles needing update]]}}}}</td></tr>}}{{#if:{{{author|}}}|<tr><th>Developed by:</th><td>{{{author}}}</td></tr>}}{{#if:{{{game|}}}|<tr><th>Supported games:</th><td>{{{game}}}</td></tr>}}{{#if:{{{genre|}}}|Type:{{{genre}}}}}{{#if:{{{site|}}}|<tr><th>Website:</th><td>{{{site}}}</td></tr>}}{{#if:{{{status|}}}|<tr><th>Development status:</th><td>{{{status}}}</table>[[Category:Tools]]</includeonly><noinclude>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.
 
 
You can paste the template into an article by clicking [[Image:Button Toolbox.png]] button on the edit toolbar.
 
You can paste the template into an article by clicking [[Image:Button Toolbox.png]] button on the edit toolbar.
 
<pre>
 
<pre>
Line 12: Line 11:
 
| game    = <what game is it used for>
 
| game    = <what game is it used for>
 
| genre  = <what type is it>
 
| genre  = <what type is it>
| status  = <whether the development is still active or not>
 
 
| site    = <link to official website>
 
| site    = <link to official website>
 
| image  = [[Image:<image>|250px|<description>]]
 
| image  = [[Image:<image>|250px|<description>]]

Latest revision as of 18:41, 2 March 2017

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. You can paste the template into an article by clicking Button Toolbox.png button on the edit toolbar.

{{ToolBox
| name    = <name of the tool; if not present then it uses a page name>
| version = <its latest public version>
| patrol  = special flag (values: yes/no)*
| date    = <its latest release date>
| 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>]]
}}
  • When the patrol flag is set (i.e. set to yes) and the article is not updated for 3 months, the red exclamation mark will appear warning that a new version has probably been released. Set this parameter to no to disable patrolling (useful for the tools that aren't updated anymore) (by default it's enabled).