מדיה ויקי:Gadget-Checkty.js: הבדלים בין גרסאות בדף

קפיצה לניווט קפיצה לחיפוש
אין תקציר עריכה
(התאמה לחב"דפדיה - הערות שוליים)
אין תקציר עריכה
שורה 915: שורה 915:
} else {
} else {
//is in infobox heuristic: = before image tag
//is in infobox heuristic: = before image tag
var isInInfobox = new RegExp('=\s*\\[\\[(?:file|image|קובץ|תמונה):' + imgName.replace(' ', '[ _]') + '[^\\]]*?\]\]', 'i');
var isInInfobox = new RegExp('=\s*\\[\\[(?:file|image|קובץ|תמונה):' + imgName.replace(' ', '[ +]') + '[^\\]]*?\]\]', 'i');
if (isInInfobox.test(t.val())) {
if (isInInfobox.test(t.val())) {
t.val(t.val().replace(matches[0], matches[0] + '{{'+mw.msg('checkty-fairuse-img-replace-template')+'}}'));
t.val(t.val().replace(matches[0], matches[0] + '{{'+mw.msg('checkty-fairuse-img-replace-template')+'}}'));

תפריט ניווט