Template:Bot/doc
| This is a documentation subpage for Template:Bot. It may contain usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 2,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template is used by one or more bots. If you intend to change this template in any significant way, move it, or nominate it for deletion, please inform the bot operators. Thank you. The relevant bots are: User:MajavahBot |
| Due to a server limit of 500 "expensive parser function" calls (e.g. #ifexist:, PAGESIZE:, and PAGESINCATEGORY:), this template will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised in Category:Pages with too many expensive parser function calls. (further information) |
{{Bot}} – An information box that indicates that the editor is not a human and actually an automatic process assigned to do menial tasks on Wikipedia.
Parameters
[edit]- 1
- The first unnamed parameter specifies the operator of the bot.
- 2, 3
- The second and third unnamed parameters can be used to specify co-operators of the bot, if required.
- site
- The two letter code for those operators that do not have an account on the English language Wikipedia (though having a local account is strongly recommended).
- status
- active (and approved), inactive (but approved), trial, unapproved, blocked, expired (previously approved but approval has lapsed), retired (previously approved but no longer editing, see also {{retired|bot=yes}})
- awb
- yes (if this bot uses AWB), or omit (if it doesn't).
- codebase
- The name of the code (programming or scripting language) used to create the bot (e.g., Pywikibot, perlWikipedia, ...)
- brfa
- Optional if specified, overrides the name of the request for approval. If not specified, defaults to {{BASEPAGENAME}}
- by
- Optional if specified, overrides the usual display of the operator's username in the first line generated from the three unnamed parameters.
- approvalneeded
- If status indicated active/approved, or globalbot, setting no will make the template indicate that the bot is running tasks for which no approval is needed.
- overridebrfa
- If the bot has multiple requests or approval, or multiple tasks, and the default BRFA link cannot link to a page that contains all the bot's approved requests or tasks, this field allows inputting a link to any Wikipedia page. Specifying this field overrides brfa.
- more
- Any additional information to specify in the mbox. Usually not needed, since
|status=,|brfa=, and|approvalneeded=covers most cases. - alt
- Optional alternate text for the image.
- globalbot
- If the bot is flagged globally.
Examples
[edit]| Code | Result | |||
|---|---|---|---|---|
{{Bot|John Smith}} |
| |||
{{Bot|John Smith|site=en}} |
| |||
{{Bot|John Smith|site=en|awb=yes}} |
| |||
{{Bot|John Smith|site=en |
| |||
{{Bot|John Smith|site=en|status=active}} |
| |||
{{Bot|John Smith|site=en|status=trial}} |
| |||
{{Bot|John Smith|site=en|status=inactive}} |
| |||
{{Bot|John Smith|site=en|status=unapproved}} |
| |||
{{Bot|John Smith|site=en |
| |||
{{Bot|John Smith|image=Crystal Clear question bot.svg |
|
TemplateData
[edit]TemplateData for Bot
Generates a notice on a bot's userpage, giving information about its activity, codebase, and approval.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| User 1 | 1 | Username of the first editor who operates the bot. Automatically formatted with a talk link. | User | required |
| User site 1 | site | Interwiki-prefix for the first user page.
| Line | optional |
| Unformatted user 1 | by | An unformatted alternative to the first parameter, allowing you to use custom wikitext. | String | optional |
| Username 2 | 2 | Username of the second editor who operates the bot. Automatically formatted with a talk link. | User | optional |
| User site 2 | site2 | Interwiki-prefix for the second user page.
| Line | optional |
| Unformatted user 2 | by2 | An unformatted alternative to the second parameter, allowing you to use custom wikitext. | String | optional |
| Operator 3 | 3 | Username of the third editor who operates the bot | User | optional |
| User site 3 | site3 | Interwiki-prefix for the third user page.
| Line | optional |
| Unformatted user 3 | by3 | An unformatted alternative to the third parameter, allowing you to use custom wikitext. | String | optional |
| Talk page | talklink | Special user talk page for all of the operators.
| Page name | optional |
| Bot status | status | Status of the bot.
| Line | required |
| Image | image | Image to display, rather than the gears icon.
| File | optional |
| Image caption | caption | Caption of the main image.
| Line | optional |
| Image alt text | alt | Alt text of the image. | String | optional |
| Codebase | codebase | The codebase on which the bot is powered.
| String | optional |
| BRfA subpage | brfa | The subpage name for the bot's BRfA.
| Line | suggested |
| Username | username | The bot's username.
| User | optional |
| AutoWikiBrowser? | awb | Whether or not the bot uses AutoWikiBrowser.
| Boolean | optional |
| GlobalBot? | globalbot | Whether or not the bot is a global bot.
| Boolean | optional |
| Approval needed? | approvalneeded | Whether the bot's actions require BAG approval.
| Boolean | optional |
| BRfA Override | overridebrfa | Page to link to instead of an BRfA, to list things like task-by-task approval or a local BRfA for a global bot. | Page name | optional |
| Extra text | more | Extra text to display after the status message. | String | optional |
| Suppress categories | nocat | Set to anything to prevent the template from applying categories. | String | optional |
| Show banner? | banner | Whether to show a banner around the status.
| Boolean | suggested |
| Banner image | bannerimage statusimage | Image to display on the left side of the banner, instead of the status icons. | File | optional |
| Banner styling | bannerstyle statusstyle | CSS styling for the status banner. | String | optional |
See also
[edit]- {{Bot/messages}}: A supplemental template containing the status messages for this template.
- {{User bot owner|Botname}}: Userbox for bot owner's user pages
- {{User wikipedia/Botop}}: Userbox for bot owner's user pages