מדיה ויקי:Common.js: הבדלים בין גרסאות בדף
עבר לתבנית:טען סקריפט |
אין תקציר עריכה |
||
| (15 גרסאות ביניים של 6 משתמשים אינן מוצגות) | |||
| שורה 41: | שורה 41: | ||
} | } | ||
} | } | ||
if ( mw.config.get( 'wgNamespaceNumber' ) === 6 ) { | |||
mw.loader.load( 'ext.gadget.ime' ); | |||
if ( mw.config.get( ' | |||
} | } | ||
// סקריפטים עבור אנונימיים ו/או חדשיםs | // סקריפטים עבור אנונימיים ו/או חדשיםs | ||
| שורה 185: | שורה 175: | ||
restrictionEdit[0] === 'autoconfirmed' || | restrictionEdit[0] === 'autoconfirmed' || | ||
restrictionEdit[0] === 'templateeditor' || | restrictionEdit[0] === 'templateeditor' || | ||
restrictionEdit[0] === ' | restrictionEdit[0] === 'editautopatrolprotected' | ||
) && | ) && | ||
$( '#pl-noprotectionnotice, #pl-autoconfirmed, #pl-protected' ).length === 0 && | $( '#pl-noprotectionnotice, #pl-autoconfirmed, #pl-protected' ).length === 0 && | ||
| שורה 193: | שורה 183: | ||
'sysop': 'מוגן', | 'sysop': 'מוגן', | ||
'templateeditor': 'הגנת ממשק', | 'templateeditor': 'הגנת ממשק', | ||
' | 'editautopatrolprotected': 'הגנה מוגברת', | ||
'autoconfirmed': 'מוגן חלקית' | 'autoconfirmed': 'מוגן חלקית' | ||
}; | }; | ||
| שורה 259: | שורה 249: | ||
// On demand loading of scripts and gadgets, initial version from ruwiki. | // On demand loading of scripts and gadgets, initial version from ruwiki. | ||
// Detects uses of | // Detects uses of template "טען סקריפט" | ||
// and loads specifically-named scripts or gadgets. | // and loads specifically-named scripts or gadgets. | ||
// for a gadget, its name as defined in gadgets-definition must begin with "ondemand-" | // for a gadget, its name as defined in gadgets-definition must begin with "ondemand-" | ||
if ( mw.config.get('wgCanonicalNamespace') !== 'Special' ) | if ( mw.config.get('wgCanonicalNamespace') !== 'Special' ) | ||
| שורה 267: | שורה 256: | ||
var beenthere = {}; | var beenthere = {}; | ||
$( '.executeJS', content ).each( function () { | $( '.executeJS', content ).each( function () { | ||
var gadget = $( this ).data( 'gadgetname' ); | var gadget = $( this ).data( 'gadgetname' ); | ||
if ( gadget && $.trim( gadget ) ) mw.loader.load( 'ext.gadget.ondemand-' + $.trim( gadget ) ); // np repetitions - resourceloader takes care | if ( gadget && $.trim( gadget ) ) mw.loader.load( 'ext.gadget.ondemand-' + $.trim( gadget ) ); // np repetitions - resourceloader takes care | ||
} ); | } ); | ||
} ); | } ); | ||