Difference between revisions 9961 and 9962 on newikibooks/** * Keep code in MediaWiki:Common.js to a minimum as it is unconditionally * loaded for all users on every wiki page. If possible create a gadget that is * enabled by default instead of adding it here (since gadgets are fully * optimized ResourceLoader modules with possibility to add dependencies etc.) * * Since Common.js isn't a gadget, there is no place to declare its * dependencies, so we have to lazy load them with mw.loader.using on demand and (contracted; show full)} /** * Map addPortletLink to mw.util * * @deprecated: Use mw.util.addPortletLink instead. */ mw.log.deprecate( window, 'addPortletLink', function () { return mw.util.addPortletLink.apply( mw.util, arguments ); },mw.util.addPortletLink,⏎ 'Use mw.util.addPortletLink() instead' ); /** * Extract a URL parameter from the current URL * * @deprecated: Use mw.util.getParamValue with proper escaping */ mw.log.deprecate( window, 'getURLParamValue', function () { return mw.util.getParamValue.apply( mw.util, arguments ); }mw.util.getParamValue, 'Use mw.util.getParamValue() instead' ); /** * Test if an element has a certain class * * @deprecated: Use $(element).hasClass() instead. */ mw.log.deprecate( window, 'hasClass', function ( element, className ) { (contracted; show full)if ( document.location && document.location.protocol === 'https:' ) { /* New secure servers */ importScript( 'MediaWiki:Common.js/secure new.js' ); } /* End of mw.loader.using callback */ } ); /* DO NOT ADD CODE BELOW THIS LINE */ All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://ne.wikibooks.org/w/index.php?diff=prev&oldid=9962.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|