Die Seite für Alsterweiler von Matthias C.S. Dreyer u.a.
MediaWiki:Common.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K |
|||
| Zeile 12: | Zeile 12: | ||
if (wgNamespaceNumber==6 && wgAction=='view') { | if (wgNamespaceNumber==6 && wgAction=='view') { | ||
mw.loader.load('//tools.wmflabs.org/imagemapedit/ime.js'); | mw.loader.load('//tools.wmflabs.org/imagemapedit/ime.js'); | ||
| − | } | + | }; |
| + | |||
| + | /** | ||
| + | * Icons on the top right of the article. | ||
| + | * See also CSS | ||
| + | * | ||
| + | * @source https://www.mediawiki.org/wiki/Snippets/Top_icons | ||
| + | * @version 5 | ||
| + | */ | ||
| + | $( function ( $ ) { | ||
| + | $( '.Top_icon_raw' ) | ||
| + | .removeClass( 'Top_icon_raw' ) | ||
| + | .addClass( 'Top_icon_dynamic' ) | ||
| + | .prependTo( '#firstHeading' ); | ||
| + | } ); | ||
Version vom 7. November 2015, 17:52 Uhr
/**
* WikiMiniAtlas is a popup click and drag world map.
* See [[meta:WikiMiniAtlas]] for more information.
* Maintainers: [[w:User:Dschwen]]
*/
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400' );
/**
* EditMap wird benötigt um die ImageKarten bearbeiten zu können.
* siehe dazu: https://meta.wikimedia.org/wiki/User:Dapete/ImageMapEdit#English
*/
if (wgNamespaceNumber==6 && wgAction=='view') {
mw.loader.load('//tools.wmflabs.org/imagemapedit/ime.js');
};
/**
* Icons on the top right of the article.
* See also CSS
*
* @source https://www.mediawiki.org/wiki/Snippets/Top_icons
* @version 5
*/
$( function ( $ ) {
$( '.Top_icon_raw' )
.removeClass( 'Top_icon_raw' )
.addClass( 'Top_icon_dynamic' )
.prependTo( '#firstHeading' );
} );