MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 1: Line 1:
/* copied from https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js on 02/05/2023 */
/**
/**
  * Keep code in MediaWiki:Common.js to a minimum as it is unconditionally
  * Keep code in MediaWiki:Common.js to a minimum as it is unconditionally
Line 17: Line 19:
mw.loader.using( [ 'mediawiki.util' ] ).done( function () {
mw.loader.using( [ 'mediawiki.util' ] ).done( function () {
/* Begin of mw.loader.using callback */
/* Begin of mw.loader.using callback */
/**
* Main Page layout fixes
*
* Description: Adds an additional link to the complete list of languages available.
* Should T18962 be completed this can be removed along with associated CSS in common.css
* Maintainers: [[User:AzaToth]]
*/
if ( mw.config.get( 'wgPageName' ) === 'Main_Page' || mw.config.get( 'wgPageName' ) === 'Talk:Main_Page' ) {
$( function () {
mw.util.addPortletLink( 'p-lang', '//meta.wikimedia.org/wiki/List_of_Wikipedias',
'Complete list', 'interwiki-completelist', 'Complete list of Wikipedias' );
} );
}


/**
/**
Line 74: Line 62:
* Description: WikiMiniAtlas is a popup click and drag world map.
* Description: WikiMiniAtlas is a popup click and drag world map.
*              This script causes all of our coordinate links to display the WikiMiniAtlas popup button.
*              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.
*              The script itself is located on the Meta-Wiki because it is used by many projects.
*              See [[Meta:WikiMiniAtlas]] for more information.
*              See [[Meta:WikiMiniAtlas]] for more information.
* Note - use of this service is recommended to be replaced with mw:Help:Extension:Kartographer
* Note - use of this service is recommended to be replaced with mw:Help:Extension:Kartographer