MediaWiki:Common.js: Difference between revisions
No edit summary |
SlyAceZeta (talk | contribs) (removing AjaxRC (superseded by core MW functionality) and UserTags (use was minimal); adding InputUsername to replace custom code; updating Tooltips for UCP) |
||
Line 1: | Line 1: | ||
// dev:InputUsername |
|||
window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"]; |
|||
window.UsernameReplaceSelector = 'span.insertusername'; |
|||
window.ajaxIndicator = 'https://vignette.wikia.nocookie.net/subnautica/images/d/de/Ajax-loader.gif'; |
|||
window.ajaxRefresh = 30000; |
|||
window.AjaxRCRefreshText = 'Auto-refresh'; |
|||
window.AjaxRCRefreshHoverText = 'Automatically refresh the page'; |
|||
⚫ | |||
modules: {}, |
|||
tags: { |
|||
rollback: { u: 'Rollback', order: 100 } |
|||
} |
|||
}; |
|||
// dev:Tooltips |
|||
UserTagsJS.modules.custom = { |
|||
⚫ | |||
'Mesmerized': ['rollback'], |
|||
'MorphGuy': ['rollback'], |
|||
'Squidy_Frykas': ['rollback'], |
|||
}; |
|||
$(function() { |
|||
if (window.disableUsernameReplace || mw.config.get('wgUserName') === null) { return; } |
|||
$('span.insertusername').text(mw.config.get('wgUserName')); |
|||
}); |
|||
var tooltips_list = [ |
|||
{ |
{ |
||
classname: 'fauna-tooltip', |
classname: 'fauna-tooltip', |
Latest revision as of 00:54, 29 January 2022
// dev:InputUsername
window.UsernameReplaceSelector = 'span.insertusername';
// dev:Tooltips
window.tooltips_list = [
{
classname: 'fauna-tooltip',
parse: '{' + '{FaunaTable/<#fauna#>}}'
},
{
classname: 'flora-tooltip',
parse: '{' + '{FloraTable/<#flora#>}}'
},
{
classname: 'coral-tooltip',
parse: '{' + '{CoralTable/<#coral#>}}'
},
{
classname: 'clade-tooltip',
parse: '{' + '{CladeInfo/<#info#>}}'
},
{
classname: 'databank-tooltip',
parse: '{' + '{Databank2|<#info#>}}'
},
{
classname: 'biome-tooltip',
parse: '{' + '{BiomeTable/<#biome#>}}'
}
];