User:Gary/refbuttons.js

$(refbuttons); function refbuttons {	if (mwCustomEditButtons) {		var time = new Date; var currentDate = time.getDate; var currentMonth = time.getMonth+1; var currentYear = time.getYear+1900; var currentDateString = currentDate.toString; if (currentDate < 10) currentDateString = '0' + currentDateString; var currentMonthString = currentMonth.toString; if (currentMonth < 10) currentMonthString = '0' + currentMonthString; var months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');

mwCustomEditButtons[mwCustomEditButtons.length] = {			'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png', 'speedTip': 'Web citation', 'tagOpen': ' ', /*'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': '' };

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

mwCustomEditButtons[mwCustomEditButtons.length] = {			'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/e/ef/Button_cite_book.png', 'speedTip': 'Encyclopedia citation', 'tagOpen': ' ', 'sampleText': '' };	} }