User:Thisisborin9/classtag.js

function classbuttons { if (mwCustomEditButtons) { 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/1/13/Stub_class_button.png", "speedTip": "Stub-class article", "tagOpen": "{{NBA Project|class=Stub", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5d/Start_class_button.png", "speedTip": "Start-class article", "tagOpen": "{{NBA Project|class=Start", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/52/B_class_button.png", "speedTip": "B-class article", "tagOpen": "{{NBA Project|class=B", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/01/GA_class_button.png", "speedTip": "GA-class article", "tagOpen": "{{NBA Project|class=GA", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/7d/A_class_button.png", "speedTip": "A-class article", "tagOpen": "{{NBA Project|class=A", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/7b/FA_class_button.png", "speedTip": "FA-class article", "tagOpen": "{{NBA Project|class=FA", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/40/FL_class_button.png", "speedTip": "FL-class article", "tagOpen": "{{NBA Project|class=FL", "tagClose": "", "sampleText": ""}; } } $(classbuttons);