MediaWiki:Common.js: Difference between revisions
No edit summary Tag: sourceedit |
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) |
||
(10 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
// dev:InputUsername |
|||
window.UsernameReplaceSelector = 'span.insertusername'; |
|||
// dev:Tooltips |
|||
window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"]; |
|||
window.tooltips_list = [ |
|||
window.ajaxIndicator = 'http://images2.wikia.nocookie.net/__cb20100609110347/software/images/a/a9/Indicator.gif'; |
|||
{ |
|||
window.ajaxRefresh = 30000; |
|||
classname: 'fauna-tooltip', |
|||
window.AjaxRCRefreshText = 'Auto-refresh'; |
|||
parse: '{' + '{FaunaTable/<#fauna#>}}' |
|||
window.AjaxRCRefreshHoverText = 'Automatically refresh the page'; |
|||
}, |
|||
{ |
|||
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#>}}' |
|||
} |
|||
]; |
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#>}}'
}
];