Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Bot/doc

From Wikipedia, the free encyclopedia

{{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
|codebase=[[m:perlwikipedia|perlWikipedia]]}}
{{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
|status=active|globalbot=yes}}
{{Bot|John Smith|image=Crystal Clear question bot.svg
|more=The bot is undergoing testing.}}

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Bot in articles based on its TemplateData.

TemplateData for Bot

Generates a notice on a bot's userpage, giving information about its activity, codebase, and approval.

Template parameters

ParameterDescriptionTypeStatus
User 11

Username of the first editor who operates the bot. Automatically formatted with a talk link.

Userrequired
User site 1site

Interwiki-prefix for the first user page.

Default
en
Lineoptional
Unformatted user 1by

An unformatted alternative to the first parameter, allowing you to use custom wikitext.

Stringoptional
Username 22

Username of the second editor who operates the bot. Automatically formatted with a talk link.

Useroptional
User site 2site2

Interwiki-prefix for the second user page.

Default
en
Lineoptional
Unformatted user 2by2

An unformatted alternative to the second parameter, allowing you to use custom wikitext.

Stringoptional
Operator 33

Username of the third editor who operates the bot

Useroptional
User site 3site3

Interwiki-prefix for the third user page.

Default
en
Lineoptional
Unformatted user 3by3

An unformatted alternative to the third parameter, allowing you to use custom wikitext.

Stringoptional
Talk pagetalklink

Special user talk page for all of the operators.

Example
ExampleBOT
Page nameoptional
Bot statusstatus

Status of the bot.

Suggested values
active approved blocked expired inactive retired trial unapproved
Linerequired
Imageimage

Image to display, rather than the gears icon.

Example
Example.svg
Fileoptional
Image captioncaption

Caption of the main image.

Default
This is a bot account.
Lineoptional
Image alt textalt

Alt text of the image.

Stringoptional
Codebasecodebase

The codebase on which the bot is powered.

Example
pywikibot
Stringoptional
BRfA subpagebrfa

The subpage name for the bot's BRfA.

Default
{{PAGENAME}}
Linesuggested
Usernameusername

The bot's username.

Default
{{PAGENAME}}
Useroptional
AutoWikiBrowser?awb

Whether or not the bot uses AutoWikiBrowser.

Auto value
0
Booleanoptional
GlobalBot?globalbot

Whether or not the bot is a global bot.

Auto value
0
Booleanoptional
Approval needed?approvalneeded

Whether the bot's actions require BAG approval.

Auto value
1
Booleanoptional
BRfA Overrideoverridebrfa

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 nameoptional
Extra textmore

Extra text to display after the status message.

Stringoptional
Suppress categoriesnocat

Set to anything to prevent the template from applying categories.

Stringoptional
Show banner?banner

Whether to show a banner around the status.

Auto value
0
Booleansuggested
Banner imagebannerimage statusimage

Image to display on the left side of the banner, instead of the status icons.

Fileoptional
Banner stylingbannerstyle statusstyle

CSS styling for the status banner.

Stringoptional

See also

[edit]