User:Joshua Scott/Scripts/pendingchanges
This script will put a "Pending changes" menu in the sidebar. By default, it is collapsed, and thus inactive. Clicking on "Pending changes will activate it, and show a list of pages that are waiting for approval.
Installation
Add the following line to your skin script (found at Special:Mypage/skin.js):
importScript('User:Joshua Scott/Scripts/pendingchanges.js');
Customizing
You can customize the operation of the script by setting certain parameters, like:
parameter = value;
(make sure of the semicolon at the end)
Parameters
- pendch_enabled - whether the menu starts open & enabled
- possible values: true or false. default: false
- pendch_refresh - how often the list is refreshed (in seconds).
- possible values: numbers greater than 2. default: 10.
- pendch_num_pages - how many pages are listed in the menu
- possible values: numbers between 1 and 50. default: 10.
- pendch_num_idle_req - how many refreshes will happen before it turns itself off.
- possible values: numbers between 5 and 1000. default: 50
Examples
Turn the menu on by default, refresh every 30 seconds, list a maximum of 5 pages at a time, and shut off after 20 requests:
pendch_enabled = true;
pendch_refresh = 30;
pendch_num_pages = 5;
pendch_num_idle_req = 20;
Problems?
Please ask for help.
Thanks
Thanks to User:TheJosh, who wrote the New Page Patrol script at User:TheJosh/Scripts/NewPagePatrol.js. This script is largely based on that excellent script.