User:Theleekycauldron/Scripts/PSHAW/dependencies/Nomination.js: Difference between revisions
Content deleted Content added
+tag |
yay |
||
Line 35:
}
hat(type,prep="",topmessage=""){
var splittext = this.content.split("\n");
splittext[0] = "{{subst:DYKsubpage";
splittext[2] = "|passed="+type;
if (type=="yes"){
splittext.splice(splittext.length-1,0,"To [[" + prep + "]]");
}
if (topmessage != ""){
splittext.splice(4,0,topmessage);
}
this.content = splittext.join("\n");
|