Razlika između verzija stranice "MediaWiki:Common.js"

Uklonjeni sadržaj Dodani sadržaj
+toogle
m Fixed some critical bugs, should work 100% as it did before
Red 143:
if (wgPageName == 'Početna_strana' || wgPageName == 'Razgovor:Početna_strana')
addOnloadHook(function () {
addPortletLink('p-lang', 'http://meta.wikimedia.org/wiki/List_of_Wikipedias',
'Svi jezici', 'interwiki-completelist', 'Spisak svih Wikipedija')
var nstab = document.getElementById('ca-nstab-main')
Red 596:
{
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/" +
imageFile,
"tagOpen": tagOpen,
Red 688:
buttonAB.width = 23;
buttonAB.height = 22;
buttonAB.src = 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_replace.png';
buttonAB.border = 0;
buttonAB.alt = 'Zamjeni tekst';
Red 851:
}
var ZoomInIcon = "<a href=\"javascript:Zoom(50)\"><img src=\"http://upload.wikimedia.org/wikipedia/commons/4/48/Magnifier_zoom_in.png\" title=\"vergrö&szlig;ern\" width=24 height=24></a>";
var ZoomOutIcon = "<a href=\"javascript:Zoom(-50)\"><img src=\"http://upload.wikimedia.org/wikipedia/commons/9/92/Magifier_zoom_out.png\" title=\"verkleinern\" width=24 height=24></a>";
var ZoomStdIcon = "<a href=\"javascript:Zoom(0)\"><img src=\"http://upload.wikimedia.org/wikipedia/commons/7/79/Magnifier.png\" title=\"Fensterbreite\" width=24 height=24></a>";
var ImageFrame = ZoomOutIcon + " " + ZoomStdIcon + " " + ZoomInIcon;
Red 887:
if (document.getElementById("ProofReadImage").src.indexOf("commons") == -1 && document.getElementById("ProofReadImage").src.indexOf("Special:Filepath") != -1) {
//image not from commons
document.getElementById("ProofReadImage").src = "http://commons.wikimedia.org/wiki/Special:Filepath/" + imagename;
}
 
Red 1.201:
var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1));
 
if (isMainPage && !isDiff) documentmw.writeutil.addCSS('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>');
 
setModifySectionStyle = function()
Red 1.226:
 
/* </pre> */
// ============================================================
// BEGIN pageview counter
// Please talk to User:LeonWeber before changing anything or
// if there are any issues with that.
// Please do NOT install this on a different site without
// Talking to him before.
// this should be adjusted to a good value.
// BE CAREFULL, you will break zedler if it's too low!
// And then DaB. will kill Leon :-(
var disable_counter = 0;
var counter_factor = 5;
function pgcounter_setup()
{
if(disable_counter == 0)
{
var url = window.location.href;
if(Math.floor(Math.random()*counter_factor)==4) // the probability thing
{
if(wgIsArticle==true || wgArticleId==0) // do not count history pages etc.
{
var pgcountNs = wgCanonicalNamespace;
if(wgCanonicalNamespace=="")
{
pgcountNs = "0";
}
var cnt_url = "http://pgcount.wikimedia.de/index.png?ns=" + pgcountNs + "&title=" + encodeURI(wgTitle) + "&factor=" + counter_factor + "&wiki=bswiki";
var img = new Image();
img.src = cnt_url;
}
}
}
}
// Do not use aOnloadFunctions[aOnloadFunctions.length] = pgcounter_setup;
// (or other onload functions), some browsers don't like that.
pgcounter_setup();
// END pageview counter
// ============================================================
 
/* Configuration for "star" logo at the top of Featured Articles */
Line 1.314 ⟶ 1.274:
function includePage( name )
{
mw.loader.load(wgScript + '?title=' + name + '&action=raw&ctype=text/javascript"><\/script>' );
document.write('<script type="text/javascript" src="' + wgScript + '?title='
+ name
+ '&action=raw&ctype=text/javascript"><\/script>'
);
}
 
Line 1.335 ⟶ 1.292:
*/
+ mw.loader.load('http://meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' );
document.write('<script type="text/javascript" src="'
+ 'http://meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');