User:Aliasd/monobook.js

//importScript('User:Lupin/popups.js');

importScript('User:AzaToth/twinkle.js');

//importScript('User:Supadawg/secedit.js');

function doQexpand { document.editform.wpTextbox1.value = '{' + '{' + 'Expand}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked for expansion'; document.editform.wpMinoredit.checked = true; document.editform.submit; }

function doQpngstub { document.editform.wpTextbox1.value = '{' + '{' + 'whatever}}\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Misc Template Addition'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

$(function { if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {     return;  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQwhatever", "WE", "");  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQexpand", "EX", "");  }  if (wgCanonicalNamespace != "Talk") {     return;  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQmels1l", "MStuL", "");  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQmels1m", "M", "");  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQmels1h", "H", "");  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQmels2l", "MStaL", "");  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQmels2m", "M", ""); } if (document.editform) { mw.util.addPortletLink("p-cactions", "javascript:doQmels2h", "H", ""); } if (document.editform) { mw.util.addPortletLink("p-cactions", "javascript:doQpngstub", "PNG", ""); } if (document.editform) { mw.util.addPortletLink("p-cactions", "javascript:doQgeostub", "GEO", ""); } });

function doQmels1h { document.editform.wpTextbox1.value = '{' + '{' + 'WikiProject Melanesia|class=Stub|importance=High}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked as a Wikiproject Melanesia stub with high importance'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function doQmels1m { document.editform.wpTextbox1.value = '{' + '{' + 'WikiProject Melanesia|class=Stub|importance=Mid}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked as a Wikiproject Melanesia stub with mid importance'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function doQmels1l { document.editform.wpTextbox1.value = '{' + '{' + 'WikiProject Melanesia|class=Sub|importance=Low}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked as a Wikiproject Melanesia stub with low importance'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function doQmels2h { document.editform.wpTextbox1.value = '{' + '{' + 'WikiProject Melanesia|class=Start|importance=High}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked as a Wikiproject Melanesia start class article with high importance'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function doQmels2m { document.editform.wpTextbox1.value = '{' + '{' + 'WikiProject Melanesia|class=Start|importance=Mid}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked as a Wikiproject Melanesia start class article with mid importance'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function doQmels2l { document.editform.wpTextbox1.value = '{' + '{' + 'WikiProject Melanesia|class=Stub|importance=Low}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked as a Wikiproject Melanesia start class article with low importance'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function doQgeostub { document.editform.wpTextbox1.value = '{' + '{' + 'PapuaNewGuinea-geo-stub}}\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked as a PNG related GEO stub'; document.editform.wpMinoredit.checked = false; document.editform.submit; }

function doQpngstub { document.editform.wpTextbox1.value = '{' + '{' + 'PapuaNewGuinea-stub}}\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked as a PNG related stub'; document.editform.wpMinoredit.checked = false; document.editform.submit; }