User:Zurr/wowwiki.js

function foxbot { document.editform.wpSummary.value = '{' + '{' + 'User:Foxbot/Update' + '}' + '}'; document.editform.wpTextbox1.value = '{' + '{' + 'User:Foxbot/Update|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME' + '}' + '} ' + '{' + '{' + 'subst:CURRENTYEAR' + '}' + '}' + '|user=Zurr' + '}' + '}\n\n' + document.editform.wpTextbox1.value; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function doSD { sdreason = prompt("reason", ""); if (sdreason) { document.editform.wpTextbox1.value = '{' + '{' + 'sd|' + sdreason + '|sig=--User:Zurr' + '}' + '}\n' + document.editform.wpTextbox1.value; } document.editform.wpSummary.value = '{' + '{'+ 'speedydelete' + '}' + '}'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function doTrans { document.editform.wpTextbox1.value = '<' + 'noinclude' +'>' + '{' + '{' + 'transclude' + '}' + '}' + '<' + '/' + 'noinclude' + '>' + '\n' + document.editform.wpTextbox1.value; document.editform.wpMinoredit.checked = true; document.editform.submit; }

function doQuest { document.editform.wpTextbox1.value = '{'+'{'+':'+'U'+'s'+'e'+'r'+':' + 'L' + 'a' + 'u' + 'r' + 'l' + 'y' + 'b' + 'o' + 't' + '/' + 'D' + 'o' + 'q' + 'u' + 'e' + 's' + 't' + 's' + '}' + '}' + '{' + '{' + 'Stub/Quest' + '}' + '}\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Laurlybot, quest stub'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function SpellTemplate { spellname = prompt("Spell name", ""); spellicon = prompt("Icon", "Temp"); spelleffect = prompt("Spell effect", ""); spellID = prompt("Spell ID", ""); document.editform.wpTextbox1.value = '==' + spellname + '==\n'+'{'+'{'+'Icon|' + spellicon +'}'+'}'+'\n ' + spelleffect + ' \n'+'{'+'{'+'clrl'+'}'+'}'+'\n\n==External links==\n'+'{'+'{'+'elinks-spell|'+ spellID + '}'+'}'+'\n\n'+'['+'['+'Category:Spells by ID'+']'+']'; document.editform.wpMinoredit.checked = false; }

addOnloadHook(function { if (document.editform) {     addPortletLink("p-cactions", "javascript:doSD","sd","ca-sd","sd","");     addPortletLink("p-cactions", "javascript:doTrans","Trans","ca-sd","Trans","");     addPortletLink("p-cactions", "javascript:doQuest","bot request","ca-sd","bot request stub","");     addPortletLink("p-cactions", "javascript:foxbot", "fox-item","ca-fox","fox-item","");     addPortletLink("p-cactions", "javascript:SpellTemplate","spell template","ca-sd","Spell template","");  } });

importedScripts = {}; function importScript( page ) { if( importedScripts[page] ) { return; }     importedScripts[page] = true; var url = wgScriptPath + '/index.php?title=' + encodeURIComponent( page.replace( / /g, '_' ) ) + '&action=raw&ctype=text/javascript'; var scriptElem = document.createElement( 'script' ); scriptElem.setAttribute( 'src', url ); scriptElem.setAttribute( 'type', 'text/javascript' ); document.getElementsByTagName( 'head' )[0].appendChild( scriptElem ); } importScript("User:Kaydeethree/recent2.js"); importScript("User:Kaydeethree/autoedit.js");

/* */