User:Ohconfucius/script/dateabbreviations.js: Difference between revisions

Content deleted Content added
rem mixed content blocking
Replace with templateScript
 
(2 intermediate revisions by 2 users not shown)
Line 4:
*** - adds a sidebar menu of user-defined scripts.
*************/
importScriptURImw.loader.load('//metatools-static.wikimediawmflabs.org/wmeta/index.php?title=User:Pathoschildscripts/Scripts/Regex_menu_frameworkpathoschild.templatescript.js&action=raw&ctype=text/javascript');
function Ohc_expand() {
Line 146:
}
 
$.when(mw.loader.using('mediawiki.util'), $.ready).done(function () {
addOnloadHook(function () {
if(document.forms.editform) {
mw.util.addPortletLink('p-tb', 'javascript:Ohc_run_expand()', 'EXPAND month', 't-addmetric', 'Month names in full', '', '');
mw.util.addPortletLink('p-tb', 'javascript:Ohc_run_abbreviate()', 'ABBREV month', 't-addmetric', 'Month names abbreviated', '', '');
}
});