Difference between revisions 38809453 and 38809468 on nlwiki// sorteren van de mij bekende talen bovenaan $(document).ready(function() { $(".interwiki-en").parent().prepend($(".interwiki-en")); $(".interwiki-de").parent().prepend($(".interwiki-de")); $(".interwiki-nl").parent().prepend($(".interwiki-nl")); }); // tekstverwerker aanpassen. Zie: http://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization var customizeToolbar = function() { $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'sections': { 'info': { 'type': 'booklet', 'label': 'Info' } } } ); }; /* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar . . . */ if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) { mw.loader.using( 'user.options', function () { if ( mw.user.options.get('usebetatoolbar') ) { mw.loader.using( 'ext.wikiEditor.toolbar', function () { $(document).ready( customizeToolbar ); } ); } } ); } importScript('en:User:Porchcorpter/rollback.js'// Created by Gracenotes // Credits: Porchcrop for some minor improvements. Information shown at [[User:Porchcrop/Rollback Summary]] function addSumLink() { var rbnode = [], diffnode, index = {}, gebcn = document.getElementsByClassName ? function(a, b, c) { return a.getElementsByClassName(c) } : getElementsByClassName; if (typeof rollbackLinksDisable == 'object' && rollbackLinksDisable instanceof Array) for (var i = 0; i < rollbackLinksDisable.length; i++) index[rollbackLinksDisable[i]] = true; if (!('user' in index) && wgCanonicalSpecialPageName == "Contributions" || !('recent' in index) && wgCanonicalSpecialPageName == "Recentchanges" || !('watchlist' in index) && wgCanonicalSpecialPageName == "Watchlist") rbnode = gebcn(document.getElementById("bodyContent"), "span", "mw-rollback-link"); else if (!('history' in index) && wgAction == "history") rbnode = gebcn(document.getElementById("pagehistory"), "span", "mw-rollback-link"); else if (!('diff' in index) && (diffnode = document.getElementById("mw-diff-ntitle2"))) rbnode = gebcn(diffnode, "span", "mw-rollback-link"); for (var i = 0, len = rbnode.length; i < len; i++) addRollbackSummaryLink(rbnode[i]); }; function confirmRollback() { var url = this.href; var user = url.match(/[?&]from=([^&]*)/); if (!user) return; user = decodeURIComponent(user[1].replace(/\+/g, " ")); var summary = prompt("Enter summary for rollback (or leave as current to use default summary):", "[[Help:Reverting|Reverted]] edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1"); if (summary == null || summary == "") return false; else if (summary == "[[Help:Reverting|Reverted]] edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1") return true; this.href = this.href.replace("?", "?summary=" + encodeURIComponent(summary) + "&"); }; function addRollbackSummaryLink(rbnode) { var rblink = rbnode.getElementsByTagName("a")[0]; var alink = rblink.cloneNode(true); alink.className = ""; //don't confuse other scripts alink.firstChild.nodeValue = "sum"; alink.onclick = confirmRollback; rbnode.insertBefore(alink, rblink.nextSibling); rbnode.insertBefore(document.createTextNode(" | "), alink); }; if (typeof rollbackLinksDisable == 'undefined') rollbackLinksDisable = []; if (typeof rollbackSummaryDefault == 'undefined') rollbackSummaryDefault = ""; addOnloadHook(addSumLink); // [[File:Krinkle_RTRC.js]] mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript'); All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://nl.wikipedia.org/w/index.php?diff=prev&oldid=38809468.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|