אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Common.js"

קפיצה לניווט קפיצה לחיפוש
קיין רעדאגירונג באמערקונג
ק (הגהה)
אין תקציר עריכה
שורה 209: שורה 209:
     });
     });
   }
   }
/** WikiMiniAtlas *******************************************************
*
*  Description: WikiMiniAtlas is a popup click and drag world map.
*              This script causes all of our coordinate links to display the WikiMiniAtlas popup button.
*              The script itself is located on meta because it is used by many projects.
*              See [[Meta:WikiMiniAtlas]] for more information.
*  Maintainers: [[User:Dschwen]]
*/
( function () {
if ( $( 'a.external.text[href*=geohack], div.kmldata' ).length ) {
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' );
}
} )();
/*
* Description: Redirects from /User:UserName/skin.js or .css to the user's actual skin page. Used (also) in {{תב|דף אישי}}.
* Originally created by [[:en:User:Cacycle]]
*/
$( function () {
if ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgUserName' ) ) {
            var pageName = mw.config.get( 'wgPageName' );
var slash = pageName.indexOf( '/' );
var norm = pageName.substr( 0, slash ) + mw.config.get( 'wgPageName' ).substr( slash ).toLowerCase();
var test = 'משתמש:' + mw.config.get( 'wgUserName' ).replace( / /g, '_' ) + '/skin.';
var ext = null;
if ( norm === test + 'js' ) {
ext = 'js';
} else if (norm === test + 'css') {
ext = 'css';
}
if ( ext !== null ) {
window.location.href = window.location.href.replace(
/\/skin.(css|js)/i,
'/' + mw.config.get( 'skin' ) + '.' + ext
);
}
}
// create an event when util.addPortletLink() is called, so scripts that manipulate menus ca readjust.
var oldFunc = mw.util.addPortletLink;
if ( typeof oldFunc === 'function' ) {
mw.util.addPortletLink = function () {
var res = oldFunc.apply( this, arguments );
$( document ).trigger( 'new-portlet-link' );
return res;
};
}
} );


   if (
   if (

נאוויגאציע מעניו