User:SHB/pub sweeper

The Pub Sweeper is a gadget that allows discussions to easily be swept from the Wikivoyage:Travellers' pub.

To install the script, add the following text in your common.js:

// pub sweeper mw.loader.load('//en.wikivoyage.org/w/index.php?title=User:SHB2000/pub sweeper.js&action=raw&ctype=text/javascript')

Once you install the script, you should see a small "[sweep / archive]" button next to the [edit] button whenever you open the Wikivoyage:Travellers' pub (pictured below).

The [sweep / archive] button

After you press the [sweep / archive] button, you will have the option to toggle between sweeping and archiving a discussion. To sweep a discussion, enter the name of the page where you want to sweep the discussion; the script will automatically add the tag {{swept}}. If you choose to archive a discussion, the archive page will be pre-filled.

The user interface is designed to be straightforward and easy to understand. If there are any bugs, let me know on my talk page.

User interface