User talk:Samuel Wiki/bioassessment.js

bioassessment.js is my version of Outriggr's metadatatest.js (which allows you to easily assess the class of an article for a selected Wikiproject from the article page). Compared to Outriggr's script, my version is specifically for WikiProject Biography's WPBiography template and includes extra drop-down menus for it's other parameters (Outriggr's only fills in the Class parameter).



bioassessment.js supports the following parameters:
 * Living
 * Class
 * Priority
 * Workgroup
 * And also gives some common options for the 'extra' parameters (eg. listas, need-infobox, needs-photo)

bioassessment.js was supposed to be for my own personal use only. But I reckon it does a better job at completely assessing an article with as little manual editing as possible than Outrigger's current script, so I decided to share it. If and when Outriggr implements all of WPBiography's extra parameters that can be chosen in an automatic way, I will switch to his and will get anyone using this script to use his too.

Full credit to Outriggr for the original innovative script. He is working on adding the assessment templates for many more Wikiprojects to his metadatatest.js script. When it is done, I believe it will change the entire way Wikiprojects assess their articles.

Installation

 * 1. Highlight and Copy the following:

importScript('User:Outriggr/metadatatest.js');
 * 2. Click [ here] to edit your monobook.js.
 * 3. Paste the copied text into the edit box.
 * 4. Hit Save page

How to use

 * 1) Go to an article.
 * 2) A whole bunch of menu boxes should appear under the article name. If not you may need to bypass the cache (hit Ctrl+Shift+R in Firefox or Ctrl+F5 in Internet Explorer)
 * 3) Choose values for the parameters in the drop-down menus.
 * 4) Pick the class of the article by clicking one of the options in the row of links below the menus.
 * 5) You will then be taken to the talk page. The filled in WPBiography template will be added to the talk page. Check the template and fill in the listas if required.
 * 6) Save the page.

Setting default values
You can set default values for each one of the drop-down menus.

To do this add one or more of the following to your [ monobook.js] :

defaultLiving = "OPTION";

where OPTION is either  or

defaultPriority = "OPTION";

where OPTION is either,  ,   or

defaultWorkgroup = "OPTION";

where OPTION is either:

Marking edits as Minor
To mark your edits as minor edits, add the following to your [ monobook.js]

assessmentMarkAsMinor = true;

Wish list
Note that I have no idea how the code any of these, bioassessment.js itself is just a hacked version of metadatatest.js If anyone can code these, feel free to help.


 * Change the way the 'extra' parameters are picked to a bunch of checkboxes instead of a drop-down menu.
 * Automatic listas
 * Set names for values in the menus (eg. the value "|living=yes" would be appear as Yes)

Change log
March 6, 2007
 * fix closing brace bug, add drop-down menu for 'extra' parameters.