You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Template:Tool/doc: Difference between revisions
imported>BryanDavis (Add maintainer parameter) |
imported>Quiddity (link to Module:Tool for help with license variables) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Documentation subpage}}</noinclude> | <noinclude>{{Documentation subpage}}</noinclude> | ||
{{lua|Module:Tool}} | {{lua|Module:Tool}} | ||
'''Tool''' is a template for documenting [[Portal: | '''Tool''' is a template for documenting [[Portal:Toolforge|Toolforge]] tools. | ||
{{Clear}} | {{Clear}} | ||
== Usage == | == Usage == | ||
Line 12: | Line 12: | ||
<span id="CutAndPaste">Copy and paste:</span> | <span id="CutAndPaste">Copy and paste:</span> | ||
<pre>{{Tool | <pre>{{Tool | ||
|name = | |name = | ||
|title = | |title = | ||
Line 24: | Line 23: | ||
|license = | |license = | ||
|image = | |image = | ||
|imagesize = | |||
|phabricator = | |phabricator = | ||
|bugzilla = | |bugzilla = | ||
|issues = | |issues = | ||
|sal = | |||
|icon = | |||
}} | }} | ||
</pre> | </pre> | ||
For help with parameter values, see [[#Template parameters|below]]. | For help with parameter values, see [[#Template parameters|below]]. For recognized license-values see [[Module:Tool]]. | ||
| align="right"|{{Tool | | align="right"|{{Tool | ||
Line 48: | Line 50: | ||
|bugzilla = {{{bugzilla}}} | |bugzilla = {{{bugzilla}}} | ||
|issues = {{{issues}}} | |issues = {{{issues}}} | ||
|sal = {{{sal}}} | |||
}} | }} | ||
|} | |} | ||
Line 101: | Line 104: | ||
"license": { | "license": { | ||
"label": "License", | "label": "License", | ||
"description": "OSI-approved license of tool's source code", | "description": "OSI-approved license of tool's source code - see [[Module:Tool]]", | ||
"example": "GPL-2.0+", | "example": "GPL-2.0+", | ||
"type": "string", | "type": "string", | ||
Line 109: | Line 112: | ||
"label": "Phabricator", | "label": "Phabricator", | ||
"description": "Phabricator project name", | "description": "Phabricator project name", | ||
"example": " | "example": "Tool-Mytool", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
Line 120: | Line 123: | ||
}, | }, | ||
"issues": { | "issues": { | ||
"label": " | "label": "Issue tracker", | ||
"description": "URL to issue tracker if not using Phabricator", | "description": "URL to issue tracker if not using Phabricator", | ||
"type": "url" | "type": "url" | ||
Line 148: | Line 151: | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"suggested": true | "suggested": true | ||
}, | |||
"imagesize": { | |||
"label": "Image size", | |||
"description": "Image size in pixels", | |||
"type": "string", | |||
"default": "220px" | |||
}, | }, | ||
"maintainer": { | "maintainer": { | ||
Line 153: | Line 162: | ||
"description": "Tool maintainers", | "description": "Tool maintainers", | ||
"type": "string" | "type": "string" | ||
}, | |||
"sal": { | |||
"label": "Server Admin Log", | |||
"description": "Link to server admin log for tool", | |||
"example": "[[Nova_Resource:Tools.stashbot/SAL]]", | |||
"type": "content" | |||
}, | |||
"icon": { | |||
"label": "Icon", | |||
"description": "Icon in the top left corner of the template.", | |||
"type": "wiki-file-name", | |||
"default": "Crystal_Clear_app_package_utilities.png" | |||
} | } | ||
}, | }, | ||
Line 167: | Line 188: | ||
"license", | "license", | ||
"image", | "image", | ||
"imagesize", | |||
"phabricator", | "phabricator", | ||
"bugzilla", | "bugzilla", | ||
"issues", | "issues", | ||
"templatemode" | "sal", | ||
"templatemode", | |||
"icon" | |||
], | ], | ||
"format": "block", | "format": "block", | ||
"description": "Describes a | "description": "Describes a Toolforge tool (or a tool hosted elsewhere)" | ||
} | } | ||
</templatedata> | </templatedata> |
Latest revision as of 20:21, 11 September 2021
![]() | This is a documentation subpage for Template:Tool. It contains usage information, categories and other content that is not part of the original template page. |
Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Lua banner.tab. Tool is a template for documenting Toolforge tools.
Usage
Copy and paste: {{Tool |name = |title = |description = |website = |keywords = |author = |username = |maintainer = |repository = |license = |image = |imagesize = |phabricator = |bugzilla = |issues = |sal = |icon = }} For help with parameter values, see below. For recognized license-values see Module:Tool. |
|
Template parameters
<templatedata> { "params": { "name": { "label": "Name", "description": "Name of tool", "example": "my-tool", "type": "string", "required": true, "suggested": true }, "title": { "label": "Title", "description": "Title of tool", "example": "My awesome tool", "type": "string", "suggested": true }, "description": { "label": "Description", "description": "Short description of tool", "example": "Lookup things about stuff that really matters", "type": "string", "suggested": true }, "website": { "label": "URL", "description": "URL to tool's user interface or documentation", "example": "my-tool", "type": "url", "suggested": true }, "keywords": { "label": "Keywords", "description": "Keywords related to tool", "example": "lookup, patroller, bot", "type": "string", "suggested": true }, "repository": { "label": "Repository", "description": "URL to version control for tool", "example": "https://gerrit.wikimedia.org/r/#/admin/projects/labs/tools/grrrit", "type": "url", "suggested": true }, "license": { "label": "License", "description": "OSI-approved license of tool's source code - see Module:Tool", "example": "GPL-2.0+", "type": "string", "suggested": true }, "phabricator": { "label": "Phabricator", "description": "Phabricator project name", "example": "Tool-Mytool", "type": "string" }, "bugzilla": { "label": "Bugzilla", "description": "Bugzilla component", "example": "Mytool", "type": "string", "deprecated": "Use Phabricator instead" }, "issues": { "label": "Issue tracker", "description": "URL to issue tracker if not using Phabricator", "type": "url" }, "author": { "label": "Author(s)", "description": "Tool authors", "example": "Some Author, Another Author", "type": "string", "suggested": true }, "username": { "label": "Username", "description": "Wikitech username of solo author", "example": "SomeUser", "type": "wiki-user-name", "suggested": true }, "templatemode": { "type": "string", "description": "Hack for displaying template on documentation page", "example": "nocats" }, "image": { "label": "Image", "description": "Image representing tool or screenshot", "type": "wiki-file-name", "suggested": true }, "imagesize": { "label": "Image size", "description": "Image size in pixels", "type": "string", "default": "220px" }, "maintainer": { "label": "Maintainer", "description": "Tool maintainers", "type": "string" }, "sal": { "label": "Server Admin Log", "description": "Link to server admin log for tool", "example": "Nova_Resource:Tools.stashbot/SAL", "type": "content" }, "icon": { "label": "Icon", "description": "Icon in the top left corner of the template.", "type": "wiki-file-name", "default": "Crystal_Clear_app_package_utilities.png" } }, "paramOrder": [ "name", "title", "description", "website", "keywords", "author", "username", "maintainer", "repository", "license", "image",
"imagesize",
"phabricator", "bugzilla", "issues", "sal", "templatemode", "icon" ], "format": "block", "description": "Describes a Toolforge tool (or a tool hosted elsewhere)" } </templatedata>