Template:Infobox Wikipedia bot/doc

From The Global Wiki
< Template:Infobox Wikipedia bot
Revision as of 20:02, 10 December 2022 by en>Discospinster (Reverted edits by 87.121.193.95 (talk) (HG) (3.4.10))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Infobox

The complete infobox:

{{Infobox bot
| Bot name     = 
| image        = 
| caption      = 
| status       = 
| operator     = 
| author       = 
| approval     = 
| flag         = 
| tasks        = 
| edit rate    = 
| process      = 
| language     = 
| period       = 
| Excl. comp.  = 
| source       = 
| lang_cat     = 
| shutoff      = 
| other        = 
| nocat        = 
| brfa         = 
| active       = 
}}

Values for lang_cat are AWB, C Sharp, Java, Javascript, Perl, PHP, Python, and Ruby.

Status

Setting |active=yes will set the "Status" field to Active and, unless |nocat=yes, place the page into Category:Active Wikipedia bots. Setting |active=no will set the "Status" field to Inactive and, unless |nocat=yes, place the page into Category:Inactive Wikipedia bots. Setting the |status= parameter to any value will override the automatic value in the status field.

If the bot uses a status or automatic shutoff page, you can use it to automatically categorize the bot. If the status page consists only the word "true"/"false" (or "yes"/"no"), you can use:

active={{lc:{{NAME OF STATUS PAGE}}}}

If it uses something other than "true"/"false" or "yes"/"no", but there are still only one possible contents of the status page when the bot is running, use:

active={{#ifeq:{{lc:{{NAME OF STATUS PAGE}}}}|LOWER CASE TEXT IF BOT IS ACTIVE|yes|no}}

If your bot has multiple lines on the status page for multiple bot tasks, and you want to display as active if any of them are running (indicated by "true" in this example), use:

active={{#iferror:{{#invoke:String|match|s={{NAME OF STATUS PAGE}}|pattern=true}}|no|yes}}

Example

SkyBot 1
This user is a bot
(talk · contribs)
SkyBot 1
SkyBot 1 at top-speed
OperatorAnonymous Dissident (t)
Approved?Not yet
Flagged?No
Task(s)(Will) Work at WP:CFD/W, Wikiproject tagging.
Edit rate(Proposed) 10 per minute
Edit period(s)Periodically
Automatic or manual?Automatic
Programming language(s)Works through AWB
Exclusion compliant?Yes
Source code published?no
Emergency shutoff-compliant?Yes
Other informationSkyBot 1 may later be assigned the task of delivering newsletters.

<syntaxhighlight lang="moin">

SkyBot 1
This user is a bot
(talk · contribs)
SkyBot 1
SkyBot 1 at top-speed
OperatorAnonymous Dissident (t)
Approved?Not yet
Flagged?No
Task(s)(Will) Work at WP:CFD/W, Wikiproject tagging.
Edit rate(Proposed) 10 per minute
Edit period(s)Periodically
Automatic or manual?Automatic
Programming language(s)Works through AWB
Exclusion compliant?Yes
Source code published?no
Emergency shutoff-compliant?Yes
Other informationSkyBot 1 may later be assigned the task of delivering newsletters.

</syntaxhighlight>