User:Thisisborin9/importancetag.js

function importancebuttons { 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/d/d8/Low_importance_button.png", "speedTip": "Low-importance article", "tagOpen": "|importance=Low", "tagClose": "}}", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/28/Med_importance_button.png", "speedTip": "Med-importance article", "tagOpen": "|importance=Mid", "tagClose": "}}", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fc/High_importance_button.png", "speedTip": "High-importance article", "tagOpen": "|importance=High", "tagClose": "}}", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3c/Top_importance_button.png", "speedTip": "Top-importance article", "tagOpen": "importance=Top", "tagClose": "}}", "sampleText": ""}; } } $(importancebuttons);