MediaWiki:Common.js
Voorkoms
Let wel: Ná die voorkeure gestoor is, moet u blaaier se kasgeheue verfris word om die veranderinge te sien: Mozilla: klik Reload (of Ctrl-R), IE / Opera: Ctrl-F5, Safari: Cmd-R, Konqueror Ctrl-R.
/* Any JavaScript here will be loaded for all users on every page load. */
/*
Déplacement des [modifier]
--------------------------
Correction des titres qui s'affichent mal en raison de limitations dues à MediaWiki.
Copyright 2006, Marc Mongenet. Licence GPL et GFDL.
The function looks for <span class="editsection">, and move them
at the end of their parent and display them inline in small font.
var oldEditsectionLinks=true disables the function.
*/
function setModifySectionStyle() {
try {
if ( !(typeof oldEditsectionLinks == 'undefined' || oldEditsectionLinks === false) ){
return;
}
mw.util.addCSS( 'span.editsection { font-size: xx-small; font-weight: normal; float: none; }' );
var spans = document.getElementsByTagName( 'span' ), s;
for ( s = 0; s < spans.length; ++s ) {
var span = spans[s];
if ( span.className == 'editsection' ) {
span.parentNode.appendChild( document.createTextNode(' ') );
span.parentNode.appendChild( span );
}
}
} catch (e) { /* something went wrong */ }
}
$(setModifySectionStyle);