User:Mr.Z-man/refbuttons.js

// For description, see User:Mr.Z-man/refbuttons

function refbuttons { if (typeof mwCustomEditButtons !== 'undefined') {

var time = new Date; var curday = time.getDate; var curmonth = time.getMonth+1; var nowyear = time.getYear+1900; var nowday = curday.toString; if (curday <10) { nowday = "0"+nowday;} var nowmonth = curmonth.toString; if (curmonth <10) { nowmonth = "0"+nowmonth;}

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png", "speedTip": "Web citation", "tagOpen": " ", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2c/Button_cite_news.png", "speedTip": "News citation", "tagOpen": " ", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ef/Button_cite_book.png", "speedTip": "Book citation", "tagOpen": " ", "sampleText": ""}; } } $(refbuttons);