Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Wikipedia:AutoWikiBrowser/Kingbotk plugin





Project page  

Talk  



Language  

Watch  

Edit  


< Wikipedia:AutoWikiBrowser
(Redirected from User:Kingbotk/P)
 


Kingbotk Plugin for AWB

Home

General information about the Kingbotk Plugin and directions for installation.

Discussion

Discuss the application and ask questions.

User guide

What the plugin does, how it works, and why you should use it.

AutoWikiBrowser

The plugin works inside AWB and is shipped with that tool.

Generic WikiProject templates · WikiFunctions2.dll · AWB Plugins · AWB Sandbox
Shortcut

The Kingbotk plugin is a set of AutoWikiBrowser plugins written by KingboykinVB.NET and used by various automated bot accounts including Kingbotk. The plugin also provides features to assist article reviewers, and ships with a reusable library of functions and objects for use by programmers.

Magioladitis and Reedy rewrote the plugin's code in C#.

News

edit

As of version 2.0, which was released with v4.2 of AWB, the Kingbotk Plugin supports {{WikiProjectBannerShell}} and {{WikiProjectBanners}}:

As originally designed, when a page is being processed each active templating plugin (WPBiography, WikiProject Albums etc.) gets called by the Kingbotk Plugin Manager and decides if it has any edits to make (and templating plugins which the user hasn't enabled aren't called at all). If every active templating plugin decides it has no work to do we never get to the part of the code where we write out templates and examine their position on the page. If folks find the cleanup features useful I might do some restructuring later on to have the Plugin Manager, the Article object we create for each page, or the first active templating plugin, examine the page for these templates before doing anything else (so we never skip a page where we could clean a template). I might also consider allowing the WPBio plugin or the plugin manager to examine the page for WPBiography|living=yes even if we're not going to be writing one of those templates. However, I felt it more important to get this feature out and tested than start breaking apart the internal structure of the plugin, a structure which allows for new plugins to be added easily and which is a very nice OOP model.

Downloading and using the plugin

edit

Warning and disclaimer

edit

Specification

edit

This plugin comes with several WikiProject-specific tools:

Templating plugins

edit
 
Wikipedia Assessments within AWB. Click on the image to see it in better resolution

All templating plugins:

WPBiography plugin

edit

As of version 2.3.1.2

Albums plugin

edit

Australia plugin

edit

India plugin

edit

Military History plugin

edit

Novels plugin

edit

Songs plugin

edit

Generic templates plugin

edit

Wikipedia Assessments plugin

edit
 
The plugin manager's tab (v2.3.3.0) in AWB.

Todo

edit

Version 4++

edit

Manual assessment

edit

Other planned changes

edit
File:Kingbotk plugin in Object Browser.png
The plugin's object model (v0.9) in the Visual Studio Object Browser. Click to enlarge.

Possible future enhancements

edit

Bot

edit

Version history

edit

See: Wikipedia:AutoWikiBrowser/History

Version history
Version Release date Notes
2.1.0.1 13 September 2008
  • More workgroups
  • Code updates
  • Now included in AWB SVN
  • Class=FL, C, List
  • Updated India Plugin
  • Fixed plugin hanging
2.0.0.3 6 April 2008 Changes per AWB and WF
2.0.0.2 User:Reedy Boy: WPNovels: 19th Century Task Force Added

Changes to Match AWB Changes

2.0.0.0 25 January 2008 User:Kingboyk: Supports {{WikiProjectBannerShell}} and {{WikiProjectBanners}}. Thanks to User:Madman whose basic regex got me started.

Loosened up main template-catching regex to ignore stray vertical bars (e.g. living=yes||activepol=yes will no longer be flagged as a bad tag). All regexes cleaned. Various other minor tweaks.

Bug fixes: Caught 2 causes of trivial edits (Yes/yes, different to Mediawiki but both supported by {{WPBiography}} for the important parameters; adding a workgroup e.g. arts when a higher level workgroup already exists e.g. filmbio but flagging this as a change).

+the changes from the last 2 revisions which were only available in the AWB SourceForge repository.

1.5.0.0 n/a User:Kingboyk: We now check incoming redirects for templates at runtime. This should help prevent the plugin becoming "stale" if Sam or I aren't around to update it, or if some keen but annoying person creates yet another redirect to, say, {{WPBiography}} without telling me :) Removed support for {{BioCOTWs}}, which has been deleted. Fixed a bug: template instances using "_" instead of space weren't being caught. Surprising this didn't bite anybody! WPBiography only (for now): replace boilerplate text left by User:SkiersBot, and {{stubclass}} templates with "Biography" in the parameters, with an auto=yes parameter. Plugin now recognises shell containers like {{WikiProjectBannerShell}} and it won't move WP templates around if they are present. However, for now we don't write new templates into those containers and the redirects to them are hard coded in. Really we need a class in this plugin, or a feature in AWB, to write WikiProjects into existing instances of these containers, add them where needed, rename them when a redirect name is used (with redirect names fetched dynamically), clean them up etc.
1.4.0.4 n/a Reedy Boy: Code Tweaks. Change of WPAus to use class=cat rather than class=NA. Fix defaultsort moving bug on talk pages.
1.4.0.3 9 September 2007 Reedy Boy: Addition of a couple of parameters for WPNovels and WPAus
1.4.0.1 n/a Kingboyk: Added "open skipped bad pages in browser" option.
1.4.0.0 28 July 2007 User:Reedy Boy & Kingboyk: Wikifunctions2.dll has been converted to C# and merged into AWB. Various modifications have been made to the plugin for it to work smoothly with AWB version 4. Note: Please help updating docs and links now wikifunctions2 no longer exists.
1.3.0.0 Kingboyk: Fixed bug in wiki-format logger where article name was truncated if it contained a colon. Improved edit summary and parameter handling when dealing with WPBiography child workgroups. Plugin logging now receives notification of username and logged in username changes, so errors with the log upload location being incorrect ought to be resolved. Now filter braces from a generic template definition. Major internal changes - now I have access to the AWB codebase too, I've been able to introduce a much more elegant OOP solution. However, the changes run quite deep so watch out for breakage please.
1.2.1 16 April 2007 Kingboyk: Improved ETC timer to take account of skipped pages. Tidied up logging tab.
1.2.0 14 April 2007 Kingboyk: New features: Sam and I have improved the new AWB logging tab (we're both AWB devs now, so often fixes and improvements for the plugin will happen in AWB); this version of the plugin will now add log info to that tab. Added code to recognise and tidyup the DEFAULTSORT magic word or the {{DEFAULTSORT}} template; WPBio listas= parameter removed if DEFAULTSORT is present. Added an "estimated time of completion" label to the main Kingbotk plugin tab. Implemented feature requested by Mike Peel: "Build a list of pages that the plugin would change, without making any change. List should be in a format that can be read back into AWB to be processed."

Tweaks: Filter out illegal-in-page-names characters from upload-jobname (AWB-side routine written by Sam). Some code has been moved from plugin's wikifunctions2 to AWB's wikifunctions. Updated {{talkheader}} regular expression to catch redirects. Implemented Plugins\Kingbotk\Set AWB menu item: click this to turn off a few AWB features which the plugin doesn't need.

WPBiography: Added explicit living=no parameter option. {{BioCOTWs}} is replaced with collaboration-candidate=yes. "Second chance" regex (the one which looks for bad or additional templates) tightened up a little. Added support for new Film workgroup.

WPMILHIST: Migrate Middle-Ages-task-force to Medieval-task-force.

Major regular expression change: The right-hand side of the templating regular expression, immediately after the end of the template name, now has a \b meaning "word boundary". My tests so far are positive but if advise me of any problems immediately please.

Reedy Boy: WPMILHIST: Expanded template workgroups as per WPMILHIST. Expanded context menu to encompass workgroups. Added a simple error displaying form to catch log upload errors.

1.1.0 30 March 2007 Kingboyk: Various usability tweaks and internal changes. Added two new workgroup parameters for {{WPBiography}} (peerage and baronetcies). Updated WPBiography regular expression to handle {{Bio}} and {{BIO}} alternate names. Added WP Novels logs location. Fixed a bug in logging causing an extra (superfluous) log page to be created at the end of a run. Nudge timer removed in favour of same feature in new AWB. Tweak to have redlink category talk, template talk etc. increase the New page counter in tagging mode (previously only new Talk: pages upped the counter).

Reedy Boy: Expanded WPNovels Context Menu.

1.0.1 24 March 2007 Kingboyk: {{WPBiography}}: Replace parameterless {{activepolitician}}or{{activepol}} with activepol=yes. Skip article if only change is to add a WPBio listas= parameter. Add option to override the skip behaviour and force the addition of listas. Added code to ensure that the WPBio template is the last to be processed (including after generic templates) to hopefully ensure that living=yes gets top placement (after the templates mentioned in the next paragraph).

Add code to ensure that we leave {{skiptotoctalk}}/{{Skiptotoc}}/{{Skiptotoc-talk}} at the top. This new code, and the old {{talkheader}} code, has been placed into WikiFunctions2.dll so that other applications may use it too.

Minor: Settings files with assessments and cleanup turned on were causing an error because of a change in AWB's user interface. Fixed.

Reedy Boy: Minor: Fixed bug where settings couldn't be reloaded after generic template created with a space in the name. Space is automatically removed.

1.0.0.1 RC5 17 March 2007 Kingboyk: Minor: Logging: Improved handling of $USER and $CATEGORY keywords.
1.0.0.1 RC4 10 March 2007 Kingboyk: Improved support for WP Novels. Improved edit summaries.
1.0.0.1 RC3 8 March 2007
  • Kingboyk: Removed special handling of the now long-migrated WikiProject British Royalty and merged into main {{WPBiography}} regex. Added support for WPBio's needs-photo parameter and India's need-image (article assessments), plus some code to handle {{reqphoto}} - feedback invited. Fixed a bug where plugin wanted to upload logs even if Upload turned off (I'm amazed nobody reported this?!). Added support for WP India's Gujurat workgroup. Added support for WP India's workgroup importance parameters. Automagically create a WPBio listas= parameter. Various minor logging and assessment bug fixes. Added dynamic edit summaries for article assessments and hopefully fixed any remaining bugs surrounding edit summaries.
  • Kingboyk and Reedy Boy: Added support for {{NovelsWikiProject}}. As always when we add a new template, we have to say: we've tested this in a limited fashion only. Please ensure for yourself that it does what you expect before letting it run as a bot.
1.0.0 RC2 4 March 2007
1.0.0 RC1 2 March 2007
  • Kingboyk: New settings code to work with latest AWB, and other tweaks.
  • Reedy Boy: New parameters for WP India. Changes of other code for migration to new AWB version
0.9.1 3rd December 2006 Added support for {{WP India}}. Hopefully fixed the date formatting in log entries where user's Windows settings aren't English, by forcing the AWB thread to US English at startup. These edits done by me with Windows set to French were successful: [1] [2]
0.9.0 11th November 2006 Auto-uploading of logs. Skipped to v0.9, as current feature set is complete for v1 - just tweaking, small additions, and bugfixes to do. Logging feature significantly improved: logging tab with options and status, reusable logging feature in a new WikiFunctions2.dll, automatic uploading of logs, logging settings can be changed without having to restart AWB. Small issues with the first alpha release: This version waits until it has enough lines to do an upload, and does it. So, if you have it set to upload at 500 lines, and the eventual entire output is 501 lines, you'll get 2 pages upload, 500 lines and 1 line. I'll refine this in the next update. Bad page logs not uploaded. Don't change settings once logging has started yet; exit AWB and reload it.
0.7.2 Added XML settings file and textbox context menu for {{NovelsWikiProject}}. Added new "NBL" parameter for {{WP Australia}}. The WP Australia template has some parameters which can be called with alternate names ("V8", "v8"; "NBL", "nbl"), so I've written an extra (overloaded) "parameter check/add" routine, which can accept an alternate name, for those parameters to call. Plugin now uses the "AndAlso"/"OrElse" short circuiting expressions in places, for efficiency. This shouldn't break anything (hopefully!). Added 3 new boilerplate text buttons to the Comments form. Timer-reset button. Menu item to turn nudging on/off.
0.7.1r1 (No code changes in plugin DLL). Supply the newest version of AWB (3.0.4.1). Updated settings file for {{Film}}. Supply settings file for {{WP Indonesia}}.
0.7.1 i) Fixed a null-reference bug which was causing an error box to be displayed when clicking Skip on the assessments form. I'm not convinced this feature is robust though so please help me test it. ii) Plugin now checks the AWB edit summary box and if the summary is "clean up" (the AWB default) when tagging talk pages it changes it to "Tagging". This is a prelude to the "Set AWB" menu item for setting sensible AWB defaults, which I will implement soon. iii) Removed 2 unused menu items. iv) Added tooltips to menu items.
0.7.0 Added {{songs}} and {{album}} plugins. Made preferred-name regex stricter ({{albums}} wasn't being renamed to {{album}})..
0.6.2 Added support for 3 new WPBiography workgroups and the {{musician}} template. Support one new WPMILHIST workgroup. Provided XML settings file for {{film}}. Some internal changes. Plugin should now merge multiple instances of same template on a page (regardless of name) if they have non-conflicting parameters and is otherwise a bit more lenient towards incorrectly formatted/doubly-added templates. Found a very strange case: page has one valid WPBio template and one bad WPBio template; the latter wasn't being noticed so the page wasn't being skipped as "bad tag". Fixed.
0.6.1 Remove importance= parameters from existing instances of {{WPMILHIST}}, per request. Workaround for a bug which occurs when the Cleanup box is checked and the Manual Assessments box is not checked (cause is still a mystery). Plugin should no longer give AWB a nudge when the user has chosen to stop processing (not tested yet). Added entry for generic plugins and MILHIST to the edit box's context menu; also added submenu for "importance". Some minor internal architectural changes. Updated Physics XML (they now support auto=yes) and tested new settings.
0.6.0 Added support for "Generic WikiProject templates". Added Auto-Stub feature for WPMILHIST. Minor architecture tweaks. Skip stub-class code if processing non main-talk, to get a more succinct edit summary and no stray auto=yes tag.
0.5.0 Added {{WP Australia}} and {{WPMILHIST}} plugins. Changed placement of {{reqphoto}} in the assessments class. In bot (auto-save) mode, plugin gives AWB a kick if it doesn't send any articles in 10 minutes. (The newly supported templates don't have right-click context menus in the AWB edit box yet).
0.4.0 Added Wikipedia assessments plugin. We now get notification from AWB of starting/starting so can log this and properly start/stop the timer. Red link checks/warnings. Non-standard namespace handling.
0.3.2 Added code to customise template placement.
  • If the template already exists, put it back in the same place
  • ...unless it's {{WPBiography}} with a living=yes parameter, in which case put it at the top
  • Put new templates at the top
  • Finally, if (and only if) I've moved a template to the top or placed a new template at the top, search for {{Talkheader}} and if present move that to the top.
0.3.1 Edit-box context menu additions, UI improvements
0.3 Much improved architecture, comprehensive user interface. {{WPBiography}} (all parameters) fully supported. Other templates being added.
0.2 Development version. Added a user interface and placeholder support for other WikiProjects and for manual Wikipedia 1.0 assessments.
0.1 Features Basic template addition/reparameterising for living persons bios. Object orientated design, with the BLP plugin inheriting from a base class.

Done

edit

Mailing list/user list

edit

If you download the plugin, please add the Plugin page to your watchlist. It's also recommended that you add your username here so that you can be notified of any critical updates. Note: I hope never to have to message you, as I will only send out mailing lists if a critical bug is discovered. For general news and notification of updates you need to add the page to your watchlist.

Mailing list/user list

  1. Plange (talk · contribs)
  2. Longhair (talk · contribs)
  3. Emt147 (talk · contribs)
  4. Grafikbot (talk · contribs)
  5. Kevinalewis (talk · contribs)
  6. Halibutt (talk · contribs)
  7. Kilo-Lima (talk · contribs)
  8. Errabee (talk · contribs)
  9. Setanta747 (talk · contribs)
  10. Cbrown1023 (talk · contribs)
  11. Mike Peel (talk · contribs)
  12. TheMadBaron (talk · contribs)
  13. Ganeshk (talk · contribs)
  14. Lostintherush (talk · contribs)
  15. Carabinieri (talk · contribs)
  16. Valentinian (talk · contribs)
  17. Stefan (talk · contribs)
  18. Cyberjunkie (talk · contribs)
  19. Menasim (talk · contribs)
  20. Snowolf (talk · contribs)
  21. SimonD (talk · contribs)
  22. Jwillbur (talk · contribs)
  23. JP06035 (talk · contribs)
  24. Mocko13 (talk · contribs)
  25. Roswell native (talk · contribs)
  26. Nmajdan (talk · contribs)
  27. Parutakupiu (talk · contribs)
  28. Jogers (talk · contribs)
  29. Mcginnly (talk · contribs)
  30. DDima (talk · contribs)
  31. Casper Gutman (talk · contribs)
  32. Violask81976 (talk · contribs)
  33. Kimon (talk · contribs)
  34. JodyB (talk · contribs)
  35. S (talk · contribs)
  36. Bookandcoffee (talk · contribs)
  37. EdBoy002 (talk · contribs)
  38. Clyde Miller (talk · contribs)
  39. Vassyana (talk · contribs)
  40. AuburnPilot (talk · contribs)
  41. RHB (talk · contribs)
  42. Visor (talk · contribs)
  43. Boy1jhn (talk · contribs)
  44. Boricuaeddie (talk · contribs)
  45. Dinosaur puppy (talk · contribs)
  46. Dihydrogen Monoxide (talk · contribs)
  47. Moondyne (talk · contribs)
  48. Thadius856 (talk · contribs)
  49. MacGyverMagic (talk · contribs)
  50. Severo (talk · contribs)
  51. countincr (talk · contribs)
  52. Lantonov (talk · contribs)
  53. SkierRMH (talk · contribs)
  54. Krator (talk · contribs)
  55. Parent5446 (talk · contribs)
  56. Doktor Wilhelm (talk · contribs)
  57. Dycedarg (talk · contribs)
  58. Fabrictramp (talk · contribs)
  59. Stepshep (talk · contribs)
  60. Compwhizii (talk · contribs)
  61. Tinucherian (talk · contribs)
  62. Captain panda (talk · contribs)
  63. Amartyabag (talk · contribs)
  64. Merenta (talk · contribs)
  65. Newportm (talk · contribs)
  66. bsrboy (talk · contribs)
  67. Navy Blue (talk · contribs)
  68. Protonk (talk · contribs)
  69. Nips (talk · contribs)
  70. Shirulashem (talk · contribs)
  71. Arbitrarily0 (talk · contribs)
  72. Xeno (talk · contribs)
  73. Extremepro (talk · contribs)
  74. XLerate (talk · contribs)
  75. Hiding (talk · contribs)
  76. Kingpin13 (talk · contribs)
  77. Rsriaknth05 (talk · contribs)
  78. Marek69 (talk · contribs)
  79. Christian75 (talk · contribs)
  80. run.veran (talk · contribs)
  81. MrRadioGuy (talk · contribs)
  82. EdoDodo (talk · contribs)
  83. Rock drum (talk · contribs)
  84. PhnomPencil (talk · contribs)
  85. Kosm1fent (talk · contribs)
  86. Vibhijain (talk · contribs)
  87. Ankit Maity (talk · contribs)
  88. Mjs1991 (talk · contribs)
  89. RiverStyx23 (talk · contribs)
  90. Dcheagle (talk · contribs)
  91. Wall Screamer (talk · contribs)
  92. 和平奮鬥救地球 (talk · contribs)
  93. B2322858 (talk · contribs)
  94. usernamekiran (talk · contribs)

Technologies used

edit

The plugin makes use of various technologies including: inheritance (see also polymorphism and encapsulation), interfaces, regular expressions, reflection, XML, XHTML, GDI+, and Windows Forms. Of course most modern programs use most or all of these but listing them like this makes me look clever ;)

Developers

edit

The plugin was conceived and developed by Kingboyk (talk · contribs). It is now part of the main AWB repository and is maintained by the AWB developers. Source code is available.


Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:AutoWikiBrowser/Kingbotk_plugin&oldid=1096154506"
 



Last edited on 2 July 2022, at 17:41  


Languages

 



This page is not available in other languages.
 

Wikipedia


This page was last edited on 2 July 2022, at 17:41 (UTC).

Content is available under CC BY-SA 4.0 unless otherwise noted.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop