|
|
| (8 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| /* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */ | | /* Das folgende JavaScript wird für alle Benutzer 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 202: |
Zeile 157: |
| mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton ); | | mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton ); |
|
| |
|
| /** | | /* |
| * For Template:Button
| | * WikiEditor |
| * Load jquery.ui.button if used in content
| | |
| * for backward-compatibilty
| | mw.loader.load( 'https://wiki.wiidatabase.de/index.php?title=Benutzer:iCON/TemplateWizard.js&action=raw&ctype=text/javascript' ); |
| * 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' );
| |
| }
| |
| } );
| |
|
| |
|
| /** | | /* Umami */ |
| * some general changes on the site after loading
| | if (mw.config.get('wgUserName') === null) { |
| * author: DerFussi
| | (function() { |
| ************************************************* */
| | var script = document.createElement('script'); |
|
| | script.defer = true; |
| ( function ( $ ) { | | script.src = 'https://stats.wiidatabase.de/script.js'; |
| // 1. removing empty brackets in the infoboxes (e.g. empty year statements in population entries) | | script.dataset.websiteId = '8c6112d4-c906-4c53-8a18-8a3b57948cf2'; |
| $('.qbItemSmall').each(function(){
| | document.head.appendChild(script); |
| if ( $(this).text() == '()' ) {
| | })(); |
| $(this).remove();
| | } |
| }
| |
| }); | |
| } ( jQuery ) ); | |