MediaWiki:Common.js: Różnice pomiędzy wersjami
Z Nonsensopedii, polskiej encyklopedii humoru
M |
M |
||
Linia 1: | Linia 1: | ||
/* |
/* |
||
[http://nonsensopedia.wikia.com/index.php?title=MediaWiki:Common.js&action=purge purge] |
[http://nonsensopedia.wikia.com/index.php?title=MediaWiki:Common.js&action=purge purge], [http://nonsensopedia.wikia.com/index.php?title=-&action=raw&smaxage=0&gen=js purge2] |
||
<pre> |
<pre> |
Wersja z 05:41, 22 mar 2007
/*
[http://nonsensopedia.wikia.com/index.php?title=MediaWiki:Common.js&action=purge purge], [http://nonsensopedia.wikia.com/index.php?title=-&action=raw&smaxage=0&gen=js purge2]
<pre>
*/
function edittips() {
if((document.title.indexOf('Edytujesz ') != -1)&&(wgNamespaceNumber == 2)) {
var editnote = '<div style="border:1px solid black;padding:5px;text-align:center;background-color:#ffeeff;margin:5px;">';
editnote += 'text here la la la';
editnote += '</div>';
document.getElementById('bodyContent').innerHTML = editnote + document.getElementById('bodyContent').innerHTML;
}
}
addOnloadHook(edittips);
/* </pre> */