Difference between revisions of "Template:ToolBox"
Jump to navigation
Jump to search
m |
m |
||
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> | <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}}}|{{#if:{{{date|}}}|Released on {{{date}}}}}}}{{#ifeq:{{{patrol|yes}}}|yes|{{#ifexpr:{{#expr:(({{CURRENTYEAR}}-{{REVISIONYEAR}})*365)+(({{CURRENTMONTH}}-{{REVISIONMONTH}})*30)+({{CURRENTDAY}}-{{REVISIONDAY}})}}>90| <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: | + | {{#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| <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>}}</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. |
<pre> | <pre> | ||
{{ToolBox | {{ToolBox |
Revision as of 12:02, 5 April 2009
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> | 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 disabled).