MediaWiki:Common.js: Difference between revisions
No edit summary Tag: sourceedit |
No edit summary |
||
Line 15: | Line 15: | ||
'MorphGuy': ['rollback']; |
'MorphGuy': ['rollback']; |
||
}; |
}; |
||
// Background Test |
|||
// You can change this values. |
|||
var bg_color = '#000', |
|||
bg_size = 'cover', |
|||
bg_attachment = 'fixed', |
|||
bg_repeat = 'no-repeat'; |
|||
// This is the important part |
|||
switch (mw.config.get('wgPageName')) { |
|||
case "Bulb Zone": |
|||
// Backgrounds for page "Name1" |
|||
var bgrandom_list = ["Community image 1395684116.jpg"]; |
|||
break; |
|||
} |
|||
// Import always after you declare your variables or in MediaWiki:ImportJS |
|||
importArticles({ |
|||
type: 'script', |
|||
articles: [ |
|||
'u:dev:RandomBackground/code.js' |
|||
] |
|||
}); |
Revision as of 17:09, 29 September 2017
window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"];
window.ajaxIndicator = 'http://vignette1.wikia.nocookie.net/subnautica/images/d/de/Ajax-loader.gif';
window.ajaxRefresh = 30000;
window.AjaxRCRefreshText = 'Auto-refresh';
window.AjaxRCRefreshHoverText = 'Automatically refresh the page';
window.UserTagsJS = {
modules: {},
tags: {
rollback: { u: 'Rollback', order: 100 }
}
};
UserTagsJS.modules.custom = {
'ChrisFo': ['rollback'];
'Mesmerized': ['rollback'];
'MorphGuy': ['rollback'];
};
// Background Test
// You can change this values.
var bg_color = '#000',
bg_size = 'cover',
bg_attachment = 'fixed',
bg_repeat = 'no-repeat';
// This is the important part
switch (mw.config.get('wgPageName')) {
case "Bulb Zone":
// Backgrounds for page "Name1"
var bgrandom_list = ["Community image 1395684116.jpg"];
break;
}
// Import always after you declare your variables or in MediaWiki:ImportJS
importArticles({
type: 'script',
articles: [
'u:dev:RandomBackground/code.js'
]
});