Jump to content

User talk:Samuel Wiki/bioassessment.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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 with all its drop-down menus opened up to show all its options.


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[edit]

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[edit]

  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[edit]

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 yes or no

defaultPriority = "OPTION";

where OPTION is either Low, Mid, High or Top

defaultWorkgroup = "OPTION";

where OPTION is either:

  • |a&e-work-group=yes
  • |politician-work-group=yes
  • |british-royalty=yes
  • |royalty-work-group=yes
  • |military-work-group=yes
  • |sports-work-group=yes
  • |s&a-work-group=yes
  • |musician-work-group=yes

Marking edits as Minor[edit]

To mark your edits as minor edits, add the following to your monobook.js

assessmentMarkAsMinor = true;

Wish list[edit]

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[edit]

March 6, 2007

  • fix closing brace bug, add drop-down menu for 'extra' parameters.

Users[edit]

Feedback[edit]