User:GeMet/common.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin is at User:GeMet/common.css. |
/**
* Länk till undersidor bredvid inställningar
*/
( function ( mw, $ ) {
$( document ).ready( function () {
var conf, title, url;
// Ändra detta utefter ditt behov
conf = {
subpageName: 'Undersidor',
portletLabel: 'Undersidor',
portletTooltip: 'Visa dina undersidor'
};
// Texten nedan bör inte redigeras.
title = new mw.Title( 'Special:MyPage/' + conf.subpageName );
url = new mw.Uri( title.getUrl() );
mw.util.addPortletLink(
'p-personal',
url,
conf.portletLabel,
'pt-undersidor',
conf.portletTooltip,
'u',
'#pt-preferences'
);
});
}( mediaWiki, jQuery ) );