Operator: EdoDodo (talk · contribs)
Automatic or Manually assisted: Automatic
Programming language(s): AutoWikiBrowser, using Kingbotk Plugin
Source code available: The AWB configuration I'll be using for the first run can be found here
Function overview: Will be used for project tagging, its first run will be tagging articles on lines of latitude and longitude, as per this bot request.
Links to relevant discussions (where appropriate): Bot Request
Edit period(s): One time run(s)
Estimated number of pages affected: For the first run on lines of latitude and longitude a total of 591 pages will be affected.
Exclusion compliant (Y/N): Yes
Already has a bot flag (Y/N): No
Function details: This bot will be doing one-off runs to add tags for WikiProjects. Its first run will add ((WPcoord)) and ((WikiProject Geography|class= |importance=low)) to the 591 pages in Category:Lines of longitude and Category:Lines of latitude (unless they are already there, of course). This will be done by using AutoWikiBrowser, having Kingbotk Plugin add the project tags and then using a simple search and replace function to mark the importance for WikiProject Geography as low (the two things are handled separately by AWB but it's all done in one edit, of course).
<AdvancedReps>
<IRule xsi:type="Rule">
<enabled_>true</enabled_>
<Children>
<IRule xsi:type="Rule">
<enabled_>true</enabled_>
<Children />
<Name>Rule</Name>
<ruletype_>OnWholePage</ruletype_>
<replace_>))
((</replace_>
<with_>))
((</with_>
<ifContains_ />
<ifNotContains_ />
<regex_>false</regex_>
<ifIsRegex_>false</ifIsRegex_>
<numoftimes_>1</numoftimes_>
<ifRegexOptions_>None</ifRegexOptions_>
<regexOptions_>None</regexOptions_>
</IRule>
<IRule xsi:type="Rule">
<enabled_>true</enabled_>
<Children />
<Name>Rule</Name>
<ruletype_>OnWholePage</ruletype_>
<replace_>))
((</replace_>
<with_>))
((</with_>
<ifContains_ />
<ifNotContains_ />
<regex_>false</regex_>
<ifIsRegex_>false</ifIsRegex_>
<numoftimes_>1</numoftimes_>
<ifRegexOptions_>None</ifRegexOptions_>
<regexOptions_>None</regexOptions_>
</IRule>
</Children>
<Name>Biocleanup</Name>
<ruletype_>OnWholePage</ruletype_>
<replace_>\{\{WikiProject Foo(.*?)\}\}(.*?)\{\{WPBiography(.*?)\}\}</replace_>
<with_>((WPBiography$3))
((WikiProject Foo$1))$2</with_>
<ifContains_>living[ ]*=[ ]*yes</ifContains_>
<ifNotContains_>blp[ ]*=[ ]*yes</ifNotContains_>
<regex_>true</regex_>
<ifIsRegex_>true</ifIsRegex_>
<numoftimes_>1</numoftimes_>
<ifRegexOptions_>IgnoreCase</ifRegexOptions_>
<regexOptions_>IgnoreCase Singleline</regexOptions_>
</IRule>
</AdvancedReps>
Thanks for the tip, using the database scanner I found 9 articles containing stub tags, that will be marked as stubs. Also thanks for showing me the source code of Xenobot, using the regular expressions you gave me I found a further 67 articles that will inherit categories, so that will leave about 515 articles unassessed. - EdoDodo talk 16:55, 9 June 2010 (UTC)[reply]
((disambig
You need to make custom find&replace to put in "class=stub|auto=length", that's easy enough but I can give you a code snippet if you need it. –xenotalk 17:37, 9 June 2010 (UTC)[reply]
Just for the record, for this first run 9 articles will be assessed as stubs based on tags found on page, 107 articles will be assessed as stubs based on their size (assuming that the WikiProject agrees with this automation of assessment), 54 article will inherit assessments from other WikiProjects, which will leave 419 articles unassessed. —Preceding unsigned comment added by EdoDodo (talk • contribs) 18:35, 9 June 2010 (UTC)