User:Lwarrenwiki/common.js: Difference between revisions

Content deleted Content added
No edit summary
customized version of Ohconfucius's MOSNUM_dates.js
Line 20:
// ADDITIONS TO LEFT SIDEBAR (TOOLBAR)
// -----------------------------------------------------
// Items that appear on both Read and Edit screens come first in the toolbar (after "Page Information"),
// Only appears if editing
// in the order that they're added below:
importScript('User:Ohconfucius/script/formatgeneral.js'); // [[User:Ohconfucius/script/formatgeneral.js]]
// importScript('User:Ohconfucius/script/flagcruft.js');
// importScript('User:Ohconfucius/script/Sources.js');
 
// Only appears if editing
importScript('User:Ohconfucius/script/Common Terms.js'); // [[User:Ohconfucius/script/Common Terms.js]]
 
// Tool to highlight duplicate links
importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
 
// Add Dab Solver launcher in the toolbox on left
$(function () {
mw.util.addPortletLink(
"p-tb",
"http://dispenser.homenet.org/~dispenser/cgi-bin/dab_solver.py?page="+mw.config.get('wgContentLanguage')+":"+encodeURIComponent(mw.config.get('wgPageName')),
"Dab Solver"
)});
 
// Add Checklinks launcher in the toolbox on left
Line 47 ⟶ 31:
)});
// Add Dab Solver launcher in the toolbox on left
$(function () {
mw.util.addPortletLink(
"p-tb",
"http://dispenser.homenet.org/~dispenser/cgi-bin/dab_solver.py?page="+mw.config.get('wgContentLanguage')+":"+encodeURIComponent(mw.config.get('wgPageName')),
"Dab Solver"
)});
 
// Tool to highlight duplicate links
importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
// appears as "Highlight duplicate links"
 
// reFill (formerly Reflinks tool)
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
// Only appears ifas editing"reFill"
 
// Toolbar items that *only* appear on an Edit screen show up on the toolbar in a second group:
//
importScript('User:Ohconfucius/script/formatgeneral.js'); // [[User:Ohconfucius/script/formatgeneral.js]]
importScript('User:Ohconfucius/script/Common Terms.js'); // [[User:Ohconfucius/script/Common Terms.js]]
// importScript('User:Ohconfucius/script/flagcruft.js');
// importScript('User:Ohconfucius/script/Sources.js');
importScript('User:Lwarrenwiki/script/LWW mosnum dates.js'); // based on [[User:Ohconfucius/script/MOSNUM dates.js]]
 
// -----------------------------------------------------
// Only appears if editing
importScript('User:Ohconfucius/script/MOSNUM dates.js');
 
// -----------------------------------------------------