MediaWiki:Common.css: verschil tussen versies

Uit WikiMeneer
Ga naar: navigatie, zoeken
 
 
(Een tussenliggende versie door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
/* CSS placed here will be applied to all skins */
+
/**
/* Geeft de naam van de gebruikers een mooi kleurtje bij de Recente wijzigingen. Overal. */
+
* Keep code in MediaWiki:Common.js to a minimum as it is unconditionally
 +
* loaded for all users on every wiki page. If possible create a gadget that is
 +
* enabled by default instead of adding it here (since gadgets are fully
 +
* optimized ResourceLoader modules with possibility to add dependencies etc.)
 +
*
 +
* Since Common.js isn't a gadget, there is no place to declare its
 +
* dependencies, so we have to lazy load them with mw.loader.using on demand and
 +
* then execute the rest in the callback. In most cases these dependencies will
 +
* be loaded (or loading) already and the callback will not be delayed. In case a
 +
* dependency hasn't arrived yet it'll make sure those are loaded before this.
 +
*/
  
.mw-userlink[title="Gebruiker:Marco"] {
+
/* global mw, $, importStylesheet, importScript */
font-weight:bold !important;
+
/* jshint strict:false, browser:true */
font-style:italic !important;
+
color:#FFA500 !important;
+
}
+
.mw-userlink[title="Gebruiker:Rongo"] {
+
font-weight:bold !important;
+
font-style:italic !important;
+
color:#FFD700 !important;
+
}
+
.mw-userlink[title="Gebruiker:MDV"] {
+
color: #FFFF00 !important;
+
}
+
.mw-userlink[title="Gebruiker:PPP"] {
+
color: #FFD700 !important;
+
}
+
.mw-userlink[title="Gebruiker:Watje"] {
+
color: #99FF00 !important;
+
}
+
.mw-userlink[title="Gebruiker:Dinges"] {
+
color:#FF00FF !important;
+
}
+
.mw-userlink[title="Gebruiker:D. G. Neree"] {
+
color:#8B4513 !important;
+
}
+
.mw-userlink[title="Gebruiker:Alzheimlich"] {
+
color:#006699 !important;
+
}
+
.mw-userlink[title="Gebruiker:Cruor"] {
+
color:#708090 !important;
+
}
+
.mw-userlink[title="Gebruiker:Vsotvep"] {
+
color:#400c1c !important;
+
font-weight:bold !important;
+
}
+
.mw-userlink[title="Gebruiker:Lambic"] {
+
color:#FFA07A !important;
+
}
+
.mw-userlink[title="Gebruiker:Dingaantouwtje"] {
+
color:#FF1493 !important;
+
}
+
.mw-userlink[title="Gebruiker:Hedz0qxz"] {
+
color:#000000 !important;
+
}
+
.mw-userlink[title="Gebruiker:Sergeant Pepper"] {
+
color:#CD5C5C !important;
+
}
+
.mw-userlink[title="Gebruiker:CartoonistHenning"] {
+
font-weight:bold !important;
+
font-style:italic !important;
+
color:#800080 !important;
+
}
+
.mw-userlink[title="Gebruiker:Jonas"] {
+
color:#800000 !important;
+
}
+
.mw-userlink[title="Gebruiker:WOEI"] {
+
color:#1E90FF !important;
+
}
+
.mw-userlink[title="Gebruiker:Roye7777777"] {
+
font-style:italic !important;
+
font-weight:bold !important;
+
color:#00FF00 !important;
+
}
+
.mw-userlink[title="Gebruiker:Lars863"] {
+
color:#000000 !important;
+
}
+
.mw-userlink[title="Gebruiker:Kazzy"] {
+
color:#228B22 !important;
+
}
+
.mw-userlink[title="Gebruiker:Aeno"] {
+
color:#00A8A8 !important;
+
}
+
.mw-userlink[title="Gebruiker:Waterdrager"] {
+
color:#330066 !important;
+
}
+
.mw-userlink[title="Gebruiker:Artec"] {
+
color:#FF4500 !important;
+
}
+
.mw-userlink[title="Gebruiker:Druipneus"] {
+
color:#660066 !important;
+
}
+
.mw-userlink[title="Gebruiker:FeyBart"] {
+
color:#DF7401 !important;
+
}
+
.mw-userlink[title="Gebruiker:Tiz"] {
+
color:#EE0000 !important;
+
}
+
.mw-userlink[title="Gebruiker:Reality"] {
+
        color:#535399 !important;
+
}
+
.mw-userlink[title="Gebruiker:Mrlordolle"] {
+
        color:#0000CD !important;
+
}
+
.mw-userlink[title="Gebruiker:MisterRoy"] {
+
        color:#FF9F00 !important;
+
}
+
.mw-userlink[title="Gebruiker:Burgerhallojan"] {
+
        color:#4169E1 !important;
+
}
+
.mw-userlink[title="Gebruiker:GeorgiusNL"] {
+
        color:#696969 !important;
+
}
+
+
/* allows for expanding hidden sig sections (experimental) -Dawg */
+
  
.sighidden {
+
mw.loader.using( ['mediawiki.util', 'mediawiki.notify', 'jquery.client'] ).done( function () {
display:none !important;
+
/* Begin of mw.loader.using callback */
}
+
.sigexpand:hover .sighidden {  
+
display:inline !important;
+
}
+
  
/* == Plainlinksneverexpand ==
+
/**
 
+
* Main Page layout fixes
Onderstaande is uit [[:en:MediaWiki:Common.css]] gekopieerd.
+
*
 
+
* Description: Adds an additional link to the complete list of languages available.
Dit wordt o.a. gebruikt in [[Sjabloon:ref]].
+
* Maintainers: [[User:AzaToth]], [[User:R. Koot]], [[User:Alex Smotrov]]
 
+
*/
''Add formatting to make sure that "external references" from [[Template:Ref]] do not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was that the HTML code contained a SPAN following the anchor A; this SPAN had the class "urlexpansion", which was not displayed on screen, but was shown when the medium was "print". The rules below ensure (a) that there is no extra padding to the right of the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for the link, and (c) that this SPAN of class "urlexpansion" is never shown.''
+
if ( mw.config.get( 'wgPageName' ) === 'Main_Page' || mw.config.get( 'wgPageName' ) === 'Talk:Main_Page' ) {
 
+
    $( function () {
*/
+
        mw.util.addPortletLink( 'p-lang', '//meta.wikimedia.org/wiki/List_of_Wikipedias',
 
+
            'Complete list', 'interwiki-completelist', 'Complete list of Wikipedias' );
.plainlinksneverexpand {
+
    } );
background:none !important;
+
padding:0 !important;
+
}
+
.logothing {
+
display:block !important;
+
width:160px !important;
+
position:absolute !important;
+
left:-12.2em !important;
+
top:-2.8em !important;
+
background:none !important;
+
}
+
.plainlinksneverexpand .urlexpansion {
+
display:none !important;
+
 
}
 
}
  
/* Make sure that ext links displayed within "plainlinksneverexpand" don't get
+
/**
  the arrow...
+
* Redirect User:Name/skin.js and skin.css to the current skin's pages
*/
+
* (unless the 'skin' page really exists)
 
+
* @source: http://www.mediawiki.org/wiki/Snippets/Redirect_skin.js
.plainlinksneverexpand a {
+
* @rev: 2
background:none !important;
+
*/
padding:0 !important;
+
if ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgNamespaceNumber' ) === 2 ) {
 +
    var titleParts = mw.config.get( 'wgPageName' ).split( '/' );
 +
    /* Make sure there was a part before and after the slash
 +
      and that the latter is 'skin.js' or 'skin.css' */
 +
    if ( titleParts.length == 2 ) {
 +
        var userSkinPage = titleParts.shift() + '/' + mw.config.get( 'skin' );
 +
        if ( titleParts.slice( -1 ) == 'skin.js' ) {
 +
            window.location.href = mw.util.getUrl( userSkinPage + '.js' );
 +
        } else if ( titleParts.slice( -1 ) == 'skin.css' ) {
 +
            window.location.href = mw.util.getUrl( userSkinPage + '.css' );
 +
        }
 +
    }
 
}
 
}
  
/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"
+
/**
  following the anchor A, the anchor itself now has class "external autonumber" and the
+
* Map addPortletLink to mw.util
  expansion is inserted when printing (see the common printing style sheet at
+
* @deprecated: Use mw.util.addPortletLink instead.
  http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo-
+
*/
  element of CSS. We have to switch this off for links due to Template:Ref!
+
mw.log.deprecate( window, 'addPortletLink', mw.util.addPortletLink, 'Use mw.util.addPortletLink instead' );
*/
+
  
.plainlinksneverexpand a.external.autonumber:after {
+
/**
display:none !important;
+
* Extract a URL parameter from the current URL
}
+
* @deprecated: Use mw.util.getParamValue with proper escaping
 +
*/
 +
mw.log.deprecate( window, 'getURLParamValue', mw.util.getParamValue, 'Use mw.util.getParamValue instead' );
  
/* Remove padding from external links displayed without icon */
+
/**
#bodyContent .plainlinks a {
+
* Test if an element has a certain class
padding:0 !important;
+
* @deprecated:  Use $(element).hasClass() instead.
}
+
*/
 +
mw.log.deprecate( window, 'hasClass', function ( element, className ) {
 +
    return $( element ).hasClass( className );
 +
}, 'Use jQuery.hasClass() instead' );
  
/* Aligning enzo */
+
/**
 +
* @source www.mediawiki.org/wiki/Snippets/Load_JS_and_CSS_by_URL
 +
* @rev 6
 +
*/
 +
var extraCSS = mw.util.getParamValue( 'withCSS' ),
 +
    extraJS = mw.util.getParamValue( 'withJS' );
  
.right {
+
if ( extraCSS ) {
float:right !important;
+
    if ( extraCSS.match( /^MediaWiki:[^&<>=%#]*\.css$/ ) ) {
 +
        importStylesheet( extraCSS );
 +
    } else {
 +
        mw.notify( 'Only pages from the MediaWiki namespace are allowed.', { title: 'Invalid withCSS value' } );
 +
    }
 
}
 
}
.center {
 
margin: 0 auto !important;
 
}
 
.left {
 
float:left !important;
 
}
 
 
/*
 
== Tabelfuncties ==
 
=== Prettytable en wikitable===
 
Maakt een tabel met grijze achtergrond en lijnen, met een donkergrijze kop.
 
*/
 
  
.prettytable, .prettytable table, .wikitable, .wikitable table {
+
if ( extraJS ) {
border: 1px solid #aaa !important;
+
    if ( extraJS.match( /^MediaWiki:[^&<>=%#]*\.js$/ ) ) {
border-collapse: collapse !important;
+
        importScript( extraJS );
font-size: 95% !important;
+
    } else {
margin: 1em 0 !important;
+
        mw.notify( 'Only pages from the MediaWiki namespace are allowed.', { title: 'Invalid withJS value' } );
background: #f9f9f9 !important;
+
    }
}
+
.prettytable table, .wikitable table {
+
margin: 0;
+
}
+
.prettytable td, table.prettytable th, .wikitable td, table.wikitable th {
+
border: 1px solid #aaa !important;
+
padding: 4px !important;
+
}
+
.prettytable th, .wikitable th {
+
background-color: #ddd !important;
+
 
}
 
}
  
/*
+
/**
=== Infobox===
+
* Import more specific scripts if necessary
Maakt een tabel met grijze achtergrond en lijnen, met een donkergrijze kop. Deze tabel is rechts uitgelijnd.
+
*/
 
+
if ( mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit' || mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload' ) {
Deze infobox-style is gekopieerd van en-wikipedia, waar deze veel gebruikt wordt.
+
    /* scripts specific to editing pages */
*/
+
    importScript( 'MediaWiki:Common.js/edit.js' );
 
+
} else if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Watchlist' ) {
.infobox {
+
    /* watchlist scripts */
border: 1px solid #aaaaaa !important;
+
    importScript( 'MediaWiki:Common.js/watchlist.js' );
background-color: #f9f9f9 !important;
+
color: black !important;
+
margin-bottom: 0.5em !important;
+
margin-left: 1em !important;
+
padding: 0.2em !important;
+
float: right !important;
+
clear: right !important;
+
 
}
 
}
.infobox td,
+
if ( mw.config.get( 'wgNamespaceNumber' ) === 6 ) {
.infobox th {
+
    /* file description page scripts */
vertical-align: top !important;
+
    importScript( 'MediaWiki:Common.js/file.js' );
}
+
.infobox caption {
+
font-size: larger !important;
+
margin-left: inherit !important;
+
}
+
.infobox.bordered {
+
border-collapse: collapse !important;
+
}
+
.infobox.bordered td,
+
.infobox.bordered th {
+
border: 1px solid #aaaaaa !important;
+
}
+
.infobox.bordered .borderless td,
+
.infobox.bordered .borderless th {
+
border: 0 !important;
+
 
}
 
}
  
.infobox.sisterproject {
+
/**
width: 20em !important;
+
* Helper script for .hlist class in Common.css
font-size: 90% !important;
+
* Add pseudo-selector class to last-child list items in IE8
}
+
* @source mediawiki.org/wiki/Snippets/Horizontal_lists
 +
* @revision 6 (2014-08-23)
 +
* @author [[User:Edokter]]
 +
*/
 +
( function ( mw, $ ) {
 +
    var profile = $.client.profile();
 +
    if ( profile.name === 'msie' && profile.versionNumber === 8 ) {
 +
        mw.hook( 'wikipage.content' ).add( function ( $content ) {
 +
            $content.find( '.hlist' ).find( 'dd:last-child, dt:last-child, li:last-child' )
 +
                .addClass( 'hlist-last-child' );
 +
        } );
 +
    }
 +
}( mediaWiki, jQuery ) );
  
/* styles for bordered infobox with merged rows */
+
/**
.infobox.bordered .mergedtoprow td,
+
* Fix for Windows XP Unicode font rendering
.infobox.bordered .mergedtoprow th {
+
*/
border: 0 !important;
+
if ( navigator.appVersion.search(/windows nt 5/i) !== -1 ) {
border-top: 1px solid #aaaaaa !important;
+
    mw.util.addCSS( '.IPA { font-family: "Lucida Sans Unicode", "Arial Unicode MS"; } ' +
border-right: 1px solid #aaaaaa !important;
+
                '.Unicode { font-family: "Arial Unicode MS", "Lucida Sans Unicode"; } ' );
}
+
.infobox.bordered .mergedrow td,
+
.infobox.bordered .mergedrow th {
+
border: 0 !important;
+
border-right: 1px solid #aaaaaa !important;
+
 
}
 
}
  
/*
+
/**
== Hoofdpagina ==  
+
* WikiMiniAtlas
Onderstaande wijzigingen zijn noodzakelijk voor de layout van de nieuwe hoofdpagina
+
*
*/
+
* Description: WikiMiniAtlas is a popup click and drag world map.
/* Tonen van de borders voor Internet Explorer */
+
*              This script causes all of our coordinate links to display the WikiMiniAtlas popup button.
 +
*              The script itself is located on meta because it is used by many projects.
 +
*              See [[Meta:WikiMiniAtlas]] for more information.
 +
* Maintainers: [[User:Dschwen]]
 +
*/
 +
( function () {
 +
    var require_wikiminiatlas = false;
 +
    var coord_filter = /geohack/;
 +
    $( function () {
 +
        $( 'a.external.text' ).each( function( key, link ) {
 +
            if ( link.href && coord_filter.exec( link.href ) ) {
 +
                require_wikiminiatlas = true;
 +
                // break from loop
 +
                return false;
 +
            }
 +
        } );
 +
        if ( $( 'div.kmldata' ).length ) {
 +
            require_wikiminiatlas = true;
 +
        }
 +
        if ( require_wikiminiatlas ) {
 +
            mw.loader.load( '//meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' );
 +
        }
 +
    } );
 +
} )();
  
.BGorange1 {
+
/**
background-image: url("http://upload.wikimedia.org/wikipedia/commons/0/02/BGorange1.jpg") !important;
+
* Collapsible tables
background-repeat: repeat-x !important;
+
*
}
+
* Allows tables to be collapsed, showing only the header. See [[Wikipedia:NavFrame]].
 +
*
 +
* @version 2.0.3 (2014-03-14)
 +
* @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-collapsibleTables.js
 +
* @author [[User:R. Koot]]
 +
* @author [[User:Krinkle]]
 +
* @deprecated Since MediaWiki 1.20: Use class="mw-collapsible" instead which
 +
* is supported in MediaWiki core.
 +
*/
  
.BGorange2 {
+
var autoCollapse = 2;
background-image: url("http://upload.wikimedia.org/wikipedia/commons/a/a7/BGorange2.jpg") !important;
+
var collapseCaption = 'hide';
background-repeat: repeat-x !important;
+
var expandCaption = 'show';
}
+
var tableIndex = 0;
  
.BGfeest {
+
function collapseTable( tableIndex ) {
background-image: url("http://imagem.uncyc.org/nl/5/51/Vuurtje.jpg") !important;
+
    var Button = document.getElementById( 'collapseButton' + tableIndex );
background-repeat: repeat-x !important;
+
    var Table = document.getElementById( 'collapsibleTable' + tableIndex );
}
+
  
.BGfeest2 {
+
    if ( !Table || !Button ) {
background-image: url("http://imagem.uncyc.org/nl/a/a4/666.jpg") !important;
+
        return false;
background-repeat: repeat-x !important;
+
    }
}
+
  
.PPcornerTop {
+
    var Rows = Table.rows;
background-image: url("http://upload.wikimedia.org/wikipedia/commons/7/75/PPcornerTop2nl.gif") !important;  
+
    var i;
background-position:top left !important;  
+
background-repeat:no-repeat !important;
+
width:10px !important;
+
height:10px !important;
+
}
+
  
.PPcornerBottom {  
+
    if ( Button.firstChild.data === collapseCaption ) {
background-image: url("http://upload.wikimedia.org/wikipedia/commons/b/bb/PPcornerBottomnl2.gif") !important;  
+
        for ( i = 1; i < Rows.length; i++ ) {
background-position:bottom left !important;  
+
            Rows[i].style.display = 'none';
background-repeat:no-repeat !important;  
+
        }
width:10px !important;  
+
        Button.firstChild.data = expandCaption;
height:10px !important;
+
    } else {
 +
        for ( i = 1; i < Rows.length; i++ ) {
 +
            Rows[i].style.display = Rows[0].style.display;
 +
        }
 +
        Button.firstChild.data = collapseCaption;
 +
    }
 
}
 
}
  
#mw-content-text td, th {
+
function createClickHandler( tableIndex ) {
display: table-cell;
+
    return function ( e ) {
vertical-align: inherit;
+
        e.preventDefault();
 +
        collapseTable( tableIndex );
 +
    };
 
}
 
}
  
body.page-Hoofdpagina h1.firstHeading {  
+
function createCollapseButtons( $content ) {
display: none !important;  
+
    var NavigationBoxes = {};
}
+
    var $Tables = $content.find( 'table' );
 +
    var i;
  
/*
+
    $Tables.each( function( i, table ) {
== Iets met groen ofzo ==
+
        if ( $(table).hasClass( 'collapsible' ) ) {
ik doe iets met groen
+
*/
+
  
.BGgreen {
+
            /* only add button and increment count if there is a header row to work with */
background-image: url("http://image.uncyc.org/nl/8/86/BGgreen1.jpg") !important;
+
            var HeaderRow = table.getElementsByTagName( 'tr' )[0];
background-repeat: repeat-x !important;
+
            if ( !HeaderRow ) {
}
+
                return;
 +
            }
 +
            var Header = table.getElementsByTagName( 'th' )[0];
 +
            if ( !Header ) {
 +
                return;
 +
            }
  
.PPcornerTop1 {
+
            NavigationBoxes[ tableIndex ] = table;
background-image: url("http://image.uncyc.org/nl/2/22/PPcornerTop4nl.gif") !important;  
+
            table.setAttribute( 'id', 'collapsibleTable' + tableIndex );
background-position:top left !important;
+
background-repeat:no-repeat !important;
+
width:10px !important;
+
height:10px !important;
+
}
+
  
.PPcornerBottom1 {
+
            var Button    = document.createElement( 'span' );
background-image: url("http://image.uncyc.org/nl/8/80/PPcornerBottomnl4.gif") !important;
+
            var ButtonLink = document.createElement( 'a' );
background-position:bottom left !important;  
+
            var ButtonText = document.createTextNode( collapseCaption );
background-repeat:no-repeat !important;  
+
            // Styles are declared in [[MediaWiki:Common.css]]
width:10px !important;
+
            Button.className = 'collapseButton';
height:10px !important;
+
}
+
  
.PPcornerTop2 {
+
            ButtonLink.style.color = Header.style.color;
background-image: url("http://image.uncyc.org/nl/f/ff/PPcornerTop3nl.gif") !important;  
+
            ButtonLink.setAttribute( 'id', 'collapseButton' + tableIndex );
background-position:top right !important;  
+
            ButtonLink.setAttribute( 'href', '#' );
background-repeat:no-repeat !important;  
+
            $( ButtonLink ).on( 'click', createClickHandler( tableIndex ) );
width:10px !important;  
+
            ButtonLink.appendChild( ButtonText );
height:10px !important;
+
}
+
  
.PPcornerBottom2 {
+
            Button.appendChild( document.createTextNode( '[' ) );
background-image: url("http://upload.wikimedia.org/wikipedia/commons/b/bb/PPcornerBottomnl2.gif") !important;  
+
            Button.appendChild( ButtonLink );
background-position:bottom right !important;  
+
            Button.appendChild( document.createTextNode( ']' ) );
background-repeat:no-repeat !important;  
+
width:10px !important;
+
height:10px !important;
+
}
+
  
/* Naamruimtelogo's */
+
            Header.insertBefore( Button, Header.firstChild );
/* OnNieuws:, Overleg_OnNieuws: etc. */
+
            tableIndex++;
 +
        }
 +
    } );
  
body.ns-18 #p-logo a, body.ns-18 #wiki_logo {  
+
    for ( i = 0;  i < tableIndex; i++ ) {
background-image: url("http://images.uncyc.org/nl/5/54/Onnieuws.png") !important;
+
        if ( $( NavigationBoxes[i] ).hasClass( 'collapsed' ) ||
}
+
            ( tableIndex >= autoCollapse && $( NavigationBoxes[i] ).hasClass( 'autocollapse' ) )
body.ns-19 #p-logo a, body.ns-19 #wiki_logo {
+
        ) {
background-image: url("http://images.uncyc.org/nl/5/54/Onnieuws.png") !important;
+
            collapseTable( i );
}
+
        }
body.ns-20 #p-logo a, body.ns-20 #wiki_logo {
+
        else if ( $( NavigationBoxes[i] ).hasClass ( 'innercollapse' ) ) {
background-image: url("http://images.uncyc.org/nl/6/6d/Owblogo.png") !important;
+
            var element = NavigationBoxes[i];
}
+
            while ((element = element.parentNode)) {
body.ns-21 #p-logo a, body.ns-21 #wiki_logo {
+
                if ( $( element ).hasClass( 'outercollapse' ) ) {
background-image: url("http://images.uncyc.org/nl/6/6d/Owblogo.png") !important;
+
                    collapseTable ( i );
}
+
                    break;
body.ns-22 #p-logo a, body.ns-22 #wiki_logo {  
+
                }
background-image: url("http://images.uncyc.org/nl/8/81/Leesvoerlogo.png") !important;  
+
            }
}
+
        }
body.ns-23 #p-logo a, body.ns-23 #wiki_logo {
+
    }
background-image: url("http://images.uncyc.org/nl/8/81/Leesvoerlogo.png") !important;
+
}
+
body.ns-24 #p-logo a, body.ns-24 #wiki_logo {
+
background-image: url("http://images.uncyc.org/nl/8/87/Hoe.png") !important;
+
}
+
body.ns-25 #p-logo a, body.ns-25 #wiki_logo {  
+
background-image: url("http://images.uncyc.org/nl/8/87/Hoe.png") !important;  
+
}
+
body.ns-26 #p-logo a, body.ns-26 #wiki_logo {
+
background-image: url("http://images.uncyc.org/nl/4/4f/Onzinnen.png") !important;
+
}
+
body.ns-27 #p-logo a, body.ns-27 #wiki_logo {  
+
background-image: url("http://images.uncyc.org/nl/4/4f/Onzinnen.png") !important;
+
}
+
body.ns-28 #p-logo a, body.ns-28 #wiki_logo {
+
background-image: url("http://images.uncyc.org/nl/8/81/Leesvoerlogo.png") !important;
+
}
+
body.ns-29 #p-logo a, body.ns-29 #wiki_logo {  
+
background-image: url("http://images.uncyc.org/nl/8/81/Leesvoerlogo.png") !important;  
+
}
+
body.ns-30 #p-logo a, body.ns-30 #wiki_logo {
+
background-image: url("http://images.uncyc.org/nl/a/a0/Oteitklein.png") !important;
+
}
+
body.ns-31 #p-logo a, body.ns-31 #wiki_logo {
+
background-image: url("http://images.uncyc.org/nl/a/a0/Oteitklein.png") !important;
+
 
}
 
}
  
/* To make redirects show up in italics on [[Special:Allpages]]. */
+
mw.hook( 'wikipage.content' ).add( createCollapseButtons );
  
.allpagesredirect a, .watchlistredir a {
+
/**
font-style:italic !important;
+
* Dynamic Navigation Bars (experimental)
}
+
*
 +
* Description: See [[Wikipedia:NavFrame]].
 +
* Maintainers: UNMAINTAINED
 +
*/
  
/*
+
/* set up the words in your language */
==YOUTUBE==
+
var NavigationBarHide = '[' + collapseCaption + ']';
*/
+
var NavigationBarShow = '[' + expandCaption + ']';
 +
var indexNavigationBar = 0;
  
#youtube {
+
/**
margin: 0px 0px 40px 0px !important;
+
* Shows and hides content and picture (if available) of navigation bars
float:left !important;
+
* Parameters:
width:300px !important;
+
*    indexNavigationBar: the index of navigation bar to be toggled
height:200px !important;
+
**/
position:relative !important;
+
window.toggleNavigationBar = function ( indexNavigationBar, event ) {
border:0px solid #333333 !important;
+
    var NavToggle = document.getElementById( 'NavToggle' + indexNavigationBar );
}
+
    var NavFrame = document.getElementById( 'NavFrame' + indexNavigationBar );
 +
    var NavChild;
  
/* NavFrame, aka box hiding thingy from Wikipedia */
+
    if ( !NavFrame || !NavToggle ) {
 +
        return false;
 +
    }
  
div.Boxmerge,
+
    /* if shown now */
div.NavFrame {
+
    if ( NavToggle.firstChild.data === NavigationBarHide ) {
margin: 0px !important;
+
         for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
        padding: 2px !important;
+
            if ( $( NavChild ).hasClass( 'NavContent' ) || $( NavChild ).hasClass( 'NavPic' ) ) {
        border: 1px solid #aaaaaa;
+
                NavChild.style.display = 'none';
        border-collapse: collapse !important;
+
            }
        font-size: 100% !important;
+
         }
}
+
    NavToggle.firstChild.data = NavigationBarShow;
div.Boxmerge div.NavFrame {
+
         border-style: none !important;
+
        border-style: hidden !important;
+
}
+
div.NavFrame + div.NavFrame {
+
        border-top-style: none !important;
+
        border-top-style: hidden !important;
+
}
+
div.NavPic {
+
        background-color: #ffffff !important;
+
        margin: 0px !important;
+
        padding: 2px !important;
+
        float: left !important;
+
}
+
div.NavFrame div.NavHead {
+
        height: 1.6em;
+
        font-weight: bold !important;
+
        font-size: 100% !important;
+
        background-color: #efefef;
+
        position:relative !important;
+
}
+
div.NavFrame p {
+
        font-size: 100% !important;
+
}
+
div.NavFrame div.NavContent {
+
         font-size: 100% !important;
+
}
+
div.NavFrame div.NavContent p {
+
        font-size: 100% !important;
+
}
+
div.NavEnd {
+
        margin: 0px !important;
+
        padding: 0px !important;
+
        line-height: 1px !important;
+
        clear: both !important;
+
}
+
a.NavToggle {
+
        position:absolute !important;
+
        top:0px !important;
+
        right:3px !important;
+
        font-weight:normal !important;
+
        font-size:smaller !important;
+
}
+
  
/* End NavFrame */
+
    /* if hidden now */
 +
    } else if ( NavToggle.firstChild.data === NavigationBarShow ) {
 +
        for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
 +
            if ( $( NavChild ).hasClass( 'NavContent' ) || $( NavChild ).hasClass( 'NavPic' ) ) {
 +
                NavChild.style.display = 'block';
 +
            }
 +
        }
 +
        NavToggle.firstChild.data = NavigationBarHide;
 +
    }
  
/* Een class om een link niet te laten onderlijnen. */
+
    event.preventDefault();
.nounderlinelink a {
+
};
text-decoration:none !important;  
+
}
+
  
/* De klikknopjes. Ridge, alleen dat. */
+
/* adds show/hide-button to navigation bars */
/* NB: het werkt alleen in span, en niet in IE. */
+
function createNavigationBarToggleButton( $content ) {
/*  
+
    var NavChild;
voorbeeldje: <nowiki><span class="nounderlinelink">[[Hoofdpagina|<span class="buttonlink" style="border-width: 2px; border-color: #999999;background-color:#bbbbbb;padding:1px 5px 1px 5px;color:black;font-size:110%">Hoofdpagina</span>]]</span></nowiki>
+
    /* iterate over all < div >-elements */
*/
+
    var $divs = $content.find( 'div' );
.buttonlink {
+
    $divs.each( function ( i, NavFrame ) {
border-style: outset !important;  
+
        /* if found a navigation bar */
}
+
        if ( $( NavFrame ).hasClass( 'NavFrame' ) ) {
.buttonlink:active {  
+
border-style: inset !important;
+
}
+
  
/* Voor de OnNieuws Hoofdpagina. May it work, damnit. */
+
            indexNavigationBar++;
.mp_header {
+
            var NavToggle = document.createElement( 'a' );
background-image:url("http://images.uncyc.org/nl/f/fa/Onnieuwstransp.png") !important;
+
            NavToggle.className = 'NavToggle';
background-repeat: no-repeat !important;
+
            NavToggle.setAttribute( 'id', 'NavToggle' + indexNavigationBar );
background-position: center right !important;
+
            NavToggle.setAttribute( 'href', '#' );
width: 99% !important;
+
            $( NavToggle ).on( 'click', $.proxy( window.toggleNavigationBar, window, indexNavigationBar ) );
clear: both !important;
+
background-color: #FFFF9E !important;
+
border: 1px solid #808080 !important;  
+
padding: 1px 10px 1px 10px !important;
+
}
+
  
.mp_header_left {
+
            var isCollapsed = $( NavFrame ).hasClass( 'collapsed' );
width: 50% !important;
+
            /**
text-align: left !important;
+
            * Check if any children are already hidden.  This loop is here for backwards compatibility:
white-space: nowrap !important;
+
            * the old way of making NavFrames start out collapsed was to manually add style="display:none"
vertical-align: middle !important;  
+
            * to all the NavPic/NavContent elements.  Since this was bad for accessibility (no way to make
}
+
            * the content visible without JavaScript support), the new recommended way is to add the class
 +
            * "collapsed" to the NavFrame itself, just like with collapsible tables.
 +
            */
 +
            for ( NavChild = NavFrame.firstChild; NavChild != null && !isCollapsed; NavChild = NavChild.nextSibling ) {
 +
                if ( $( NavChild ).hasClass( 'NavPic' ) || $( NavChild ).hasClass( 'NavContent' ) ) {
 +
                    if ( NavChild.style.display === 'none' ) {
 +
                        isCollapsed = true;
 +
                    }
 +
                }
 +
            }
 +
            if ( isCollapsed ) {
 +
                for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
 +
                    if ( $( NavChild ).hasClass( 'NavPic' ) || $( NavChild ).hasClass( 'NavContent' ) ) {
 +
                        NavChild.style.display = 'none';
 +
                    }
 +
                }
 +
            }
 +
            var NavToggleText = document.createTextNode( isCollapsed ? NavigationBarShow : NavigationBarHide );
 +
            NavToggle.appendChild( NavToggleText );
  
.welcome_to_wn {
+
            /* Find the NavHead and attach the toggle link (Must be this complicated because Moz's firstChild handling is borked) */
font-size: 200%;
+
            for( var j = 0; j < NavFrame.childNodes.length; j++ ) {
font-face: Kozuka Gothic Pro H, Arial Bold, Arial !important;
+
                if ( $( NavFrame.childNodes[j] ).hasClass( 'NavHead' ) ) {
font-weight: bold !important;
+
                    NavToggle.style.color = NavFrame.childNodes[j].style.color;
padding-top: 3px !important;
+
                    NavFrame.childNodes[j].appendChild( NavToggle );
padding-bottom: 8px !important;
+
                }
letter-spacing: 1px !important;
+
            }
 +
            NavFrame.setAttribute( 'id', 'NavFrame' + indexNavigationBar );
 +
        }
 +
    } );
 
}
 
}
  
.freenews {
+
mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton );
font-size: 130% !important;
+
font-face: Calibri, Arial !important;
+
}
+
  
.mp_header_center {
+
/**
width: 2px !important;
+
* Uploadwizard_newusers
margin-left:auto !important;
+
* Switches in a message for non-autoconfirmed users at [[Wikipedia:Upload]]
         margin-right:auto !important;
+
*
white-space: nowrap !important;
+
* Maintainers: [[User:Krimpet]]
 +
*/
 +
function uploadwizard_newusers() {
 +
    if ( mw.config.get( 'wgNamespaceNumber' ) === 4 && mw.config.get( 'wgTitle' ) === 'Upload' && mw.config.get( 'wgAction' ) === 'view' ) {
 +
        var oldDiv = document.getElementById( 'autoconfirmedusers' ),
 +
            newDiv = document.getElementById( 'newusers' );
 +
         if ( oldDiv && newDiv ) {
 +
            var userGroups = mw.config.get( 'wgUserGroups' );
 +
            if ( userGroups ) {
 +
                for ( var i = 0; i < userGroups.length; i++ ) {
 +
                    if ( userGroups[i] === 'autoconfirmed' ) {
 +
                        oldDiv.style.display = 'block';
 +
                        newDiv.style.display = 'none';
 +
                        return;
 +
                    }
 +
                }
 +
            }
 +
            oldDiv.style.display = 'none';
 +
            newDiv.style.display = 'block';
 +
            return;
 +
        }
 +
    }
 
}
 
}
  
.mp_header_right {
+
$(uploadwizard_newusers);
width: 50% !important;
+
text-align: right !important;
+
white-space: nowrap !important;
+
vertical-align: top !important;
+
}
+
 
+
.header_lefty_text {
+
font-size: 9pt !important;
+
font-face: Calibri, Arial !important;
+
margin-bottom: -4px !important;
+
}
+
.r7bg1, .r7bg2 {
+
background:none;
+
}
+
.r7bg3 {
+
background-image:url("http://images.uncyc.org/nl/a/a7/R7av.png") !important;
+
background-repeat:repeat !important;
+
width:100% !important;
+
height:100% !important;
+
z-index:-3 !important;
+
}
+
.container > div {
+
display: inline-block !important;
+
display: -moz-inline-box !important;
+
*display: inline !important; /* For IE7 */
+
zoom: 1 !important; /* Trigger hasLayout */
+
width: 33% !important;
+
text-align: center !important;
+
}
+
 
+
.searchresults p {
+
font-size:15px !important;
+
}
+
 
+
div#mw-panel div#p-Delen.portal div.body ul li#n-Facebook a {
+
background-image: url("http://images.uncyc.org/no/b/ba/Facebooklogo.gif") !important;
+
background-repeat: no-repeat !important;
+
background-position: center left !important;
+
padding-left: 20px !important;
+
}
+
+
div#mw-panel div#p-Delen.portal div.body ul li#n-Twitter a {
+
background-image: url("http://images.uncyc.org/nl/a/a4/Twietertleaugeaut.png") !important;
+
background-repeat: no-repeat !important;
+
background-position: center left !important;
+
padding-left: 20px !important;
+
}
+
 
+
+
#p-Delen ul li#n-Twitter,
+
#p-Delen ul li#n-Facebook {
+
padding-left: 0px !important;
+
margin-left: 0px !important;
+
}
+
 
+
#p-Delen ul {
+
padding-left: 0px !important;
+
margin-left: 0px !important;
+
list-style-type: none !important;
+
}
+
div#mw-panel div#p-Delen.portal div.body ul li {
+
padding: 0px 0px 0.5em !important;
+
        margin: 0px 0px 0px -5px !important;
+
}
+
 
+
div#mw-panel {
+
        padding-top: 0em !important;
+
}
+
/* opmaak voor een paar pagina's */
+
.ruitjesschrift {
+
        background-image:url("http://images.uncyc.org/nl/5/5c/Ruitj.png") !important;
+
        background-position:left top !important;
+
        background-repeat:repeat !important;
+
        background-color:#DDD !important;
+
}
+
.regen {
+
        background-image:url("http://images.uncyc.org/nl/5/5f/Regenani.gif") !important;
+
        background-position:left top !important;
+
        background-repeat:repeat !important;
+
        background-color:transparent !important;
+
}
+
.rastz {
+
        background-image:url("http://images.uncyc.org/nl/0/09/Rastertje.png") !important;
+
        background-position:left top !important;
+
        background-repeat:repeat !important;
+
        background-color:#252525 !important;
+
}
+
.gramfout {
+
        background-image:url("http://images.uncyc.org/nl/6/6d/Streepies.png") !important;
+
        background-position:bottom !important;
+
        background-repeat:repeat-x !important;
+
        background-color:#FFFFFF !important;
+
}
+
/*
+
 
+
dit alles is voor de infoboxen
+
  
*/
 
 
/**
 
/**
* achtergrondkleur target reference lichtblauw
+
* Magic editintros ****************************************************
* zodat de gewenste referentie makkelijk te vinden is
+
  *
* overgenomen uit en.wikipedia, werkt niet in Internet Explorer en oudere versies van andere browsers welke nog niet CSS3
+
  * Description: Adds editintros on disambiguation pages and BLP pages.
* ondersteunen
+
  * Maintainers: [[User:RockMFR]]
*/
+
ol.references > li:target {
+
background-color: #DEF;
+
}
+
/**
+
  * class "prettytable" is een oude nog van voordat "wikitable" in de software
+
  * kwam. Hier behouden voor compatibiliteit.
+
  * Synchroniseer met "wikitable" stijl in mediawiki-core/skins/common/shared.css
+
 
  */
 
  */
table.prettytable {
+
function addEditIntro( name ) {
margin: 1em 1em 1em 0;
+
    $( '.mw-editsection, #ca-edit' ).find( 'a' ).each( function ( i, el ) {
background-color: #f9f9f9;
+
        el.href = $( this ).attr( 'href' ) + '&editintro=' + name;
border: 1px #aaa solid;
+
    } );
border-collapse: collapse;
+
color: black;
+
 
}
 
}
table.prettytable > tr > th,
 
table.prettytable > tr > td,
 
table.prettytable > * > tr > th,
 
table.prettytable > * > tr > td {
 
border: 1px #aaa solid;
 
padding: 0.2em;
 
}
 
table.prettytable > tr > th,
 
table.prettytable > * > tr > th {
 
background-color: #f2f2f2;
 
text-align: center;
 
}
 
table.prettytable > caption {
 
font-weight: bold;
 
}
 
 
/**
 
* Aangepaste stijl voor kopjes voor wikitable/prettytable
 
*/
 
table.wikitable > tr > th,
 
table.wikitable > * > tr > th,
 
table.prettytable > tr > th,
 
table.prettytable > * > tr > th {
 
background-color: #ddd;
 
}
 
 
/**
 
* Infobox
 
* Maakt een tabel met grijze achtergrond en lijnen, met een donkergrijze kop. Deze tabel is rechts uitgelijnd.
 
* (Deze infobox-style is gekopieerd van en-wikipedia, waar deze veel gebruikt wordt.
 
*/
 
.infobox {
 
border: 1px solid #aaaaaa;
 
background-color: #f9f9f9;
 
color: black;
 
margin-bottom: 0.5em;
 
margin-left: 1em;
 
padding: 0.2em;
 
float: right;
 
clear: right;
 
}
 
.infobox td,
 
.infobox th {
 
vertical-align: top;
 
}
 
.infobox caption {
 
font-size: larger;
 
margin-left: inherit;
 
}
 
.infobox.bordered {
 
border-collapse: collapse;
 
}
 
.infobox.bordered td,
 
.infobox.bordered th {
 
border: 1px solid #aaaaaa;
 
}
 
.infobox.bordered .borderless td,
 
.infobox.bordered .borderless th {
 
border: 0;
 
}
 
.infobox.sisterproject {
 
width: 20em;
 
font-size: 90%;
 
}
 
 
/* styles for bordered infobox with merged rows */
 
.infobox.bordered .mergedtoprow td,
 
.infobox.bordered .mergedtoprow th {
 
border: 0;
 
border-top: 1px solid #aaaaaa;
 
border-right: 1px solid #aaaaaa;
 
}
 
.infobox.bordered .mergedrow td,
 
.infobox.bordered .mergedrow th {
 
border: 0;
 
border-right: 1px solid #aaaaaa;
 
}
 
 
/**
 
* Kopcellen links uitlijnen.
 
*/
 
.thleft th,
 
th.thleft {
 
text-align: left;
 
}
 
/* Weg met de facebook link in de KeyCAPTCHA */
 
  
div.captcha div#s_s_c_div_adv, div.captcha div#s_s_c_div_adv, div.captcha div.pluginSkinLight.pluginFontVerdana, div.captchaa table.uiGrid.pluginConnectButtonLayoutRoot {
+
if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) {
        width:0px !important;
+
    $( function () {
         height:0px !important;
+
         if ( document.getElementById( 'disambigbox' ) ) {
        visibility:hidden !important;  
+
            addEditIntro( 'Template:Disambig_editintro' );
         display:none !important;
+
         }
}
+
    } );
  
div#div_for_keycaptcha div#s_s_c_div_adv, div#div_for_keycaptcha div#s_s_c_div_adv div.captcha div.pluginSkinLight.pluginFontVerdana {
+
    $( function () {
         width:0px !important;
+
         var cats = mw.config.get('wgCategories');
         height:0px !important;
+
         if ( !cats ) {
         visibility:hidden !important;  
+
            return;
         display:none !important;
+
         }
 +
        if ( $.inArray( 'Living people', cats ) !== -1 || $.inArray( 'Possibly living people', cats ) !== -1 ) {
 +
            addEditIntro( 'Template:BLP_editintro' );
 +
         }
 +
    } );
 
}
 
}
  
form#editform #facebook {
+
/* End of mw.loader.using callback */
        display:none !important;
+
} );
}
+
/* DO NOT ADD CODE BELOW THIS LINE */
 
+
div#HPlinksmoba, div#HPlinksmobb, div#HPlinksmobc {
+
        display:none !important;
+
}
+
 
+
 
+
.choose .option {
+
        display:none; !important;
+
}
+

Huidige versie van 4 jun 2015 om 21:50

/**
 * Keep code in MediaWiki:Common.js to a minimum as it is unconditionally
 * loaded for all users on every wiki page. If possible create a gadget that is
 * enabled by default instead of adding it here (since gadgets are fully
 * optimized ResourceLoader modules with possibility to add dependencies etc.)
 *
 * Since Common.js isn't a gadget, there is no place to declare its
 * dependencies, so we have to lazy load them with mw.loader.using on demand and
 * then execute the rest in the callback. In most cases these dependencies will
 * be loaded (or loading) already and the callback will not be delayed. In case a
 * dependency hasn't arrived yet it'll make sure those are loaded before this.
 */

/* global mw, $, importStylesheet, importScript */
/* jshint strict:false, browser:true */

mw.loader.using( ['mediawiki.util', 'mediawiki.notify', 'jquery.client'] ).done( function () {
/* Begin of mw.loader.using callback */

/**
 * Main Page layout fixes
 *
 * Description: Adds an additional link to the complete list of languages available.
 * Maintainers: [[User:AzaToth]], [[User:R. Koot]], [[User:Alex Smotrov]]
 */
if ( mw.config.get( 'wgPageName' ) === 'Main_Page' || mw.config.get( 'wgPageName' ) === 'Talk:Main_Page' ) {
    $( function () {
        mw.util.addPortletLink( 'p-lang', '//meta.wikimedia.org/wiki/List_of_Wikipedias',
            'Complete list', 'interwiki-completelist', 'Complete list of Wikipedias' );
    } );
}

/**
 * Redirect User:Name/skin.js and skin.css to the current skin's pages
 * (unless the 'skin' page really exists)
 * @source: http://www.mediawiki.org/wiki/Snippets/Redirect_skin.js
 * @rev: 2
 */
if ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgNamespaceNumber' ) === 2 ) {
    var titleParts = mw.config.get( 'wgPageName' ).split( '/' );
    /* Make sure there was a part before and after the slash
       and that the latter is 'skin.js' or 'skin.css' */
    if ( titleParts.length == 2 ) {
        var userSkinPage = titleParts.shift() + '/' + mw.config.get( 'skin' );
        if ( titleParts.slice( -1 ) == 'skin.js' ) {
            window.location.href = mw.util.getUrl( userSkinPage + '.js' );
        } else if ( titleParts.slice( -1 ) == 'skin.css' ) {
            window.location.href = mw.util.getUrl( userSkinPage + '.css' );
        }
    }
}

/**
 * Map addPortletLink to mw.util
 * @deprecated: Use mw.util.addPortletLink instead.
 */
mw.log.deprecate( window, 'addPortletLink', mw.util.addPortletLink, 'Use mw.util.addPortletLink instead' );

/**
 * Extract a URL parameter from the current URL
 * @deprecated: Use mw.util.getParamValue with proper escaping
 */
mw.log.deprecate( window, 'getURLParamValue', mw.util.getParamValue, 'Use mw.util.getParamValue instead' );

/**
 * Test if an element has a certain class
 * @deprecated:  Use $(element).hasClass() instead.
 */
mw.log.deprecate( window, 'hasClass', function ( element, className ) {
    return $( element ).hasClass( className );
}, 'Use jQuery.hasClass() instead' );

/**
 * @source www.mediawiki.org/wiki/Snippets/Load_JS_and_CSS_by_URL
 * @rev 6
 */
var extraCSS = mw.util.getParamValue( 'withCSS' ),
    extraJS = mw.util.getParamValue( 'withJS' );

if ( extraCSS ) {
    if ( extraCSS.match( /^MediaWiki:[^&<>=%#]*\.css$/ ) ) {
        importStylesheet( extraCSS );
    } else {
        mw.notify( 'Only pages from the MediaWiki namespace are allowed.', { title: 'Invalid withCSS value' } );
    }
}

if ( extraJS ) {
    if ( extraJS.match( /^MediaWiki:[^&<>=%#]*\.js$/ ) ) {
        importScript( extraJS );
    } else {
        mw.notify( 'Only pages from the MediaWiki namespace are allowed.', { title: 'Invalid withJS value' } );
    }
}

/**
 * Import more specific scripts if necessary
 */
if ( mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit' || mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload' ) {
    /* scripts specific to editing pages */
    importScript( 'MediaWiki:Common.js/edit.js' );
} else if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Watchlist' ) {
    /* watchlist scripts */
    importScript( 'MediaWiki:Common.js/watchlist.js' );
}
if ( mw.config.get( 'wgNamespaceNumber' ) === 6 ) {
    /* file description page scripts */
    importScript( 'MediaWiki:Common.js/file.js' );
}

/**
 * Helper script for .hlist class in Common.css
 * Add pseudo-selector class to last-child list items in IE8
 * @source mediawiki.org/wiki/Snippets/Horizontal_lists
 * @revision 6 (2014-08-23)
 * @author [[User:Edokter]]
 */
( function ( mw, $ ) {
    var profile = $.client.profile();
    if ( profile.name === 'msie' && profile.versionNumber === 8 ) {
        mw.hook( 'wikipage.content' ).add( function ( $content ) {
            $content.find( '.hlist' ).find( 'dd:last-child, dt:last-child, li:last-child' )
                .addClass( 'hlist-last-child' );
        } );
    }
}( mediaWiki, jQuery ) );

/**
 * Fix for Windows XP Unicode font rendering
 */
if ( navigator.appVersion.search(/windows nt 5/i) !== -1 ) {
    mw.util.addCSS( '.IPA { font-family: "Lucida Sans Unicode", "Arial Unicode MS"; } ' +
                '.Unicode { font-family: "Arial Unicode MS", "Lucida Sans Unicode"; } ' );
}

/**
 * WikiMiniAtlas
 *
 * Description: WikiMiniAtlas is a popup click and drag world map.
 *              This script causes all of our coordinate links to display the WikiMiniAtlas popup button.
 *              The script itself is located on meta because it is used by many projects.
 *              See [[Meta:WikiMiniAtlas]] for more information.
 * Maintainers: [[User:Dschwen]]
 */
( function () {
    var require_wikiminiatlas = false;
    var coord_filter = /geohack/;
    $( function () {
        $( 'a.external.text' ).each( function( key, link ) {
            if ( link.href && coord_filter.exec( link.href ) ) {
                require_wikiminiatlas = true;
                // break from loop
                return false;
            }
        } );
        if ( $( 'div.kmldata' ).length ) {
            require_wikiminiatlas = true;
        }
        if ( require_wikiminiatlas ) {
            mw.loader.load( '//meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' );
        }
    } );
} )();

/**
 * Collapsible tables
 *
 * Allows tables to be collapsed, showing only the header. See [[Wikipedia:NavFrame]].
 *
 * @version 2.0.3 (2014-03-14)
 * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-collapsibleTables.js
 * @author [[User:R. Koot]]
 * @author [[User:Krinkle]]
 * @deprecated Since MediaWiki 1.20: Use class="mw-collapsible" instead which
 * is supported in MediaWiki core.
 */

var autoCollapse = 2;
var collapseCaption = 'hide';
var expandCaption = 'show';
var tableIndex = 0;

function collapseTable( tableIndex ) {
    var Button = document.getElementById( 'collapseButton' + tableIndex );
    var Table = document.getElementById( 'collapsibleTable' + tableIndex );

    if ( !Table || !Button ) {
        return false;
    }

    var Rows = Table.rows;
    var i;

    if ( Button.firstChild.data === collapseCaption ) {
        for ( i = 1; i < Rows.length; i++ ) {
            Rows[i].style.display = 'none';
        }
        Button.firstChild.data = expandCaption;
    } else {
        for ( i = 1; i < Rows.length; i++ ) {
            Rows[i].style.display = Rows[0].style.display;
        }
        Button.firstChild.data = collapseCaption;
    }
}

function createClickHandler( tableIndex ) {
    return function ( e ) {
        e.preventDefault();
        collapseTable( tableIndex );
    };
}

function createCollapseButtons( $content ) {
    var NavigationBoxes = {};
    var $Tables = $content.find( 'table' );
    var i;

    $Tables.each( function( i, table ) {
        if ( $(table).hasClass( 'collapsible' ) ) {

            /* only add button and increment count if there is a header row to work with */
            var HeaderRow = table.getElementsByTagName( 'tr' )[0];
            if ( !HeaderRow ) {
                return;
            }
            var Header = table.getElementsByTagName( 'th' )[0];
            if ( !Header ) {
                return;
            }

            NavigationBoxes[ tableIndex ] = table;
            table.setAttribute( 'id', 'collapsibleTable' + tableIndex );

            var Button     = document.createElement( 'span' );
            var ButtonLink = document.createElement( 'a' );
            var ButtonText = document.createTextNode( collapseCaption );
            // Styles are declared in [[MediaWiki:Common.css]]
            Button.className = 'collapseButton';

            ButtonLink.style.color = Header.style.color;
            ButtonLink.setAttribute( 'id', 'collapseButton' + tableIndex );
            ButtonLink.setAttribute( 'href', '#' );
            $( ButtonLink ).on( 'click', createClickHandler( tableIndex ) );
            ButtonLink.appendChild( ButtonText );

            Button.appendChild( document.createTextNode( '[' ) );
            Button.appendChild( ButtonLink );
            Button.appendChild( document.createTextNode( ']' ) );

            Header.insertBefore( Button, Header.firstChild );
            tableIndex++;
        }
    } );

    for ( i = 0;  i < tableIndex; i++ ) {
        if ( $( NavigationBoxes[i] ).hasClass( 'collapsed' ) ||
            ( tableIndex >= autoCollapse && $( NavigationBoxes[i] ).hasClass( 'autocollapse' ) )
        ) {
            collapseTable( i );
        }
        else if ( $( NavigationBoxes[i] ).hasClass ( 'innercollapse' ) ) {
            var element = NavigationBoxes[i];
            while ((element = element.parentNode)) {
                if ( $( element ).hasClass( 'outercollapse' ) ) {
                    collapseTable ( i );
                    break;
                }
            }
        }
    }
}

mw.hook( 'wikipage.content' ).add( createCollapseButtons );

/**
 * Dynamic Navigation Bars (experimental)
 *
 * Description: See [[Wikipedia:NavFrame]].
 * Maintainers: UNMAINTAINED
 */

/* set up the words in your language */
var NavigationBarHide = '[' + collapseCaption + ']';
var NavigationBarShow = '[' + expandCaption + ']';
var indexNavigationBar = 0;

/**
 * Shows and hides content and picture (if available) of navigation bars
 * Parameters:
 *     indexNavigationBar: the index of navigation bar to be toggled
 **/
window.toggleNavigationBar = function ( indexNavigationBar, event ) {
    var NavToggle = document.getElementById( 'NavToggle' + indexNavigationBar );
    var NavFrame = document.getElementById( 'NavFrame' + indexNavigationBar );
    var NavChild;

    if ( !NavFrame || !NavToggle ) {
        return false;
    }

    /* if shown now */
    if ( NavToggle.firstChild.data === NavigationBarHide ) {
        for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
            if ( $( NavChild ).hasClass( 'NavContent' ) || $( NavChild ).hasClass( 'NavPic' ) ) {
                NavChild.style.display = 'none';
            }
        }
    NavToggle.firstChild.data = NavigationBarShow;

    /* if hidden now */
    } else if ( NavToggle.firstChild.data === NavigationBarShow ) {
        for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
            if ( $( NavChild ).hasClass( 'NavContent' ) || $( NavChild ).hasClass( 'NavPic' ) ) {
                NavChild.style.display = 'block';
            }
        }
        NavToggle.firstChild.data = NavigationBarHide;
    }

    event.preventDefault();
};

/* adds show/hide-button to navigation bars */
function createNavigationBarToggleButton( $content ) {
    var NavChild;
    /* iterate over all < div >-elements */
    var $divs = $content.find( 'div' );
    $divs.each( function ( i, NavFrame ) {
        /* if found a navigation bar */
        if ( $( NavFrame ).hasClass( 'NavFrame' ) ) {

            indexNavigationBar++;
            var NavToggle = document.createElement( 'a' );
            NavToggle.className = 'NavToggle';
            NavToggle.setAttribute( 'id', 'NavToggle' + indexNavigationBar );
            NavToggle.setAttribute( 'href', '#' );
            $( NavToggle ).on( 'click', $.proxy( window.toggleNavigationBar, window, indexNavigationBar ) );

            var isCollapsed = $( NavFrame ).hasClass( 'collapsed' );
            /**
             * Check if any children are already hidden.  This loop is here for backwards compatibility:
             * the old way of making NavFrames start out collapsed was to manually add style="display:none"
             * to all the NavPic/NavContent elements.  Since this was bad for accessibility (no way to make
             * the content visible without JavaScript support), the new recommended way is to add the class
             * "collapsed" to the NavFrame itself, just like with collapsible tables.
             */
            for ( NavChild = NavFrame.firstChild; NavChild != null && !isCollapsed; NavChild = NavChild.nextSibling ) {
                if ( $( NavChild ).hasClass( 'NavPic' ) || $( NavChild ).hasClass( 'NavContent' ) ) {
                    if ( NavChild.style.display === 'none' ) {
                        isCollapsed = true;
                    }
                }
            }
            if ( isCollapsed ) {
                for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
                    if ( $( NavChild ).hasClass( 'NavPic' ) || $( NavChild ).hasClass( 'NavContent' ) ) {
                        NavChild.style.display = 'none';
                    }
                }
            }
            var NavToggleText = document.createTextNode( isCollapsed ? NavigationBarShow : NavigationBarHide );
            NavToggle.appendChild( NavToggleText );

            /* 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 ( $( NavFrame.childNodes[j] ).hasClass( 'NavHead' ) ) {
                    NavToggle.style.color = NavFrame.childNodes[j].style.color;
                    NavFrame.childNodes[j].appendChild( NavToggle );
                }
            }
            NavFrame.setAttribute( 'id', 'NavFrame' + indexNavigationBar );
        }
    } );
}

mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton );

/**
 * Uploadwizard_newusers
 * Switches in a message for non-autoconfirmed users at [[Wikipedia:Upload]]
 *
 * Maintainers: [[User:Krimpet]]
 */
function uploadwizard_newusers() {
    if ( mw.config.get( 'wgNamespaceNumber' ) === 4 && mw.config.get( 'wgTitle' ) === 'Upload' && mw.config.get( 'wgAction' ) === 'view' ) {
        var oldDiv = document.getElementById( 'autoconfirmedusers' ),
            newDiv = document.getElementById( 'newusers' );
        if ( oldDiv && newDiv ) {
            var userGroups = mw.config.get( 'wgUserGroups' );
            if ( userGroups ) {
                for ( var i = 0; i < userGroups.length; i++ ) {
                    if ( userGroups[i] === 'autoconfirmed' ) {
                        oldDiv.style.display = 'block';
                        newDiv.style.display = 'none';
                        return;
                    }
                }
            }
            oldDiv.style.display = 'none';
            newDiv.style.display = 'block';
            return;
        }
    }
}

$(uploadwizard_newusers);

/**
 * Magic editintros ****************************************************
 *
 * Description: Adds editintros on disambiguation pages and BLP pages.
 * Maintainers: [[User:RockMFR]]
 */
function addEditIntro( name ) {
    $( '.mw-editsection, #ca-edit' ).find( 'a' ).each( function ( i, el ) {
        el.href = $( this ).attr( 'href' ) + '&editintro=' + name;
    } );
}

if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) {
    $( function () {
        if ( document.getElementById( 'disambigbox' ) ) {
            addEditIntro( 'Template:Disambig_editintro' );
        }
    } );

    $( function () {
        var cats = mw.config.get('wgCategories');
        if ( !cats ) {
            return;
        }
        if ( $.inArray( 'Living people', cats ) !== -1 || $.inArray( 'Possibly living people', cats ) !== -1 ) {
            addEditIntro( 'Template:BLP_editintro' );
        }
    } );
}

/* End of mw.loader.using callback */
} );
/* DO NOT ADD CODE BELOW THIS LINE */