Difference between revisions of "User:MaintenanceBot"

From Wikispooks
Jump to navigation Jump to search
m (Text replacement - "Template:DocProv" to "Template:Document")
(Software requirements)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is a general purpose bot for ongoing data maintenance, i.e. spotting and tagging or fixing bad or old data.<br/>
+
'''User:MaintenanceBot''' automatically adds missing details to pages. To activate it, simply create a page with an [[SMWObject]]. For maximum effect, add a {{t|Wikipedia}} parameter to point it to the corresponding [[Wikipedia]] page.
Feel free to edit the below lists of repetitive tasks that could be best achieved through a bot:
 
  
==Top Priority==
+
==Object class==
It could scan the new pages, and:
+
'''All Wikispooks pages must have an SMWObject'''. This requirement is fundamental for the MaintenanceBot to upgrade your page. The most common object type is [[person]], in which case write:
# Spot any which have an [[Wikispooks:Semantic Objects|Object template]]
+
:{{t|<nowiki>{{Person}}</nowiki>}}
# Use their {{t|{{!}}wikipedia}} parameter to read the matching [[Wikipedia]] page
+
For a listof all possible objects, see [[SMWObject]].
# Automatically add all the available extra parameters to the Wikispooks page
 
  
==Other things it could do==
+
==Wikipedia parameter==
This is for fairly well defined tasks:
+
MaintenanceBot cannot improve pages much unless they also have a {{t|{{!}}Wikipedia}} parameter (which may be abbreviated to "{{t|{{!}}WP}}").
# Upload missing images from [[Wikipedia]]
 
# Check URLs and tag those which have link rot
 
# Highlighting deprecated template usages
 
# Highlighting pages of [[:Category:Doc]] without [[Template:Document]]
 
  
==Ideas==
+
===Foreign Wikipediae===
This is for as yet poorly defined general ideas:
+
The Wikispooks working language is [[English]], and almost all the Wikipedia links are to {{t|en.wikipedia.org}}. Obscure foreigners may have no ''English'' Wikipedia page, but have a page in their native language. In this case, choosing a foreign Wikipedia page (for example {{t|'''de'''.wikipedia.org}}) is acceptable. MaintenanceBot can scrape non-English pages, but with reduced effectiveness.
# Build pages
 
## 'Most wanted' in the [[WikiSpooks:To Do]] section
 
  
==See Also==
+
===Tagged URLs===
* [[user:UpgradeBot]] - for one off data updates
+
Sometimes, Wikipedia has no page, but does have a (sub-)section. In this case, a hashtagged URL should be used ("...wiki/page#section") but maintenance bot does ''not'' not use this for scraping.
  
 +
==Further ideas, Mistakes?==
 +
MaintenanceBot ''does'' make mistakes. Please report these, together with ideas on the [[User_talk:MaintenanceBot|discussion page]].
 +
 +
==History==
 +
* 2016-11-0? v1.3 - MaintenanceBot is now more reliable.
 +
* 2016-02-07 v1.2 - MaintenanceBot is now active again.
 +
* 2015-12-? - Broken somewhen by server change
 +
* 2015-07-12 v1.0 - First version of MaintenanceBot launched.
 +
 +
==Software requirements==
 +
MaintenanceBot was written in PHP5 and requires the {{t|php-curl}} and {{t|php-xml}} packages.
 
[[Category:Wikispooks Bots]]
 
[[Category:Wikispooks Bots]]

Latest revision as of 17:32, 17 January 2019

User:MaintenanceBot automatically adds missing details to pages. To activate it, simply create a page with an SMWObject. For maximum effect, add a Wikipedia parameter to point it to the corresponding Wikipedia page.

Object class

All Wikispooks pages must have an SMWObject. This requirement is fundamental for the MaintenanceBot to upgrade your page. The most common object type is person, in which case write:

{{Person}}

For a listof all possible objects, see SMWObject.

Wikipedia parameter

MaintenanceBot cannot improve pages much unless they also have a |Wikipedia parameter (which may be abbreviated to "|WP").

Foreign Wikipediae

The Wikispooks working language is English, and almost all the Wikipedia links are to en.wikipedia.org. Obscure foreigners may have no English Wikipedia page, but have a page in their native language. In this case, choosing a foreign Wikipedia page (for example de.wikipedia.org) is acceptable. MaintenanceBot can scrape non-English pages, but with reduced effectiveness.

Tagged URLs

Sometimes, Wikipedia has no page, but does have a (sub-)section. In this case, a hashtagged URL should be used ("...wiki/page#section") but maintenance bot does not not use this for scraping.

Further ideas, Mistakes?

MaintenanceBot does make mistakes. Please report these, together with ideas on the discussion page.

History

  • 2016-11-0? v1.3 - MaintenanceBot is now more reliable.
  • 2016-02-07 v1.2 - MaintenanceBot is now active again.
  • 2015-12-? - Broken somewhen by server change
  • 2015-07-12 v1.0 - First version of MaintenanceBot launched.

Software requirements

MaintenanceBot was written in PHP5 and requires the php-curl and php-xml packages.