MediaWiki:Common.css
Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
- Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
- Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
/* Le CSS placé ici sera appliqué à tous les habillages. */
// First wait for mediawiki.util to load, and the page to be ready.
$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function () {
// General usage pattern:
// mw.util.addPortletLink( portletId, href, text /* Optional: , id, tooltip, accesskey, nextnode */ );
// Example: Add a link to mediawiki.org to the Tools area, above the "Special pages" link.
var newElement = mw.util.addPortletLink(
'p-tb',
'https://www.mediawiki.org/',
'Link to mediawiki.org',
't-mworg',
'Go to www.mediawiki.org',
'm',
'#t-specialpages'
);
// The old way of passing a DOM-node also works
mw.util.addPortletLink(
'p-tb',
'https://www.mediawiki.org/',
'Link to mediawiki.org',
't-mworg',
'Go to www.mediawiki.org',
'm',
document.getElementById( 't-specialpages' )
);
} );