A MediaWiki bot framework in Java
  • Java 98.5%
  • JavaScript 1%
  • HTML 0.3%
  • CSS 0.2%
Find a file
2026-02-01 20:10:52 +00:00
src Condense Users.generateWikitextSummaryLinksShort and Users.generateHTMLSummaryLinksShort to a Writable record. 2026-02-01 20:10:52 +00:00
test Condense Users.generateWikitextSummaryLinksShort and Users.generateHTMLSummaryLinksShort to a Writable record. 2026-02-01 20:10:52 +00:00
web Fix radio buttons and disabling/enabling of associated inputs. 2026-01-20 19:45:18 +00:00
.gitignore Thin down JSP fragments as much as possible. 2026-01-02 08:22:18 +00:00
Contributing.md *Clarify the (lack of) dependencies. 2018-05-15 16:10:35 +01:00
COPYING.AGPL Relicense servlets to AGPLv3. 2015-03-19 11:35:18 +00:00
COPYING.GPL Relicense servlets to AGPLv3. 2015-03-19 11:35:18 +00:00
pom.xml Rewrite the image contribution surveyor as a servlet. The zip output code works, I just need to create an interface for it. 2026-01-02 11:37:58 +00:00
Readme.md Move to Codeberg. 2025-12-21 10:18:04 +00:00

Wiki.java

A Java wiki bot framework that is only one file -- org/wikipedia/Wiki.java. Some functionality provided by MediaWiki extensions deployed on Wikimedia sites is available in org/wikipedia/WMFWiki.java. This project also contains the source code to the tools hosted at https://wikipediatools.appspot.com and other Wikipedia-related bits and pieces. Requires JDK >= 21. For those using modules, only the java.base, java.net.http and java.logging modules are required.

Latest stable version: 0.38 -- MediaWiki versions 1.39+

Dependencies

Class/Package Java MediaWiki extensions
org.wikipedia.Wiki None None
org.wikipedia.WMFWiki(Farm) None As indicated. Works on WMF sites.
org.wikipedia.*Utils None None
org.wikipedia.tools.* None See below.
org.wikipedia.servlets.* javax.servlet See below.

Note: Some tools and all servlets are hardcoded to work on WMF sites only, and in some cases for just the English Wikipedia. (Some tools solve en.wp specific problems). They should all work on WMF sites. If you would like tool coverage for your wiki, please file a bug report.

Bug reports

Bug reports may be filed in the Issue tracker or at my talk page. Please read this essay on filing bug reports effectively if you are not already familiar with its contents. Bugs regarding bot things should have a short test case that demonstrates the problem. Before reporting character encoding problems, please display the output in a JOptionPane to isolate your development environment.

Licenses

Documentation