7.847
Bearbeitungen
ICON (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
ICON (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
/* | /* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */ | ||
// Imports Edittools functions | |||
if ( mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit' ) { | |||
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:Edittools.js&action=raw&ctype=text/javascript' ); | |||
} | |||
// Select containers with tabs | |||
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:TabsSelection.js&action=raw&ctype=text/javascript' ); | |||
// Image / scroll galleries | |||
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:ScrollGallery.js&action=raw&ctype=text/javascript' ); | |||
// Adding Skype links in VCards | |||
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:VCard.js&action=raw&ctype=text/javascript' ); | |||
// Image Upload | |||
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:Upload.js&action=raw&ctype=text/javascript' ); | |||
// Adding Wikidata search results | |||
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' || ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) { | |||
mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript' ); | |||
} | |||
// Wrapping li/dd/p/div containers which contain vCard templates for maintenance | |||
// See also MediaWiki:Gadget-vCards-Notes.css | |||
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:CheckWrappedVCards.js&action=raw&ctype=text/javascript' ); | |||
// Adding GPX download | |||
mw.loader.load( "//de.wikivoyage.org/w/index.php?title=MediaWiki:Poi2gpx.js&action=raw&ctype=text/javascript" ); | |||
// Adding vCard Editor (ListingEditor) | |||
mw.loader.load( "//de.wikivoyage.org/w/index.php?title=MediaWiki:ListingEditor.js&action=raw&ctype=text/javascript" ); | |||
// Adding vCard/Listing popup information dialog | |||
mw.loader.load( "//de.wikivoyage.org/w/index.php?title=MediaWiki:ListingInfo.js&action=raw&ctype=text/javascript" ); | |||
// Adding marker tooltips | |||
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:MarkerTooltip.js&action=raw&ctype=text/javascript' ); | |||
// Adding several map features | |||
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:MapTools.js&action=raw&ctype=text/javascript' ); | |||
// Adding Feature for Requests for Deletion | |||
mw.loader.load( "//de.wikivoyage.org/w/index.php?title=MediaWiki:DeleteRequests.js&action=raw&ctype=text/javascript" ); | |||
/** | /** | ||
* Collapsible tables ********************************************************* | * Collapsible tables ********************************************************* | ||
Zeile 156: | Zeile 201: | ||
mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton ); | mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton ); | ||
/** | |||
* For Template:Button | |||
* Load jquery.ui.button if used in content | |||
* for backward-compatibilty | |||
* Should be removed/replaced with mediawiki.ui, when that is loaded on each page | |||
*/ | |||
mw.hook( 'wikipage.content' ).add( function ( $content ) { | |||
if ( $content.find( '.ui-button' ).length ) { | |||
mw.loader.load( 'jquery.ui.button' ); | |||
} | |||
} ); | |||
/** | |||
* some general changes on the site after loading | |||
* author: DerFussi | |||
************************************************* */ | |||
( function ( $ ) { | |||
// 1. removing empty brackets in the infoboxes (e.g. empty year statements in population entries) | |||
$('.qbItemSmall').each(function(){ | |||
if ( $(this).text() == '()' ) { | |||
$(this).remove(); | |||
} | |||
}); | |||
} ( jQuery ) ); |
Bearbeitungen