Szerkesztő:Mathae/monobook.js
document.write('<script type="text/javascript" src="'
+ 'http://hu.wikipedia.org/w/index.php?title=' + encodeURI( "User:Tgr/catinsert.js".replace( / /g, '_') )
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://hu.wikipedia.org/w/index.php?title=User:Bdamokos/strings-hu.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
popupOnEditSelection=false;
popupDabRegexp = '([{][{]\\s*egyért|egyért\\s*[}][}])';
popupFixDabs=true;
function assess(templateName) {
var quality = prompt('Minőség:');
if(quality == null) return false;
var importance = prompt('Fontosság:');
if(importance == null) return false;
var today = new Date();
var dateString =
today.getFullYear() + "-" +
(today.getMonth() + 1) + "-" +
today.getDate();
var template =
"((" + templateName +
"|besorolás=" + quality +
"|fontosság=" + importance +
"|felhasználó=" + wgUserName +
"|dátum=" + dateString +
"))";
if (typeof(wikEdUseWikEd) != 'undefined') {
if (wikEdUseWikEd == true) {
WikEdUpdateTextarea();
}
}
var textarea = document.editform.wpTextbox1;
if(textarea.value.match("((" + templateName ))
textarea.value = textarea.value.replace(new RegExp("\\{\\{" + templateName + ".*?\\}\\}"), template);
else
textarea.value = template + '\n' + textarea.value;
if (typeof(wikEdUseWikEd) != 'undefined') {
if (wikEdUseWikEd == true) {
WikEdUpdateFrame();
}
}
var summary = document.editform.wpSummary;
summary.value = "cikk értékelése";
return false;
}
function addAssessButton(templateName, image, tip) {
// FIXME néha eltünteti a többi gombot (wikEd miatt?)
var toolbar = document.getElementById('toolbar');
if (!toolbar) { return false; }
mwInsertEditButton(toolbar, {
"imageId": "editbutton-assess-" + templateName,
"imageFile": image,
"speedTip": tip,
"tagOpen": "",
"tagClose": "",
"sampleText": ""
});
var button = document.getElementById("editbutton-assess-" + templateName);
button.onclick = function() {assess(templateName);};
}
$(function() {
addAssessButton("WPÓKOR", "http://upload.wikimedia.org/wikipedia/commons/e/e9/Button_copy_edit.png", "Cikkértékelés");
}); //cikkértékelés-end
document.write('<script type="text/javascript" src="http://hu.wikipedia.org/w/index.php?title=User:Bdanee/sablonmester.js&action=raw&ctype=text/javascript&dontcountme=s"> </script>');
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.