Help:Bots

From GridPACK
Jump to: navigation, search
{{#if:[[Project:Language policy|]] | |

}}

[[Project:Language policy|]] English {{#ifexist: {{#if:||Help:Bots}}/af

| • {{#if:

 |Afrikaans
 |Afrikaans
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ar | • {{#if:

 |العربية
 |العربية
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ast | • {{#if:

 |asturianu
 |asturianu
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/az | • {{#if:

 |azərbaycanca
 |azərbaycanca
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/bcc | • {{#if:

 |جهلسری بلوچی
 |جهلسری بلوچی
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/bg | • {{#if:

 |български
 |български
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/br | • {{#if:

 |brezhoneg
 |brezhoneg
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/bn | • {{#if:

 |বাংলা
 |বাংলা
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/bs | • {{#if:

 |bosanski
 |bosanski
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ca | • {{#if:

 |català
 |català
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/cs | • {{#if:

 |čeština
 |čeština
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/da | • {{#if:

 |dansk
 |dansk
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/de | • {{#if:

 |Deutsch
 |Deutsch
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/diq | • {{#if:

 |Zazaki
 |Zazaki
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/el | • {{#if:

 |Ελληνικά
 |Ελληνικά
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/eo | • {{#if:

 |Esperanto
 |Esperanto
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/es | • {{#if:

 |español
 |español
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/fa | • {{#if:

 |فارسی
 |فارسی
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/fi | • {{#if:

 |suomi
 |suomi
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/fr | • {{#if:

 |français
 |français
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/gl | • {{#if:

 |galego
 |galego
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/gu | • {{#if:

 |ગુજરાતી
 |ગુજરાતી
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/he | • {{#if:

 |עברית
 |עברית
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/hi | • {{#if:

 |हिन्दी
 |हिन्दी
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/hu | • {{#if:

 |magyar
 |magyar
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/hy | • {{#if:

 |Հայերեն
 |Հայերեն
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/id | • {{#if:

 |Bahasa Indonesia
 |Bahasa Indonesia
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/io | • {{#if:

 |Ido
 |Ido
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/it | • {{#if:

 |italiano
 |italiano
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ja | • {{#if:

 |日本語
 |日本語
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ka | • {{#if:

 |ქართული
 |ქართული
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/kk | • {{#if:

 |қазақша
 |қазақша
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/km | • {{#if:

 |ភាសាខ្មែរ
 |ភាសាខ្មែរ
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ko | • {{#if:

 |한국어
 |한국어
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ksh | • {{#if:

 |Ripoarisch
 |Ripoarisch
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/kw | • {{#if:

 |kernowek
 |kernowek
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/la | • {{#if:

 |Latina
 |Latina
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/min | • {{#if:

 |Baso Minangkabau
 |Baso Minangkabau
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/mk | • {{#if:

 |македонски
 |македонски
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ml | • {{#if:

 |മലയാളം
 |മലയാളം
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/mr | • {{#if:

 |मराठी
 |मराठी
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ms | • {{#if:

 |Bahasa Melayu
 |Bahasa Melayu
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/nl | • {{#if:

 |Nederlands
 |Nederlands
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/no | • {{#if:

 |norsk bokmål
 |norsk bokmål
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/oc | • {{#if:

 |occitan
 |occitan
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/or | • {{#if:

 |ଓଡ଼ିଆ
 |ଓଡ଼ିଆ
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/pl | • {{#if:

 |polski
 |polski
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/pt | • {{#if:

 |português
 |português
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/pt-br | • {{#if:

 |português do Brasil
 |português do Brasil
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ro | • {{#if:

 |română
 |română
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ru | • {{#if:

 |русский
 |русский
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/si | • {{#if:

 |සිංහල
 |සිංහල
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sk | • {{#if:

 |slovenčina
 |slovenčina
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sl | • {{#if:

 |slovenščina
 |slovenščina
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sq | • {{#if:

 |shqip
 |shqip
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sr | • {{#if:

 |српски / srpski
 |српски / srpski
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sv | • {{#if:

 |svenska
 |svenska
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ta | • {{#if:

 |தமிழ்
 |தமிழ்
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/th | • {{#if:

 |ไทย
 |ไทย
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/tr | • {{#if:

 |Türkçe
 |Türkçe
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/uk | • {{#if:

 |українська
 |українська
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/vi | • {{#if:

 |Tiếng Việt
 |Tiếng Việt
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/yi | • {{#if:

 |ייִדיש
 |ייִדיש
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/yue | • {{#if:

 |粵語
 |粵語
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/zh | • {{#if:

 |中文
 |中文
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/zh-hans | • {{#if:

 |中文(简体)‎
 |中文(简体)‎
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/zh-hant | • {{#if:

 |中文(繁體)‎
 |中文(繁體)‎
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/zh-tw | • {{#if:

 |中文(台灣)‎
 |中文(台灣)‎
 }}
}}

Script error

A bot is a computer program that automatically retrieves or updates wiki pages when it is executed. In general, bots are used for repetitive maintenance tasks, whose volume and characteristics are too large to be performed manually by users.

Developing and executing bots is normally outside the role of normal users, requires programming experience and must be done in coordination with the wiki's admins.

By default, bot edits are hidden in Special:Recent changes.

Framework and interface for bot development

Bots do not access the wiki through the normal graphical user interface. MediaWiki has an API (Application Programming Interface) available for this purpose. An API is a protocol for standardised communication between two computer programs. Check {{ #ifeq:

 GridPACK

| MediaWiki | API:Client code | [[{{#if:|{{#ifexist:API:Client code||mw:}}}}API:Client code|API:Client code]] }} for more information.

To access a wiki through the API a bot must have a user account, which has been granted 'bot' permissions.

pywikipediabot

{{ #ifeq:

 GridPACK

| MediaWiki | Manual:pywikipediabot | [[{{#if:|{{#ifexist:Manual:pywikipediabot||mw:}}}}Manual:pywikipediabot|Manual:pywikipediabot]] }} provides a framework for the development of bots, which are commonly used to perform maintenance tasks such as adding a footer to some categorized pages (add_text.py), adding some wikilinks ({{ #ifeq:

 GridPACK

| MediaWiki | replace.py | [[{{#if:|{{#ifexist:Manual:pywikipediabot/replace.py||mw:}}}}Manual:pywikipediabot/replace.py|replace.py]] }}), moving old contents of talk pages to subpages ({{ #ifeq:

 GridPACK

| MediaWiki | archivebot.py | [[{{#if:|{{#ifexist:Manual:pywikipediabot/archivebot.py||mw:}}}}Manual:pywikipediabot/archivebot.py|archivebot.py]] }}), editing categories ({{ #ifeq:

 GridPACK

| MediaWiki | category.py | [[{{#if:|{{#ifexist:Manual:pywikipediabot/category.py||mw:}}}}Manual:pywikipediabot/category.py|category.py]] }}), or managing templates ({{ #ifeq:

 GridPACK

| MediaWiki | template.py | [[{{#if:|{{#ifexist:Manual:pywikipediabot/template.py||mw:}}}}Manual:pywikipediabot/template.py|template.py]] }}).

wiki-java

wiki-java is a lightweight Java framework for bot/application development and can be used to perform various tasks, such as uploading files, adding text to articles, parsing templates, basic I/O, etc. The library also comes with simple, but powerful standalone bot methods that can be readily utilized by a programmer.

Extension alternatives

  • Extension:MassEditRegex provides an alternative way to perform mass edits using regular expressions, through a special page in the wiki. Only admins can normally use this extension.

See also

  • {{ #ifeq:
 GridPACK

| MediaWiki | meta:Bot | [[{{#if:|{{#ifexist:meta:Bot||mw:}}}}meta:Bot|meta:Bot]] }}

{{#if:[[Project:Language policy|]] | |

}}

[[Project:Language policy|]] English {{#ifexist: {{#if:||Help:Bots}}/af

| • {{#if:

 |Afrikaans
 |Afrikaans
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ar | • {{#if:

 |العربية
 |العربية
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ast | • {{#if:

 |asturianu
 |asturianu
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/az | • {{#if:

 |azərbaycanca
 |azərbaycanca
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/bcc | • {{#if:

 |جهلسری بلوچی
 |جهلسری بلوچی
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/bg | • {{#if:

 |български
 |български
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/br | • {{#if:

 |brezhoneg
 |brezhoneg
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/bn | • {{#if:

 |বাংলা
 |বাংলা
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/bs | • {{#if:

 |bosanski
 |bosanski
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ca | • {{#if:

 |català
 |català
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/cs | • {{#if:

 |čeština
 |čeština
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/da | • {{#if:

 |dansk
 |dansk
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/de | • {{#if:

 |Deutsch
 |Deutsch
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/diq | • {{#if:

 |Zazaki
 |Zazaki
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/el | • {{#if:

 |Ελληνικά
 |Ελληνικά
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/eo | • {{#if:

 |Esperanto
 |Esperanto
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/es | • {{#if:

 |español
 |español
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/fa | • {{#if:

 |فارسی
 |فارسی
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/fi | • {{#if:

 |suomi
 |suomi
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/fr | • {{#if:

 |français
 |français
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/gl | • {{#if:

 |galego
 |galego
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/gu | • {{#if:

 |ગુજરાતી
 |ગુજરાતી
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/he | • {{#if:

 |עברית
 |עברית
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/hi | • {{#if:

 |हिन्दी
 |हिन्दी
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/hu | • {{#if:

 |magyar
 |magyar
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/hy | • {{#if:

 |Հայերեն
 |Հայերեն
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/id | • {{#if:

 |Bahasa Indonesia
 |Bahasa Indonesia
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/io | • {{#if:

 |Ido
 |Ido
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/it | • {{#if:

 |italiano
 |italiano
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ja | • {{#if:

 |日本語
 |日本語
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ka | • {{#if:

 |ქართული
 |ქართული
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/kk | • {{#if:

 |қазақша
 |қазақша
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/km | • {{#if:

 |ភាសាខ្មែរ
 |ភាសាខ្មែរ
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ko | • {{#if:

 |한국어
 |한국어
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ksh | • {{#if:

 |Ripoarisch
 |Ripoarisch
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/kw | • {{#if:

 |kernowek
 |kernowek
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/la | • {{#if:

 |Latina
 |Latina
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/min | • {{#if:

 |Baso Minangkabau
 |Baso Minangkabau
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/mk | • {{#if:

 |македонски
 |македонски
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ml | • {{#if:

 |മലയാളം
 |മലയാളം
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/mr | • {{#if:

 |मराठी
 |मराठी
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ms | • {{#if:

 |Bahasa Melayu
 |Bahasa Melayu
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/nl | • {{#if:

 |Nederlands
 |Nederlands
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/no | • {{#if:

 |norsk bokmål
 |norsk bokmål
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/oc | • {{#if:

 |occitan
 |occitan
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/or | • {{#if:

 |ଓଡ଼ିଆ
 |ଓଡ଼ିଆ
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/pl | • {{#if:

 |polski
 |polski
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/pt | • {{#if:

 |português
 |português
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/pt-br | • {{#if:

 |português do Brasil
 |português do Brasil
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ro | • {{#if:

 |română
 |română
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ru | • {{#if:

 |русский
 |русский
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/si | • {{#if:

 |සිංහල
 |සිංහල
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sk | • {{#if:

 |slovenčina
 |slovenčina
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sl | • {{#if:

 |slovenščina
 |slovenščina
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sq | • {{#if:

 |shqip
 |shqip
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sr | • {{#if:

 |српски / srpski
 |српски / srpski
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/sv | • {{#if:

 |svenska
 |svenska
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/ta | • {{#if:

 |தமிழ்
 |தமிழ்
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/th | • {{#if:

 |ไทย
 |ไทย
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/tr | • {{#if:

 |Türkçe
 |Türkçe
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/uk | • {{#if:

 |українська
 |українська
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/vi | • {{#if:

 |Tiếng Việt
 |Tiếng Việt
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/yi | • {{#if:

 |ייִדיש
 |ייִדיש
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/yue | • {{#if:

 |粵語
 |粵語
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/zh | • {{#if:

 |中文
 |中文
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/zh-hans | • {{#if:

 |中文(简体)‎
 |中文(简体)‎
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/zh-hant | • {{#if:

 |中文(繁體)‎
 |中文(繁體)‎
 }}

}}{{#ifexist: {{#if:||Help:Bots}}/zh-tw | • {{#if:

 |中文(台灣)‎
 |中文(台灣)‎
 }}
}}