User:A proofreader/Command-line

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search

A proofreader's command-line wiki tool allows users to do certain things on the wiki without needing to load the pages on the wiki's Web interface. This is useful in many scenarios:

  • Adding new, short sections to User talk namespace pages that have lots of images in them (with newsection). These images would inflate a browser's memory usage and make it lag immensely.
  • Reverting vandalism in which the vandal prevents the function of all buttons via the CSS z-order declaration (with rollback).
  • Replacing text using a simple find-and-replace (with replacetext) or a regular expression (with replaceregex).
  • Quickly checking the number of transclusions of a template or uses of an image (with 'count transclusions' and 'count uses').
  • Quickly checking whether a page is a redirect (with pageinfo).
  • Mass moving, reverting, protection and deletion (with 'repeat move', 'repeat rollback', 'repeat protect' and 'repeat delete').

Instructions for running the shell are on GitHub.

You can also create a shortcut to the wiki shell.

  • On Windows, you would right-click your Desktop, then select New -> Shortcut. When prompted for the executable path, type 'java -classpath "C:\Users\Me\WikiShell\bin" org.mediawiki.WikiShell' (without the outer quotes; use the inner double-quotes if your directory path contains spaces). Finish the shortcut creation wizard.
  • On Linux, this depends on your desktop environment. Make sure the command is 'java "/home/me/wikishell/bin" org.mediawiki.WikiShell' (without the outer quotes; use the inner double-quotes if your directory path contains spaces).