MediaWiki:Common.js: Unterschied zwischen den Versionen
KKeine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
KKeine Bearbeitungszusammenfassung Markierung: Manuelle Zurücksetzung |
||
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 23: | Zeile 23: | ||
*/ | */ | ||
mw.log.deprecate( window, 'addPortletLink', mw.util.addPortletLink, 'Use mw.util.addPortletLink instead' ); | mw.log.deprecate( window, 'addPortletLink', mw.util.addPortletLink, 'Use mw.util.addPortletLink instead' ); | ||
/** | /** | ||
Zeile 67: | Zeile 59: | ||
var requireWikiminiatlas = $( 'a.external.text[href*="geohack"]' ).length || $( 'div.kmldata' ).length; | var requireWikiminiatlas = $( 'a.external.text[href*="geohack"]' ).length || $( 'div.kmldata' ).length; | ||
if ( requireWikiminiatlas ) { | if ( requireWikiminiatlas ) { | ||
mw.loader.load( ' | mw.loader.load( 'ext.gadget.WikiMiniAtlas' ); | ||
} | } | ||
} ); | } ); | ||
Zeile 131: | Zeile 123: | ||
$toggle = $element.find( '.mw-collapsible-toggle' ); | $toggle = $element.find( '.mw-collapsible-toggle' ); | ||
if ( $toggle.length ) { | if ( $toggle.length ) { | ||
// Make the toggle inherit text color | // Make the toggle inherit text color (Updated for T333357 2023-04-29) | ||
if ( $toggle.parent()[ 0 ].style.color ) { | if ( $toggle.parent()[ 0 ].style.color ) { | ||
$toggle.find( ' | $toggle.css( 'color', 'inherit' ); | ||
$toggle.find( '.mw-collapsible-text' ).css( 'color', 'inherit' ); | |||
} | } | ||
} | } | ||
Zeile 140: | Zeile 133: | ||
mw.hook( 'wikipage.collapsibleContent' ).add( mwCollapsibleSetup ); | mw.hook( 'wikipage.collapsibleContent' ).add( mwCollapsibleSetup ); | ||
/* End of mw.loader.using callback */ | /* End of mw.loader.using callback */ | ||
} ); | } ); | ||
/* DO NOT ADD CODE BELOW THIS LINE */ | /* DO NOT ADD CODE BELOW THIS LINE */ |