MediaWiki:Common.js: Difference between revisions

From Rhythm Heaven Wiki
Jump to navigation Jump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: importScriptPage('Tooltips/code.js', 'dev');")
 
mNo edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
importScriptPage('Tooltips/code.js', 'dev');
importScriptPage('Tooltips/code.js', 'dev');
//Tooltips (copied from https://unordinary.fandom.com/wiki/MediaWiki:Common.js)
$(window).load(function() {
    importArticles({
        type: "script",
        articles: [
        'u:dev:MediaWiki:Tooltips.js',
        ]
    });
});
window.tooltips_list = [
    {
        classname: 'common-tooltip',
        parse: '{'+'{Common-Tooltip|<#param#>}}',
    }
];
window.tooltips_config = {
    offsetX: 20,
    offsetY: 20,
    waitForImages: true
};

Revision as of 19:07, 10 February 2022

/* Any JavaScript here will be loaded for all users on every page load. */
importScriptPage('Tooltips/code.js', 'dev');

//Tooltips (copied from https://unordinary.fandom.com/wiki/MediaWiki:Common.js)
 $(window).load(function() {
    importArticles({
        type: "script",
        articles: [
        'u:dev:MediaWiki:Tooltips.js',
        ]
    });
});

window.tooltips_list = [
    {
        classname: 'common-tooltip',
        parse: '{'+'{Common-Tooltip|<#param#>}}',
    }
];
window.tooltips_config = {
    offsetX: 20,
    offsetY: 20,
    waitForImages: true
};