Revision 38809431 of "Gebruiker:Meerdervoort/common.js" 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 );
} );
}
} );
}
// For description, see [[en:User:Mr.Z-man/rollbackSummary]]
function rollbackSummary() {
var hasRollback = getElementsByClassName(document, "span", "mw-rollback-link");
if (hasRollback[0]) {
addPortletLink('p-cactions', 'javascript:setRollbackSummary()', "rollback summary", "ca-rollbacksummary", "Set rollback link edit summary");
}
}
addOnloadHook(rollbackSummary);
function setRollbackSummary() {
summary = prompt("Change the default rollback summary for rollback links on this page to:", "");
if (!summary) {
for (var i in document.links) {
if (document.links[i].href.indexOf('summary=') != -1) {
document.links[i].href = document.links[i].href.substring(0, document.links[i].href.indexOf('summary=')-1);
}
}
}
else {
summary = "&summary=" + encodeURIComponent(summary);
for (var i in document.links) {
if (document.links[i].href.indexOf('action=rollback') != -1) {
document.links[i].href += summary;
}
}
}
}
// [[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?oldid=38809431.
![]() ![]() 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.
|