Jump to content

User:Seraphim System/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Seraphim System (talk | contribs) at 07:28, 8 January 2018 (edit). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Adds a toolbox link to do a copyvio check on the given page. */

mw.loader.using("mediawiki.util", function() {
    mw.util.addPortletLink(
        "p-tb",
        "https://tools.wmflabs.org/copyvios/?lang=" + mw.config.get("wgContentLanguage") + "&project=" + mw.config.get("wgSiteName").toLowerCase() + "&title=" + encodeURIComponent(mw.config.get("wgPageName")),
        "Copyvio check",
        "t-copyvio-check",
        "Check this page for copyright violations"
    );
});

/* Syntax highligting */
//syntaxHighlighterConfig = {
//    externalLinkColor:"#FFFFFF", //sea
//    wikilinkColor:  "#98C8B2", //easter frosting
//    signatureColor: "#7b7b7b", //medium blue
//    tableColor: "#7b7b7b", //mint
//    templateColor: "#7b7b7b", //gray
//    parameterColor: "#7b7b7b", //magenta
//    tagColor: "#FFFFFF", //turkish rose
//    commentColor: "#7b7b7b", //turkish rose
//    entityColor: "#7b7b7b", //salmon

//AFD toolbar
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl('Wikipedia:List of current and old AfDs'),
    'AfDs',
    'pt-specialnew',
    'View the AfD listings of the past 7 days and more...',
    null,
    '#pt-preferences'
  );
});

//Subpages
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl('Special:PrefixIndex/User:Seraphim_System'),
    'Subpages',
    'pt-specialnew',
    'Userspace',
    null,
    '#pt-preferences'
  );
});

mw.loader.using( 'mediawiki.util' ).done( function() {
	mw.util.addPortletLink('p-navigation',  mw.util.getUrl('Wikipedia:List_of_infoboxes'), "Infoboxes")
} );

importScript('User:Primefac/revdel.js'); // [[User:Primefac/revdel]]
importScript('User:V111P/js/smartLinkingLoader.js'); // [[User:V111P/js/smartLinkingLoader.js]]
importScript('User:GregU/dashes.js')
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:Meteor sandwich yum/Tidy citations.js'); //[[User:Meteor sandwich yum/Tidy citations.js]]
importScript("User:PleaseStand/userinfo.js"); // [[User:PleaseStand/User info]]