Difference between revisions of "Template:Bot"

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
(BOTAPPROVAL)
imported>Headbomb
m (WP)
 
Line 32: Line 32:
 
|{{#ifeq:{{{approvalneeded|}}}|no
 
|{{#ifeq:{{{approvalneeded|}}}|no
 
  | The bot is currently active, running tasks for which no [[WP:BOTAPPROVAL|approval]] is needed.
 
  | The bot is currently active, running tasks for which no [[WP:BOTAPPROVAL|approval]] is needed.
  | The bot is approved and currently active{{#if:{{{overridebrfa|}}}| – the relevant [[Wikipedia:BOTAPPROVAL|request for approval]](s) or tasks can be seen [[{{{overridebrfa}}}|here]]|{{#ifexist:Wikipedia:Bots/Requests for approval/{{if empty|{{{brfa|}}}|{{BASEPAGENAME}}}}| – the relevant [[Wikipedia:Bots/Requests for approval|request for approval]] can be seen [[Wikipedia:Bots/Requests for approval/{{if empty|{{{brfa|}}}|{{BASEPAGENAME}}}}|here]]|{{{nocat|[[Category:Active Wikipedia bots with no specified BRFA]]}}}}}}}.
+
  | The bot is approved and currently active{{#if:{{{overridebrfa|}}}| – the relevant [[WP:BOTAPPROVAL|request for approval]](s) or tasks can be seen [[{{{overridebrfa}}}|here]]|{{#ifexist:Wikipedia:Bots/Requests for approval/{{if empty|{{{brfa|}}}|{{BASEPAGENAME}}}}| – the relevant [[WP:BOTAPPROVAL|request for approval]] can be seen [[Wikipedia:Bots/Requests for approval/{{if empty|{{{brfa|}}}|{{BASEPAGENAME}}}}|here]]|{{{nocat|[[Category:Active Wikipedia bots with no specified BRFA]]}}}}}}}.
 
}}
 
}}
 
}}{{{nocat|[[Category:Active Wikipedia bots]]}}}
 
}}{{{nocat|[[Category:Active Wikipedia bots]]}}}

Latest revision as of 17:02, 16 July 2020

Template documentation[view] [edit] [history] [purge]

{{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

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, globalbot, 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 yes 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.

Examples

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.}}

See also

  • {{Bot2}}: An alternative visual style for {{Bot}} that makes the status more obvious and uses SVG icons
  • {{User bot owner|Botname}}: Userbox for bot owner's user pages
  • {{User wikipedia/Botop}}: Userbox for bot owner's user pages