User:Michael.C.Wright/MarkupManager
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]
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]
| |
Reminder: Templates like {{verify}} are meant only for drafts. Please remove them before publication. Use the buttons below to help manage cleanup. |
| Reminder: Templates like {{verify}} are meant only for drafts. Please remove them before publication. Use the buttons below to help manage cleanup. |
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.