Wikipedia editing bot run by ClickRick
Documentation
Technical details
ClickBot is written in C#, developed using Visual C# Express. It runs as a custom plugin within the AutoWikiBrowser framework, which uses wikipedia's api.php interface.
Source code for any custom plugin code will be available before the bot is allowed to run in automated mode, though fully-supervised testing may occur before that happens. Each separate task may require specific settings; those will also be published.
Exclusion compliance
This bot is an exclusion compliant bot as it runs as a plugin within AutoWikiBrowser .
Contacting the operator
As noted above, this bot is operated by ClickRick . General comments can be left on my talk page , or you can talk to me live on IRC - I'm usually online while the bot is running (and often while it's not, too). Leaving a message on the bot's talk page will halt it until I intervene manually so please only do that if there is a problem, telling me which page the problem is on.
Tasks
In development
Per Template talk:Infobox UK place#Possible_bot_tasks , a number of tasks have been proposed and discussed, all of which will improve usage of {{Infobox UK place }}:
9. rename the civil_parish
parameter to community_wales
for all places where |country=Wales
It is noted that there are currently some 13,475 transclusions of that template.
Requests for approval
None at this time.
In trial
Per Wikipedia:Bots/Requests for approval/ClickBot 3 :
5. change the static_image
parameter, currently specified as [[File:filename.jpg|240px]]
, to the new static_image_name
parameter, to be specified simply as filename.jpg
(ditto for static_image_2
)
6. set a default static_image_width
to 240px, as per the template's documentation (ditto for static_image_2
)
7. remove the specification of <small>
style from static_image_caption
and static_image_2_caption
parameters, such that it can be done consistently in the template
8. add blank static_image_alt
and static_image_2_alt
parameters
Settings for task 3
<?xml version="1.0"?>
<AutoWikiBrowserPreferences
xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd= "http://www.w3.org/2001/XMLSchema"
xml:space= "preserve"
Version= "4.6.0.1" >
<Project> wikipedia</Project>
<LanguageCode> en</LanguageCode>
<CustomProject />
<Plugin>
<PluginPrefs>
<Name> TheTemplator</Name>
<PluginSettings>
<anyType xsi:type= "PrefsKeyPair" >
<Name> enabled</Name>
<Setting xsi:type= "xsd:boolean" > true</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> xspipes</Name>
<Setting xsi:type= "xsd:boolean" > false</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> skip</Name>
<Setting xsi:type= "xsd:boolean" > true</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> template</Name>
<Setting xsi:type= "xsd:string" > Infobox UK place</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> :static_image</Name>
<Setting xsi:type= "xsd:string" > \[\[([Ff]ile:|[Ii]mage:)(?< image1> [^|\]]*)(\|((?< size1> [0-9]+)px|[^|\]]*))*\]\]</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> :static_image_caption</Name>
<Setting xsi:type= "xsd:string" > (\< small\> )?(?< caption1> .*?)(\< / *small\> )?</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> :static_image_alt</Name>
<Setting xsi:type= "xsd:string" > (?< alt1> .*)</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> :static_image_2</Name>
<Setting xsi:type= "xsd:string" > \[\[([Ff]ile:|[Ii]mage:)(?< image2> [^|\]]*)(\|((?< size2> [0-9]+)px|[^|\]]*))*\]\]</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> :static_image_2_caption</Name>
<Setting xsi:type= "xsd:string" > (\< small\> )?(?< caption2> .*?)(\< / *small\> )?</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> :static_image_2_alt</Name>
<Setting xsi:type= "xsd:string" > (?< alt2> .*)</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> ;static_image_name</Name>
<Setting xsi:type= "xsd:string" > ${image1}</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> ;static_image_width</Name>
<Setting xsi:type= "xsd:string" > ${size1}</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> ;static_image_caption</Name>
<Setting xsi:type= "xsd:string" > ${caption1}</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> ;static_image_alt</Name>
<Setting xsi:type= "xsd:string" > ${alt1}< !-- see [[WP:ALT]] --> </Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> ;static_image_2_name</Name>
<Setting xsi:type= "xsd:string" > ${image2}</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> ;static_image_2_width</Name>
<Setting xsi:type= "xsd:string" > ${size2}</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> ;static_image_2_caption</Name>
<Setting xsi:type= "xsd:string" > ${caption2}</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> ;static_image_2_alt</Name>
<Setting xsi:type= "xsd:string" > ${alt2}< !-- see [[WP:ALT]] --> </Setting>
</anyType>
</PluginSettings>
</PluginPrefs>
</Plugin>
</AutoWikiBrowserPreferences>
Approved
None at this time.
Finished
Per Wikipedia:Bots/Requests for approval/ClickBot 2 :
1. make the population
parameter be numeric
2. move any non-numeric portions from existing population
parameters to population_ref
Settings for task 2
<?xml version="1.0"?>
<AutoWikiBrowserPreferences
xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd= "http://www.w3.org/2001/XMLSchema"
xml:space= "preserve"
Version= "4.6.0.1" >
<Project> wikipedia</Project>
<LanguageCode> en</LanguageCode>
<CustomProject />
<Plugin>
<PluginPrefs>
<Name> TheTemplator</Name>
<PluginSettings>
<anyType xsi:type= "PrefsKeyPair" >
<Name> enabled</Name>
<Setting xsi:type= "xsd:boolean" > true</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> skip</Name>
<Setting xsi:type= "xsd:boolean" > true</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> template</Name>
<Setting xsi:type= "xsd:string" > Infobox UK place</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> replace</Name>
<Setting xsi:type= "xsd:string" > | population = ${pop}
| population_ref = ${ref1} ${ref2}</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> :population</Name>
<Setting xsi:type= "xsd:string" > (?< pop> [0-9,]*)\s*(?s:(?< ref1> .*))</Setting>
</anyType>
<anyType xsi:type= "PrefsKeyPair" >
<Name> :population_ref</Name>
<Setting xsi:type= "xsd:string" > (?s:(?< ref2> .*))</Setting>
</anyType>
</PluginSettings>
</PluginPrefs>
</Plugin>
</AutoWikiBrowserPreferences>
3. make the area_total_sq_mi/area_total_km2
fields numeric
4. move any non-numeric portions from existing area_total_sq_mi/area_total_km2
parameters to area_footnotes