MediaWiki:Common.js: Difference between revisions

From Rhythm Heaven Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 2: Line 2:
importScriptPage('Tooltips/code.js', 'dev');
importScriptPage('Tooltips/code.js', 'dev');


//Tooltips (copied from https://unordinary.fandom.com/wiki/MediaWiki:Common.js)
//Tooltips (copied from https://zero-game.fandom.com/wiki/MediaWiki:Common.js)
$(window).load(function() {
window.BackToTopModern = true;
    importArticles({
importArticles({
        type: "script",
    type: 'script',
        articles: [
    articles: [
        'u:dev:MediaWiki:ReferencePopups/code.js',
         'u:dev:MediaWiki:Tooltips.js',
         'u:dev:MediaWiki:Tooltips.js',
        ]
    ]
    });
});
});
window.tooltips_list = [
    {
        classname: 'common-tooltip',
        parse: '{'+'{Common-Tooltip|<#param#>}}',
    }
];
window.tooltips_config = {
    offsetX: 20,
    offsetY: 20,
    waitForImages: true
};

Latest revision as of 19:13, 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://zero-game.fandom.com/wiki/MediaWiki:Common.js)
window.BackToTopModern = true;
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:ReferencePopups/code.js',
        'u:dev:MediaWiki:Tooltips.js',
    ]
});