Hauptmenü öffnen

AntamarWiki β

Änderungen

MediaWiki:Common.js

155 Bytes hinzugefügt, 10:27, 30. Mai 2013
keine Bearbeitungszusammenfassung
* Load scripts specific to Internet Explorer
*/
if ( $jQuery.client.profile().name === 'msie' ) {
importScript( 'MediaWiki:Common.js/IEFixes.js' );
}
var require_wikiminiatlas = false;
var coord_filter = /geohack/;
$jQuery( document ).ready( function() { $jQuery( 'a.external.text' ).each( function( key, link ) {
if ( link.href && coord_filter.exec( link.href ) ) {
require_wikiminiatlas = true;
}
} );
if ( $jQuery( 'div.kmldata' ).length ) {
require_wikiminiatlas = true;
}
for ( i = 0; i < Tables.length; i++ ) {
if ( $jQuery( Tables[i] ).hasClass( 'collapsible' ) ) {
/* only add button and increment count if there is a header row to work with */
ButtonLink.setAttribute( 'id', 'collapseButton' + tableIndex );
ButtonLink.setAttribute( 'href', '#' );
$jQuery( ButtonLink ).on( 'click', $jQuery.proxy( handleButtonLink, ButtonLink, tableIndex ) );
ButtonLink.appendChild( ButtonText );
for ( i = 0; i < tableIndex; i++ ) {
if ( $jQuery( NavigationBoxes[i] ).hasClass( 'collapsed' ) || ( tableIndex >= autoCollapse && $jQuery( NavigationBoxes[i] ).hasClass( 'autocollapse' ) ) ) {
window.collapseTable( i );
}
else if ( $jQuery( NavigationBoxes[i] ).hasClass ( 'innercollapse' ) ) {
var element = NavigationBoxes[i];
while ((element = element.parentNode)) {
if ( $jQuery( element ).hasClass( 'outercollapse' ) ) {
window.collapseTable ( i );
break;
}
$jQuery( createCollapseButtons );
/**
if ( NavToggle.firstChild.data === NavigationBarHide ) {
for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
if ( $jQuery( NavChild ).hasClass( 'NavContent' ) || $jQuery( NavChild ).hasClass( 'NavPic' ) ) {
NavChild.style.display = 'none';
}
} else if ( NavToggle.firstChild.data === NavigationBarShow ) {
for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
if ( $jQuery( NavChild ).hasClass( 'NavContent' ) || $jQuery( NavChild ).hasClass( 'NavPic' ) ) {
NavChild.style.display = 'block';
}
for ( var i = 0; (NavFrame = divs[i]); i++ ) {
/* if found a navigation bar */
if ( $jQuery( NavFrame ).hasClass( 'NavFrame' ) ) {
indexNavigationBar++;
NavToggle.setAttribute( 'id', 'NavToggle' + indexNavigationBar );
NavToggle.setAttribute( 'href', '#' );
$jQuery( NavToggle ).on( 'click', $jQuery.proxy( window.toggleNavigationBar, window, indexNavigationBar ) );
var isCollapsed = $jQuery( NavFrame ).hasClass( 'collapsed' );
/**
* Check if any children are already hidden. This loop is here for backwards compatibility:
*/
for ( NavChild = NavFrame.firstChild; NavChild != null && !isCollapsed; NavChild = NavChild.nextSibling ) {
if ( $jQuery( NavChild ).hasClass( 'NavPic' ) || $jQuery( NavChild ).hasClass( 'NavContent' ) ) {
if ( NavChild.style.display === 'none' ) {
isCollapsed = true;
if ( isCollapsed ) {
for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
if ( $jQuery( NavChild ).hasClass( 'NavPic' ) || $jQuery( NavChild ).hasClass( 'NavContent' ) ) {
NavChild.style.display = 'none';
}
/* Find the NavHead and attach the toggle link (Must be this complicated because Moz's firstChild handling is borked) */
for( var j = 0; j < NavFrame.childNodes.length; j++ ) {
if ( $jQuery( NavFrame.childNodes[j] ).hasClass( 'NavHead' ) ) {
NavToggle.style.color = NavFrame.childNodes[j].style.color;
NavFrame.childNodes[j].appendChild( NavToggle );
}
$jQuery( createNavigationBarToggleButton );
/**
}
$jQuery(uploadwizard_newusers);
/**
*/
function addEditIntro( name ) {
$jQuery( '.mw-editsection, #ca-edit' ).find( 'a' ).each( function ( i, el ) { el.href = $jQuery( this ).attr( 'href' ) + '&editintro=' + name;
} );
}
if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) {
$jQuery( function () {
if ( document.getElementById( 'disambigbox' ) ) {
addEditIntro( 'Template:Disambig_editintro' );
} );
$jQuery( function () {
var cats = document.getElementById( 'mw-normal-catlinks' );
if ( !cats ) {