Jump to content

User:Michael.C.Wright/MarkupManager

From Wikinews, the free news source you can write!

The MarkupManager script is designed to help Wikinews reviewers and contributors detect and clean up draft-only templates like {{verify}} before articles are published.

Currently, the tool supports:

  • Hiding all instances in the target article
  • Unhiding all instances in the target article
  • Removing all instances from the target article

If you need help or want to suggest improvements, visit the talk page.

Installation

[edit]

To install the script, add the following line to your common.js page:

mw.loader.load('//en.wikinews.org/w/index.php?title=User:Michael.C.Wright/js/MarkupManager.js&action=raw&ctype=text/javascript');

Once the script is installed, return to and refresh (i.e., Ctrl + R) this page. You will see a control panel, with buttons, in the MarkupManager Interface section below.

Usage

[edit]
Screenshot of MarkupManager Interface
Screenshot of MarkupManager Interface

Enter the article title into the title field in the MarkupManager Interface below. You then have the following actions you can perform:

  • Scan the article for the existence of markup.
  • Hide all occurrences of markup
  • Unhide all occurrences of markup
  • Remove all occurrences of markup

Currently, the only markup recognized is {{Verify}}.

MarkupManager Interface

[edit]

   The MarkupManager script has not been loaded or installed. Once loaded, a cleanup tool will appear here.

Future Plans

[edit]
  • Support for additional templates like {{PhraseReview}}.
  • Automatic tracking of markup present in published articles.

See Also

[edit]