Template:Tool/en: Difference between revisions
[[mw:]]>FuzzyBot (Updating to match new version of source page) |
ManfredoDo (talk | contribs) m (1 revision imported: Infobox templates) |
(No difference)
|
Latest revision as of 17:54, 12 November 2022
This template uses TemplateStyles: |
Purpose
This template should be added to the main page of all tools documented on this wiki (and only the main page). It will add a useful infobox using the information supplied (see below) and will automatically add the tool to All tools , plus the appropriate status and implementation type categories.
Usage
Copy and paste: {{Tool|templatemode = |name = |status = |type1 = |type2 = |username = |author = |description = |image = |imagesize = |version = |update = |version preview = |update preview = |mediawiki = |php = |license = |download = |readme = |changelog = |example = |parameters = |tags = |compatibility = |bugzilla = |phabricator = }} For help with parameter values, see below. |
|
Content parameters
This section describes parameters that govern infobox content. For help with templatemode and other control parameters, please see Control parameters.
Parameter | Description |
---|---|
name | name of the tool |
status | current release status
One of:
If the status is anything other than the above, it will be ignored and the default value of 'Unknown' will be displayed in the template instead. In cases where the value is omitted, it will be categorized as unknown . In cases where the value is invalid, it will be placed in a special category so that the error can be caught and fixed. |
type1 type2 type3 type4 type5 type6 |
implementation type
The implementation strategy(s) employed in building this tools. This parameter is used to create categories that help programmers find examples of various MediaWiki specific implementation strategies or patterns. Although the values of this parameter sometimes coincide with the use case or purpose of an tools, that is not reason for this parameter. If the values you have chosen for this parameter do not adequately identify the purpose or possible use cases, we recommend you add additional category links as needed.
Any other value for 'type' is invalid, and will cause the tool to be placed in Category:Tools with invalid or missing type. Note: Many tools have more than one type, if this applies to yours,replace |
username | The author's username on MediaWiki.org (if they have one). May be omitted, but if present it will be used to link to the author's user & user_talk page. |
The tool author's name, if different from their MediaWiki.org username. Free text. If omitted then the 'username' field will be used (if present). | |
description | short description |
image | screenshot or logo of tool |
imagesize | facultative, size of the image (default size is 220px) |
version | last version |
update | date of the last update |
mediawiki | required version of MediaWiki |
php | required version of PHP |
license | license(s) governing use of this tool, e.g. GPL |
download | link to the download : Git, {{WikimediaDownload}} with server=svn in case it was not migrated from SVN. If you put the code into page in the MediaWiki wiki, link to it using a full page name and section name, e.g. [[Tool:Example/version_1.22a#Code]] (it must remain valid when bot-copied elsewhere)
|
readme | link to the readme file : README or other |
changelog | link to the changelog file : CHANGELOG or other |
parameters | available parameters for LocalSettings.php |
any tags your tool uses (e.g. <tag1>, <tag2>). | |
rights | rights added by the tool. Not to be confused with the license! Not such as GFDL or LGPL or GPL - those are licenses! |
example | example, website or screenshot of working tool |
compatibility | compatibility chart, e.g. Template:Extension Testing |
bugzilla | Bugzilla MediaWiki extension component name |
CheckUsageNameOverride | override the page name used for the check usage link. |
Control parameters
Parameter | Description |
---|---|
templatemode | Controls auto-categorization of host page.
Normally left blank. Alternate values are:
|
Using the infobox
Existing tools pages
If you want to add the infobox to an existing page, copy and paste the code at the top of this page.
Infobox parameters
In general:
- To make this template easy to use, each label in the infobox is linked to documentation on the template parameter(s) it displays. If you add a parameter, please be sure to also add it to the content parameter documentation and link its label to its documentation.
To change/correct/add to the implementation type parameters (type1
, etc.):
- Discuss the change on the talk page
- Template:Tool/TypeSwitch: Stores the possible values for the type field. Multiple values are implemented by calling this template with Template:Foreach.
- Template:Tool/TypeSwitchNoCats: Used instead of Template:Tool/TypeSwitch when this template is used in
templatemode=nocats
. Templates used with Template:Foreach can only take one parameter so we need to wrap the call to Template:Tool/TypeSwitch with another template that sets the mode.
Test case
See if the following pages are still ok, after edited this template.