انتقل إلى المحتوى

مستخدم:OsamaK/imagestaggers/nosource.js

من ويكيبيديا، الموسوعة الحرة

ملاحظة: بعد الحفظ، قد يلزمك إفراغ الكاش لرؤية التغييرات.

// No source tagger
function nosource() {
if (document.editform) {
document.editform.wpTextbox1.value += '\n{{نسخ:' + 'لم}}';
document.editform.wpSummary.value = "{{[[قالب:لا مصدر|لا مصدر]]}}؛ ستحذف الصورة بعد 7 أيام إذا لم يصحح المصدر";
document.editform.submit();
} else
document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + wgPageName + "&action=edit&nosource=1";
}
function addnosource(){
if (wgCanonicalNamespace == "Image")
mw.util.addPortletLink("p-cactions", "javascript:nosource()", "لا مصدر", "");
if (document.location.href.indexOf("nosource=1") > 0)
nosource();
}
$(addnosource);