Bürokraten | |
---|---|
ILeonx | |
Administratoren | |
Kingcat 100 | |
Magiczocker | |
MarkusRost | |
Nethonos | |
violine1101 | |
Fandom-Ansprechpartner | |
Nekky-chan |
Die Adminpinnwand ist für den einfacheren Kontakt mit Administratoren gedacht. Auch für Administratoren ist es einfacher wenn an einer Stelle die Probleme gesammelt werden und nicht überall im Wiki verteilt sind. Auf dieser Seite gilt – wie auch auf anderen Diskussionsseiten – die Pflicht, den eigenen Beitrag zu signieren.
Folgende Richtlinien sind zu beachten:
- Administrative Probleme stehen im Vordergrund, sprich: Benutzer sperren, Seiten schützen, Wiederherstellungen, ...
- Allgemeine Fragen sollten im Hintergrund stehen und sollten auf der Gemeinschaftsportal-Diskussionsseite gepostet werden.
- Keine Löschanträge; hierzu liegt die entsprechende Vorlage vor:
{{Löschen|Grund}}
. - Nutzungsregeln sind bei den Richtlinien zu finden.
- Fragen, welche sich auf einen speziellen Admin beziehen, sind auf dessen Diskussionsseite zu stellen.
mobile.css + common.js
Nabend, es gibt wieder eine neue Version mobile.css mit dieser Änderung aus dem englischen Wiki. Hab auch gleichzeitig den Hotbarteil von Grid2 wieder rausgenommen, der bei der letzten Änderung aus Versehen wieder rein gekommen ist. Durch die Änderung werden 6 Bilder nicht mehr genutzt, diese können gelöscht werden.
- Datei:Mobile-search-start.png
- Datei:Mobile-search-end.png
- Datei:Mobile-search-background.png
- Datei:Mobile-search-button.png
- Datei:Vector-tabs-background.png
- Datei:Content-background.png
Mobile.css |
---|
/** Minecraft skin **/ /* Give the background the stone and grass texture: [[File:Mobile-header-background.png]] [[File:Background.png]] */ body { background-color: #202020; background-image: url(http://hydra-media.cursecdn.com/minecraft-de.gamepedia.com/2/29/Mobile-header-background.png), url(http://hydra-media.cursecdn.com/minecraft-de.gamepedia.com/2/26/Background.png); background-repeat: repeat-x, repeat; } /* 3D search box */ #searchbox { background-color: #FFF; } .search_bar { position: relative; border-top: 3px solid #E6E6E6; border-left: 3px solid #B0B0B0; background-color: #D0CFCF; background-image: -webkit-linear-gradient(#C3C3C3, #DCDBDB); background-image: -o-linear-gradient(#C3C3C3, #DCDBDB); background-image: linear-gradient(#C3C3C3, #DCDBDB); color: #3C3B3B; height: 23px; } .search_bar:before { content: ""; position: absolute; border-top: 3px solid #B0B0B0; border-left: 3px solid #FFF; bottom: 0; left: -3px; } .search_bar:after { content: ""; position: absolute; border-top: 3px solid #FFF; border-left: 3px solid #E6E6E6; top: -3px; right: 0; } #sq { border: 0; } #search { background-color: transparent; padding: 0 0.5em; } /* [[File:Search-button.svg]] */ #searchbox #goButton { background: url(http://hydra-media.cursecdn.com/minecraft-de.gamepedia.com/0/0e/Search-button.svg) no-repeat 5px 2px / 18px; } /* Let nav go over the top of other things, instead of pushing them down */ #nav { position: absolute; z-index: 99; } /* Give the main content area its healthy blue glow, and a bit of grass: [[File:Mobile-content-background.png]] */ #content_wrapper { background: url(http://hydra-media.cursecdn.com/minecraft-de.gamepedia.com/1/12/Mobile-content-background.png) repeat-x #E6EFF4; padding-top: 16px; margin: 18px 0; } #content { padding: 1em; } #firstHeading { margin-top: 0; } #copyright { color: #FFF; } #copyright a { color: #BFBFBF; } /* Clear floats */ .visualClear { clear: both; } /** Template stylings **/ /* [[Template:Grid2]] */ .grid2 { display: inline-block; position: relative; text-align: left !important; background-color: #8B8B8B; height: 32px; width: 32px; padding: 2px; vertical-align: bottom; } .grid2.output { height: 48px; width: 48px; } .grid2 img, .pixel-image img { image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; -ms-interpolation-mode: nearest-neighbor; } .grid2 .border { display: block; margin: -2px 0 0 -2px; border-style: solid none none solid; border-width: 2px; border-color: #373737; height: 100%; } .grid2 .border > span { display: block; margin-right: -2px; border-style: none solid solid none; border-width: 2px; border-color: #FFFFFF; height: 100%; } .grid2 .image, .grid2 .default-image { position: absolute; line-height: 16px; top: 2px; width: 32px; height: 32px; } .grid2.output .image { top: 10px; left: 10px; } .grid2 .image > a.new { background-image: url("http://hydra-media.cursecdn.com/minecraft-de.gamepedia.com/4/4e/Grid_Layout_Unbekannt.png"); display: block; width: 32px; height: 32px; outline: none; text-indent: -99999px; } .grid2 .number { position: absolute; right: -2px; bottom: -2px; text-align: right; font-family: Minecraft; font-size: 16px; color: #FFF; pointer-events: none; z-index: 6; text-shadow: 2px 2px 0px #3F3F3F; filter: dropshadow(color=#3F3F3F, offx=2, offy=2); } .grid2 .number a { color: #FFF; text-decoration: none; } .grid2 .number .selflink { font-weight: normal; } .grid2 .image a.new + .number { display: none; } .grid2 .animated .image, .grid2 .paused .image { display: none; } .grid2 .animated .image.active, .grid2 .paused .image.active { display: block; } .grid2-Crafting_Table, .grid2-Furnace, .grid2-Brewing_Stand table, .grid2-generic { background: #C6C6C6; border: outset 2px #999; padding: 6px; text-align: left !important; width: auto; } .grid2-Crafting_Table td, .grid2-Furnace td, .grid2-Brewing_Stand td, .grid2-generic td { border: none; padding: 0; } /* [[Template:Grid2/Crafting Table]] */ .grid2-Crafting_Table .arrow, .grid2-Crafting_Table .shapeless { text-align: center; vertical-align: bottom; } .grid2-Crafting_Table .arrow { width: 40px; padding-bottom: 5px; } .grid2-Crafting_Table .shapeless span { cursor: help; } /* [[Template:Grid2/Furnace]] */ .grid2-Furnace { padding-left: 24px; padding-right: 24px; } .grid2-Furnace .arrow, .grid2-Furnace .output { text-align: center; vertical-align: middle; } .grid2-Furnace .arrow { padding-right: 18px !important; padding-left: 14px !important; } /* [[Template:Grid2/Brewing Stand]] */ .grid2-Brewing_Stand { position: relative; width: 144px; } .grid2-Brewing_Stand .bubbles { text-align: right; } .grid2-Brewing_Stand .input { padding: 3px 0 !important; vertical-align: top; } .grid2-Brewing_Stand .output1 { padding: 4px 10px 14px 0 !important; } .grid2-Brewing_Stand .output2 { padding-top: 18px !important; } .grid2-Brewing_Stand .output3 { padding: 4px 0 14px 10px !important; } .grid2-Brewing_Stand .paths { position: absolute; bottom: 42px; left: 42px; z-index: 5; } /* [[Template:Infobox]] */ .notaninfobox { clear: right; margin: 3px 0px 3px 3px; width: 300px; font-size: 90%; background: #FFFFFF; float: right; border: 1px solid #CCCCCC; padding: 2px; } .notaninfobox table, .notaninfobox td { border: 0; } .notaninfobox p { margin: 0; } .infobox-title { font-weight: bold; text-align: center; font-size: 120%; } .infobox-imagearea { text-align: center; padding: 4px; } /* [[Template:Navbox]] */ .navbox { border: 1px solid #CCC; margin: 1em auto 0; clear: both; } .navbox-top { white-space: nowrap; background-color: #CCC; } .navbox-group { background-color: #EEE; white-space: nowrap; text-align: right; } .navbox-list { width: 100%; } /* [[Template:Sprite]] */ .sprite { display: inline-block; position: relative; overflow: hidden; vertical-align: middle; height: 16px; width: 16px; } .sprite > span { position: absolute; height: 256px; width: 256px; } /* The blue header used throughout the wiki */ .mcwiki-header { background: #729FCF; border: 1px solid #ccc; border-bottom: 4px groove #999999; border-right: 4px groove #999999; padding: 5px; } /* Horizontal list */ .hlist ul { display: inline; margin: 0; padding: 0; } .hlist li { display: inline-block; white-space: nowrap; margin: 0; } .hlist li:after { content: " •"; } .hlist li:last-child:after, .hlist li.last-child:after { content: ""; } .hlist li > ul li:first-child:before { content: "("; } .hlist li > ul li:last-child:after, .hlist li > ul li.last-child:after { content: ")"; } .hlist li li li { font-size: x-small; } /* Turn a list into a tree view style (See [[.minecraft]]) */ .treeview { margin-top: 0.3em; } .treeview ul, .treeview li { margin: 0; padding: 0; list-style-type: none; list-style-image: none; } .treeview li li { position: relative; padding-left: 13px; margin-left: 7px; border-left: 1px solid #636363; } .treeview li li:before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-bottom: 1px solid #636363; } .treeview li li.first:before { border-color: #636363; border-style: solid; border-width: 1px 0 0 1px; height: 100%; margin-top: 11px; width: 10px; } .treeview li li.first, .treeview li li:last-child { border: 0; padding-left: 14px; } .treeview li li:last-child:before { border-left: 1px solid #636363; width: 10px; } /* Generic nowrap class */ .nowrap { white-space: nowrap; } .footer { clear:both; } /* Fix gallery */ ul.gallery li.gallerybox div.thumb { text-align: center; } ul.gallery li.gallerybox { display: inline-block; vertical-align: top; } ul.gallery { padding: 2px; } /* Set wikitable background to its intended color */ .wikitable { background: #F9F9F9; } /* Hide things on mobile (the extension is meant to do this automatically, but it doesn't work) */ .nomobile { display: none; } #content > h2:first-child { display: none; } /* Make sure the logo fits */ #mcw-logo img { max-width: 100%; height: auto; } |
Außerdem auch noch eine neue Version der Common.js (englische Änderungen). Nur ein paar kleinere Änderungen.
Common.js |
---|
( function() { 'use strict'; /** * Instead of cluttering up the global scope with * variables, they should instead be set as a * property of this global variable * * E.g: Instead of * myVar = 'blah'; * use * mcw.myVar = 'blah'; */ window.mcw = {}; /* Legacy support */ mcw.baseURL = '/'; mcw.wikiURL = '/'; /* Variables for interface text used throughout the script, for ease of translating */ mcw.i18n = { // Collapsible tables and page loader hideText: 'einklappen', showText: 'ausklappen', hideArrow: '▲', showArrow: '▼', arrowClass: 'pfeil', // Grid gridPrefix: 'Grid', gridModsURL: 'Mod', // Page loader loadErrorTitle: 'An error occurred loading the content', // File upload defaultLicense: 'License' }; /* Add extra buttons to the classic toolbar */ if ( mw.user.options.get( 'showtoolbar' ) && !mw.user.options.get( 'usebetatoolbar' ) ) { importScript( 'MediaWiki:Toolbar.js' ); } /* Wait for DOMContentLoaded */ $( function() { /** * Helper for getting the right text/symbol for a collapsible table, depending on * whether the table is collapsed or not, and whether it's meant to have text or arrows */ mcw.collapsibleButtonText = function( $table, $collapsed) { if ($collapsed) { if ( $table.hasClass( mcw.i18n.arrowClass ) ) { return mcw.i18n.showArrow; } else { return mcw.i18n.showText; } } else { if ( $table.hasClass( mcw.i18n.arrowClass ) ) { return mcw.i18n.hideArrow; } else { return mcw.i18n.hideText; } } }; /** * Collapsible tables * * Based on http://www.mediawiki.org/wiki/Manual:Collapsible_tables#Common.js_script_.28before_1.18.29 */ mcw.makeCollapsible = function( $content ) { if ( $content === undefined ) { $content = $( 'table.collapsible' ); } else { $content = $content.find( 'table.collapsible' ); } if ( !$content.length ) { return false; } var buttonText = ' <span class="collapsible-button">[<span class="jslink">' + mcw.i18n.hideText + '</span>]</span> '; $content.each( function() { var $table = $( this ), $header, $collapseButton, firstWidth, secondWidth; // This table is already collapsible if ( $table.data( 'collapsible' ) ) { return true; } // Use the collapse-button if specified otherwise the first header cell of the first row $header = $table.find( 'tr:first .collapse-button' ); if ( !$header.length ) { $header = $table.find( 'tr:first > th:first' ); } // No header or the table body is empty if ( !$header.length || !$table.find( 'tr:not(tr:first)' ).text().replace( /\n/g, '' ).length ) { return true; } // For the button to float properly, it has to be /before/ the cell text if ( $table.hasClass( 'collapse-button-none' ) ) { $header.append( buttonText ); } else { $header.prepend( buttonText ); } // Find max button size, and set its min-width to it $collapseButton = $table.find( '.collapsible-button' ); $collapseButton.find( '> .jslink' ).text(mcw.collapsibleButtonText($table,false)); firstWidth = $collapseButton.width(); $collapseButton.find( '> .jslink' ).text(mcw.collapsibleButtonText($table,true)); secondWidth = $collapseButton.width(); if ( firstWidth != secondWidth ) { if ( firstWidth < secondWidth ) { $collapseButton.css( 'min-width', secondWidth ); } else { $collapseButton.css( 'min-width', firstWidth ); } } // Set the text back to hide if it's not collapsed to begin with if ( !$table.hasClass( 'collapsed' ) ) { $collapseButton.find( '> .jslink' ).text(mcw.collapsibleButtonText($table,false)); } $table.data( 'collapsible', true ); } ); }; $( '#mw-content-text' ).on( 'click', 'table.collapsible .collapsible-button .jslink', function( e ) { var $table = $( this ).closest( 'table.collapsible' ); // Stop table sorting activating when clicking the link e.stopPropagation(); if ( $table.hasClass( 'collapsed' ) ) { $table.removeClass( 'collapsed' ).addClass( 'expanded' ); $( this ).text(mcw.collapsibleButtonText($table,false)); } else { $table.removeClass( 'expanded' ).addClass( 'collapsed' ); $( this ).text(mcw.collapsibleButtonText($table,true)); } } ); mcw.makeCollapsible(); /** * Fix edit summary prompt for undo * * Fixes the fact that the undo function combined with the "no edit summary prompter" * causes problems if leaving the edit summary unchanged. * Added by [[wikipedia:User:Deskana]], code by [[wikipedia:User:Tra]]. * See https://bugzilla.wikimedia.org/show_bug.cgi?id=8912 */ if ( document.location.search.indexOf( "undo=" ) !== -1 && document.getElementsByName( 'wpAutoSummary' )[0] ) { document.getElementsByName( 'wpAutoSummary' )[0].value='1'; } mcw.animation = function() { /** * Element animator * * Will cycle the active class on any child elements * within an element with the animated class. */ if ( mcw.animate === undefined && $( '.animated' ).length ) { mcw.animate = setInterval( function() { $( '.animated' ).each( function() { var current = $( this ).find( '.active' ).removeClass( 'active' ), next = current.next(); if ( !current.next().length ) { next = $( this ).children().eq( 0 ); } next.addClass( 'active' ); } ); }, 2000 ); } /** * Frame loader * * Loads a semi-colon (;) separated list of images * to be animated by the element animator * * Has special support for [[Template:Grid2]] */ var $animate = $( '.animated' ), size = {}, fileNamespace = mw.config.get( 'wgFormattedNamespaces' )[6]; if ( $animate.length ) { $animate.each( function() { var imgs = $( this ).data( 'imgs' ), imgSize = $( this ).data( 'img-size' ), grid2 = $( this ).closest( '.grid2' ), mod = $( this ).data( 'mod' ); if ( !imgs ) { return true; } if ( grid2.length ) { grid2 = true; imgSize = '32x32'; } else { grid2 = false; if ( imgSize ) { imgSize = imgSize.split( 'x' ); imgSize[0] = imgSize[0].replace( /[\D ]/, '' ); imgSize[1] = imgSize[1].replace( /[\D ]/, '' ); if ( imgSize[1] ) { imgSize[0] += 'x' + imgSize[1]; } imgSize = imgSize[0]; } else { imgSize = ''; } } if ( size[imgSize] === undefined ) { size[imgSize] = []; } imgs = imgs.split( ';' ); imgs.shift(); $.each( imgs, function() { if ( !this.trim() ) { return true; } var parts, name; if ( grid2 ) { if ( this.indexOf( ':' ) > -1 ) { parts = $.map( this.split( /[:,]+/ ), $.trim ); if ( parts[0].toLowerCase() === 'v' || parts[0].toLowerCase() === 'vanilla' ) { name = fileNamespace + ':' + mcw.i18n.gridPrefix + ' ' + parts[1] + '.png'; } else { name = fileNamespace + ':' + mcw.i18n.gridPrefix + ' ' + parts[1] + ' (' + parts[0] + ').png'; } } else { parts = $.map( this.split( ',' ), $.trim ); if ( !mod ) { name = fileNamespace + ':' + mcw.i18n.gridPrefix + ' ' + parts[0] + '.png'; } else { name = fileNamespace + ':' + mcw.i18n.gridPrefix + ' ' + parts[0] + ' (' + mod + ').png'; } } if ( size[imgSize].indexOf( name ) < 0 ) { size[imgSize].push( name ); } } else if ( size[imgSize].indexOf( fileNamespace + ':' + this.trim() ) < 0 ) { size[imgSize].push( fileNamespace + ':' + this.trim() ); } } ); } ); var redirectPromise = [], urlPromise = [], redirects = {}, urls = {}; $.each( size, function( size ) { var titles = this; if ( !titles ) { return true; } // Split titles up into blocks of 50, which is the API's title limit for standard users for ( var i = 0; i < titles.length; i += 50 ) { ( function() { var section = titles.slice( i, i + 50 ).join( '|' ); redirectPromise.push( // Thanks to bug 23750 (https://bugzilla.wikimedia.org/show_bug.cgi?id=23750) // &redirects doesn't work properly with prop=imageinfo. Some of the images // will return without any imageinfo, even though they are valid. // So the redirects have to be resolved in a separate request... $.ajax( { type: 'POST', url: '/api.php?action=query&format=json&redirects', data: { titles: section }, timeout: 20000 } ).done( function( data ) { if ( data.query.redirects ) { $.each( data.query.redirects, function() { redirects[this.to] = this.from; section = section.replace( this.from, this.to ); } ); } var thumburl = '', sizes = size.split( 'x' ); if ( sizes[0] ) { thumburl = '&iiurlwidth=' + sizes[0]; if ( sizes[1] ) { thumburl += '&iiurlheight=' + sizes[1]; } } urlPromise.push( $.ajax( { type: 'POST', url: '/api.php?action=query&format=json&prop=imageinfo&iiprop=url' + thumburl, data: { titles: section }, timeout: 20000 } ).done( function( data ) { $.each( data.query.pages, function( index ) { if ( index < 0 ) { return true; } if ( !this.imageinfo ) { mw.log( 'Imageinfo is empty' ); return true; } var url = this.imageinfo[0].thumburl || this.imageinfo[0].url; if ( redirects.hasOwnProperty( this.title ) ) { urls[redirects[this.title].replace( new RegExp( fileNamespace + ':(.*)' ), '$1' ) + size] = url; } else { urls[this.title.replace( new RegExp( fileNamespace + ':(.*)' ), '$1' ) + size] = url; } } ); } ).fail( function( error ) { mw.log( error ); } ) ); } ).fail( function( error ) { mw.log( error ); } ) ); } )(); } } ); $.when.apply( $, redirectPromise ).then( function() { $.when.apply( $, urlPromise ).then( function() { $animate.each( function() { var imgs = $( this ).data( 'imgs' ), imgSize = $( this ).data( 'img-size' ), html = '', grid2 = $( this ).closest( '.grid2' ), mod = $( this ).data( 'mod' ); if ( !imgs ) { return true; } if ( grid2.length ) { grid2 = true; imgSize = '32x32'; } else { grid2 = false; if ( imgSize ) { imgSize = imgSize.split( 'x' ); imgSize[0] = imgSize[0].replace( /[\D ]/, '' ); imgSize[1] = imgSize[1].replace( /[\D ]/, '' ); if ( imgSize[1] ) { imgSize[0] += 'x' + imgSize[1]; } imgSize = imgSize[0]; } else { imgSize = ''; } } imgs = imgs.split( ';' ); imgs.shift(); $.each( imgs, function() { if ( !this.trim() ) { if ( grid2 ) { html += '<span class="image"> </span>'; } return true; } var parts, name, link, url, num; if ( grid2 ) { if ( this.indexOf( ':' ) > -1 ) { parts = $.map( this.split( /[:,]+/ ), $.trim ); if ( parts[0].toLowerCase() === 'v' || parts[0].toLowerCase() === 'vanilla' ) { name = link = parts[1]; url = urls[mcw.i18n.gridPrefix + ' ' + parts[0] + '.png' + imgSize]; num = parts[2]; } else { name = parts[1] + ' (' + parts[0] + ')'; link = mcw.i18n.gridModsURL + '/' + parts[0] + '/' + parts[1]; url = urls[mcw.i18n.gridPrefix + ' ' + name + '.png' + imgSize]; num = parts[2]; } } else { parts = $.map( this.split( ',' ), $.trim ); if ( !mod ) { name = link = parts[0]; url = urls[mcw.i18n.gridPrefix + ' ' + parts[0] + '.png' + imgSize]; num = parts[1]; } else { name = parts[0] + ' (' + mod + ')'; link = mcw.i18n.gridModsURL + '/' + mod + '/' + parts[0]; url = urls[mcw.i18n.gridPrefix + ' ' + name + '.png' + imgSize]; num = parts[1]; } } html += '<span class="image">'; if ( name ) { if ( url ) { html += '<a title="' + link + '" href="/' + link.replace( / /g, '_' ) + '"><img width="32" height="32" src="' + url + '" alt="' + name + '"></a>'; if ( num ) { html += '<span class="number"><a title="' + link + '" href="/' + link.replace( / /g, '_' ) + '">' + num + '</a></span>'; } } else { html += '<a class="new" title="' + fileNamespace + ':' + mcw.i18n.gridPrefix + ' ' + name + '.png" href="/index.php?title=Special:Upload&wpDestFile=' + mcw.i18n.gridPrefix + '_' + name.replace( / /g, '_' ) + '.png"></a>'; } } else { html += ' '; } html += '</span>'; } else { name = this.trim(); html += '<span>'; if ( urls[name + imgSize] ) { html += '<a href="/' + fileNamespace + ':' + name.replace( / /g, '_' ) + '"><img src="' + urls[name + imgSize] + '" alt="' + name + '"></a>'; } else { html += '<a class="new" title="' + fileNamespace + ':' + name + '" href="/index.php?title=Spezial:Hochladen&wpDestFile=' + name.replace( / /g, '_' ) + '">' + fileNamespace + ':' + name + '</a>'; } html += '</span>'; } } ); $( this ).append( html ).data( 'imgs', null ); } ); } ); } ); } }; mcw.animation(); /** * Pause grid GUI templates (e.g. [[Template:Grid2/Crafting Table]]) on mouseover * * This is so people have a chance to look at each image on the cell * and click on pages they want to view. */ $( '#mw-content-text' ).on( { 'mouseenter': function() { $( this ).find( '.animated' ).removeClass( 'animated' ).addClass( 'paused' ); }, 'mouseleave': function() { $( this ).find( '.paused' ).removeClass( 'paused' ).addClass( 'animated' ); } }, '.grid2-Crafting_Table, .grid2-furnace, .grid2-Brewing_Stand' ); /** * Add fake last-child class in navboxes for IE8 */ if ( $.client.profile().name === 'msie' && $.client.profile().versionBase === '8' ) { $( '.navbox-list li:last' ).addClass( 'last-child' ); } /** * Page loader * * Allows a page to be downloaded and shown within another page. * Use with [[Template:LoadPage]] */ var $loadPage = $( '.load-page' ); if ( $loadPage.length ) { // We need the spinner to show loading is happening, but we don't want // to have a delay while the module downloads, so we'll load this now, // regardless of if something is clicked mw.loader.load( 'jquery.spinner' ); var $buttonText = $( '<span/>' ) .addClass( 'load-page-button' ) .css( { display: 'inline-block', marginLeft: '0.8em', fontWeight: 'normal' } ) .html( '[<span class="jslink">' + mcw.i18n.hideText + '</span>]' ); $loadPage.find( '.mw-headline:first' ).each( function() { var $button, firstWidth, secondWidth; // Add the button $( this ).append( $buttonText.clone() ); // Find max button size, and set its min-width to it $button = $( this ).find( '> .load-page-button' ); firstWidth = $button.width(); $button.find( '> .jslink' ).text( mcw.i18n.showText ); secondWidth = $button.width(); if ( firstWidth != secondWidth ) { if ( firstWidth < secondWidth ) { $button.css( 'min-width', secondWidth ); } else { $button.css( 'min-width', firstWidth ); } } } ); } $( '#mw-content-text' ).on( 'click', '.load-page-button > .jslink', function() { var $this = $( this ), $button = $this.parent(), $body = $this.closest( '.load-page' ), $content = $body.find( '.load-page-content' ); if ( !$body.data( 'loaded' ) ) { var oldButton = $button.html(); // Just in-case the spinner module is still not ready yet mw.loader.using( 'jquery.spinner', function() { $button.html( $.createSpinner() ); } ); new mw.Api().get( { action: 'parse', prop: 'text', title: mw.config.get( 'wgPageName' ), text: '{' + '{:' + $body.data( 'page' ) + '}}' } ).done( function( data ) { $content.html( data.parse.text['*'] ); $button.html( oldButton ).find( '> .jslink' ).text( mcw.i18n.hideText ); $body.data( 'loaded', true ); // Add Ajax compatible functions here // TODO: Use mw.hook once we get MW1.22 mcw.animation(); mcw.makeCollapsible( $content ); if ( $content.find( 'table.sortable' ).length ) { mw.loader.using( 'jquery.tablesorter', function() { $content.find( 'table.sortable' ).tablesorter(); } ); } } ).fail( function( _, error ) { $button.html( oldButton ); var errorText = ''; if ( error.textStatus ) { errorText = error.textStatus; } else if ( error.error ) { errorText = error.error.info; } mw.notify( errorText, { title: mcw.i18n.loadErrorTitle, autoHide: false } ); } ); } else if ( $this.text() === mcw.i18n.showText ) { $content.show(); $this.text( mcw.i18n.hideText ); } else { $content.hide(); $this.text( mcw.i18n.showText ); } } ); /** * Make simple search suggestions box separately styled */ mw.loader.using( 'mediawiki.searchSuggest', function() { $( '.suggestions:first' ).addClass( 'searchbar' ); } ); /** * Issue tracker loader */ /**if ( $( '#issue-list' ).length ) { var page = $( '#issue-list' ).data( 'name' ) || mw.config.get( 'wgPageName' ), amount = $( '#issue-list' ).data( 'num' ) || 20; if ( $.isArray( page ) ) { page = page.join( '" OR summary ~ "' ); } var jql = encodeURIComponent( 'project in (MC, MCPE) AND resolution = Unresolved AND ( summary ~ "' + page + '" )' ); $.ajax( 'https://mojang.atlassian.net/rest/api/latest/search?maxResults=' + amount + '&fields=summary&jql=' + jql ).done( function( search ) { if ( !search.issues.length ) { $( '#issue-list' ).text( 'No issues were found.' ); return false; } var compIssues = [], pocketIssues = []; $.each( search.issues, function() { if ( this.key.indexOf( 'MCPE' ) < 0 ) { compIssues.push( '<li>[<a href="https://mojang.atlassian.net/browse/' + this.key + '">' + this.key + '</a>] - ' + this.fields.summary + '</li>' ); } else { pocketIssues.push( '<li>[<a href="https://mojang.atlassian.net/browse/' + this.key + '">' + this.key + '</a>] - ' + this.fields.summary + '</li>' ); } } ); var html = ''; if ( compIssues.length ) { html = '<p><b>Computer:</b></p><ul>' + compIssues.join( '\n' ) + '</ul>'; } if ( pocketIssues.length ) { html += '\n<p><b>Pocket Edition:</b></p><ul>' + pocketIssues.join( '\n' ) + '</ul>'; } if ( search.total > amount ) { var extra = search.total - amount; html += '\n<p><a href="https://mojang.atlassian.net/issues/?jql=' + jql + '">View ' + extra + ' more result'; if ( extra > 1 ) { html += 's'; } html += '</a></p>'; } $( '#issue-list' ).html( html ); } ); } */ /** * Set unlicensed as the default license on file pages * * That way the file will be categorised so someone can find a license for the file */ if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Hochladen' ) { if ( $( '#wpLicense' ).val() === '' ) { $( '#wpLicense' ).val( 'mcw.i18n.defaultLicense' ); } mw.loader.using( 'mediawiki.legacy.upload', function() { var change = setInterval( function() { if ( licenseSelectorCheck ) { $( '#wpLicense' ).change(); clearInterval( change ); } }, 500 ); } ); } /** * Creates minecraft style tooltips * * Replaces normal tooltips. Supports minecraft [[formatting codes]] (except k), and a description with line breaks (/). * Use mcw.useNativeMinetip = true to use normal tooltips, with the description added */ mcw.minetip = { // Add normal minetip events, removing legacy tooltip create: function() { var tooltip; $( '#mw-content-text' ).on( { 'mouseenter.minetip': function( e ) { var $elem = $( this ), title = $elem.data( 'minetip-title' ), description = $elem.data( 'minetip-text' ); if ( title === undefined ) { // Use title attribute of the element or the first link directly under it title = $elem.attr( 'title' ) || $elem.find( '> a:first' ).attr( 'title' ); if ( title ) { // Set the retrieved title as data for future use $elem.data( 'minetip-title', title ); } else { return; } } $elem.add( '*', $elem ).filter( '[title]' ).removeAttr( 'title' ); if ( title === 0 ) { return; } var text = '<span class="title">' + title + '&f</span>'; if ( description ) { text += '\n<span class="description">' + description.replace( /\\\//g, '/' ).replace( /\//g, '<br>' ) + '&f</span>'; } if ( !$( '#minetip-tooltip' ).length ) { $( 'body' ).append( '<div id="minetip-tooltip"/>' ); } tooltip = $( '#minetip-tooltip' ); // Add classes for minecraft formatting codes while ( text.match( /&[0-9a-el-o]/ ) ) { text = text.replace( /&([0-9a-el-o])(.*?)(&f|$)/g, '<span class="format-$1">$2</span>&f' ); } // Remove reset formatting text = text.replace( /&f/g, '' ); tooltip.html( text ); // Trigger a mouse movement to position the tooltip $elem.trigger( 'mousemove', e ); }, 'mousemove.minetip': function( e, trigger ) { if ( !$( '#minetip-tooltip' ).length ) { $( this ).trigger( 'mouseenter' ); return; } // Get event data from remote trigger e = trigger || e; var top = e.clientY - 34, left = e.clientX + 14, width = tooltip.outerWidth( true ), height = tooltip.outerHeight( true ), $win = $( window ), winWidth = $win.width(), winHeight = $win.height(); // If going off the right of the screen, go to the left of the cursor if ( left + width > winWidth ) { left -= width + 36; } // If now going off to the left of the screen, resort to going below the cursor if ( left < 0 ) { left = 0; top += 82; // Go above the cursor if too low if ( top + height > winHeight ) { top -= 77 + height; } // Don't go off the top of the screen } else if ( top < 0 ) { top = 0; // Don't go off the bottom of the screen } else if ( top + height > winHeight ) { top = winHeight - height; } // Apply the positions tooltip.css( { top: top, left: left } ); }, 'mouseleave.minetip': function() { if ( !tooltip ) { return; } tooltip.remove(); } }, '.minetip, .grid2 .image' ).off( '.minetipNative' ); }, // Remove all events destroy: function() { $( '#mw-content-text' ).off( '.minetip .minetipNative' ); $( '#minetip-tooltip' ).remove(); }, // Add native browser tooltip events, removing normal minetip native: function() { $( '#mw-content-text' ).on( 'mouseenter.minetipNative', '.minetip, .grid2 .image', function() { var title = $( this ).data( 'minetip-title' ), description = $( this ).data( 'minetip-text' ), existingTitle = $( this ).attr( 'title' ) || $( this ).find( '> a:first' ).attr( 'title' ); if ( title || title === 0 || $( this ).attr( 'title' ) ) { // Remove titles within so they don't interfere $( this ).find( '[title]' ).removeAttr( 'title' ); } if ( title === 0 ) { $( this ).removeAttr( 'title' ); return; } else if ( !title && ( !existingTitle || !description ) ) { return; } else if ( !title && existingTitle ) { $( this ).data( 'minetip-title', existingTitle ); } var text = title || existingTitle; if ( description ) { text += '\n' + description; } // Remove formatting text = text.replace( /&([0-9a-fl-o])/g, '' ) .replace( /\\\//g, '/' ) .replace( /\//g, '\n' ) .replace( ///g, '/' ); $( this ).attr( 'title', text ); } ).off( '.minetip' ); } }; if ( mcw.useNativeMinetip ) { mcw.minetip.native(); } else { mcw.minetip.create(); } } ); } )(); |
Bei Fragen, fragen. --eagle3000 (D ~ B) 22:06, 1. Jan. 2014 (UTC)
- Erledigt
- Achso, und bitte die Datei Datei:Mobile-header-background.png mit der gleichnamigen Datei aus dem englischen Wiki (en:File:Mobile-header-background.png) aktualisieren. --eagle3000 (D ~ B) 15:44, 2. Jan. 2014 (UTC)
archiv 11
Bitte Archiv 11 im Header ergänzen, Oktober - Dezember 2013. --Caleb Blackhand 07:47, 2. Jan. 2014 (UTC)
- Erledigt --.zip de.MinecraftWiki-Admin Diskussion 12:03, 2. Jan. 2014 (UTC)
Unlöschbare Datei?
Irgendwas ist entweder mit der Datenbank auf Curse oder mit der eingesetzten MediaWiki-Version kaputt: In Spezial:Unbenutzte_Dateien gammelt immer noch der Verweis auf die Datei "Potion flow chart.png" rum, die inzwischen von Oliver zweimal gelöscht wurde. Hat jemand eine Idee, wie man die loswird? --Caleb Blackhand 09:33, 4. Jan. 2014 (UTC)
- Drei Admins haben es nochmal versucht. Die Datei geht aber trotzdem nicht weg. -- Oliver Scholz - Wiki Admin 13:40, 4. Jan. 2014 (UTC)
- Penetrant, die Datei. Hmpf. Auf Curse hoffen dürfte uns nicht helfen, oder? --Caleb Blackhand 13:45, 4. Jan. 2014 (UTC)
- Weiß nicht, glaube eher nicht. Problem hatte ich eben auch bei "Vorlage:Server-Software/Nein". -- Oliver Scholz - Wiki Admin 13:49, 4. Jan. 2014 (UTC)
- Ist weg. ILeon ᐸ Diskussion
Beiträge - de.Wiki Admin 14:31, 4. Jan. 2014 (UTC)- Ich frag nicht... Danke, Leon. --Caleb Blackhand 14:35, 4. Jan. 2014 (UTC)
- "lud eine neue Version von „Datei:Potion flow chart.png“ hoch" - aha! -- Oliver Scholz - Wiki Admin 15:09, 4. Jan. 2014 (UTC)
- Richtig. Ich hab eine neue Version hochgeladen, weil die Datei leer war. Beim Hochladen trat allerdings ein Internet Fehler auf. ILeon ᐸ Diskussion
Beiträge - de.Wiki Admin 16:42, 4. Jan. 2014 (UTC)
- Richtig. Ich hab eine neue Version hochgeladen, weil die Datei leer war. Beim Hochladen trat allerdings ein Internet Fehler auf. ILeon ᐸ Diskussion
- "lud eine neue Version von „Datei:Potion flow chart.png“ hoch" - aha! -- Oliver Scholz - Wiki Admin 15:09, 4. Jan. 2014 (UTC)
- Ich frag nicht... Danke, Leon. --Caleb Blackhand 14:35, 4. Jan. 2014 (UTC)
- Ist weg. ILeon ᐸ Diskussion
- Weiß nicht, glaube eher nicht. Problem hatte ich eben auch bei "Vorlage:Server-Software/Nein". -- Oliver Scholz - Wiki Admin 13:49, 4. Jan. 2014 (UTC)
- Penetrant, die Datei. Hmpf. Auf Curse hoffen dürfte uns nicht helfen, oder? --Caleb Blackhand 13:45, 4. Jan. 2014 (UTC)
Editwunsch
Bitte einmal im Redirect Vorlage:V die Kategorie:Abkürzung ergänzen. Danke. --Caleb Blackhand 17:21, 6. Jan. 2014 (UTC)
- Erledigt -- Sumpfhütte 17:30, 6. Jan. 2014 (UTC)
Werbung für Serverhoster in Minecraft-Server
In Minecraft-Server wird Werbung für bestimmte Serverhoster eingefügt, leider kann ich IP den Abschnitt nicht löschen. Meine Änderung wird vom Einsteller der Werbung reverted. 80.134.55.23 10:10, 8. Jan. 2014 (UTC)
- Ich glaube nicht, dass es gezielte Werbung war, weil nicht eine, sondern mehrere Adressen genannt wurden - übrigens genauso wie in dem Abschnitt oben drüber, der nicht bemängelt wird. Weil die Info an sich ja nicht falsch ist, habe ich den Abschnitt mal neu (und ohne Adressen) formuliert. -- Sumpfhütte 12:57, 8. Jan. 2014 (UTC)
- Wie soll hier unterschieden werden, ob das von einem Mitarbeiter von Hoster AAA (oder von Obi), der dann - damit's nicht sofort nach Eigenwerbung aussieht - noch ein paar URLS der Konkurrenz mit aufführt - oder ob das von einem "normalen User" hier reingesetzt wurde. Die Edithistory von Spezial:Beiträge/CapM0rg4n sieht eher nach der ersten Variante aus... 80.134.55.23 14:21, 8. Jan. 2014 (UTC)
- Das dies nicht so leicht ist hat Sumpfhütte ja die aktuelle Lösung gefunden. -- Oliver Scholz - Wiki Admin 14:43, 8. Jan. 2014 (UTC)
- Wie soll hier unterschieden werden, ob das von einem Mitarbeiter von Hoster AAA (oder von Obi), der dann - damit's nicht sofort nach Eigenwerbung aussieht - noch ein paar URLS der Konkurrenz mit aufführt - oder ob das von einem "normalen User" hier reingesetzt wurde. Die Edithistory von Spezial:Beiträge/CapM0rg4n sieht eher nach der ersten Variante aus... 80.134.55.23 14:21, 8. Jan. 2014 (UTC)