User:The Evil IP address/vector.js

From translatewiki.net
Jump to: navigation, search
$(document).ready(function (){
if (wgNamespaceNumber == 8 || wgNamespaceNumber > 100) {
$('#ca-delete').append('<li><a href="' + wgScript + '?title=' + wgPageName.replace(/\/[\w-]+$/, '/de') + '&action=edit">de</a></li>');
$('#ca-delete').append('<li><a href="' + wgScript + '?title=' + wgPageName.replace(/\/[\w-]+$/, '/qqq') + '&action=edit">qqq</a></li>');
}
if (wgNamespaceNumber == 8) {
$('#ca-delete').append('<li><a href="' + wgScript + '?title=' + wgPageName.replace(/\/[\w-]+$/, '/de-formal') + '&action=edit">de-formal</a></li>');
$('#ca-delete').append('<li><a href="' + wgScript + '?title=' + wgPageName.replace(/\/[\w-]+$/, '/de-ch') + '&action=edit">de-ch</a></li>');
}
}
);