User:Smith609/taxonomy.js
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button. Firefox: hold down the Shift key while clicking Reload (or press Ctrl-Shift-R). Google Chrome and Safari users can just click the Reload button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// @Version 1.0 - Adds a "Update child lists" link to the toolbox.
function addTaxoLinksToToolbox() {
if (wgCanonicalNamespace == "Template") {
var pTb = document.getElementById("p-tb");
if( !pTb ) return;
var escPageName = encodeURIComponent(wgPageName);
addPortletLink("p-tb", "http://toolserver.org/~verisimilus/Bot/taxobot/update_child_list.php?page=Template:Taxonomy/"+escPageName, 'Update child list', '', "Update list of taxonomic children");
addPortletLink("p-tb", "http://toolserver.org/~verisimilus/Bot/taxobot_dev/taxobot.php?user=" + encodeURIComponent(wgUserName) + "&new_query=T&taxon=" + encodeURIComponent(wgPageName), 'Automate taxonomy', '', "Use the taxonomic information in this taxobox to generate 'automatic taxonomy pages'");
}
}
if (skin) {
addOnloadHook(addTaxoLinksToToolbox);
}