User:Quarl/nav afd.js

// toolbox_afd.js - add AFD/Today and AFD/Yesterday links to Toolbox

// requires: wikipageAfd.js, datetime.js, addlilink.js

// quarl 2006-01-03 initial version // quarl 2006-01-24 show three direct links (avoid WP:AFD/Today, etc)

//

function addToolboxAFD { //addToolboxLink('/wiki/WP:AFD/Today', "AFD/Today", "pt-afd-today", "Show today's AFD log"); //addToolboxLink('/wiki/WP:AFD/Yesterday', "AFD/Yesterday", "pt-afd-yesterday", "Show yesterday's AFD log");

for (var i=0; i < 3; ++i) { var d = previousDay(i); var date = datestampUTCISO(d); addNavigationLink(afdLogPage(d).url, "AFD/"+date, "pt-afd-"+i, "Show AFD log for "+date); } }

$(addToolboxAFD);

//