مستخدم:علاء/vector.js
المظهر
الملف المصاحب .css لهذا المظهر موجود في مستخدم:علاء/vector.css. |
ملاحظة: بعد الحفظ، قد يلزمك إفراغ الكاش لرؤية التغييرات.
importScript('User:ASammour/globalContribs.js');
$(".stub-value").click (function (){
var article = $(this).parent().text().split("--->")[0];
var stubValue = $(this).text();
article = article.replace (/_/g, " ");
stubValue = stubValue.replace (/_/g, " ");
save (article, stubValue);
$(this).parent().remove();
});
function save(article, specify){
new mw.Api()
.edit( article, function ( revision ) {
return{
text: revision.content.replace("{{بذرة}}", "{{"+specify+"}}"),
summary: "تخصيص بذرة [[قالب:"+specify+"]]",
}
} )
.then( function () {
});
}