Difference between revisions 9962 and 9963 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)                addEditIntro( 'Template:BLP_editintro' );
                break;
            }
        }
    } );
}


/**
 * Description: Make the Media Viewer feature disabled by default, per the consensus established here: [[Wikipedia:Media Viewer/June 2014 RfC]]
 * Line added by User:Peteforsyth based on instructions from User:MZMcBride; consensus determined by User:Armbrust on 9 July 2014.
 */
mw.config.set("wgMediaViewerOnClick", false);

/**
 * Description: Stay on the secure server as much as possible
 * Maintainers: [[User:TheDJ]]
 */
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 */