מייבאים כמותיים, בדוקי עריכות אוטומטית, ביוראקראטן, אינטערפעיס רעדאקטארן, emailconfirmed, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, סיסאפן, צוות טכני, מייבאים, מעדכנים, אספקלריה רעדאקטארן
102,362
רעדאגירונגען
(ייבוא מוויקיפדיה העברית, ראה רשימת התורמים) |
אין תקציר עריכה |
||
| (5 מיטלסטע ווערסיעס פון 2 באַניצער נישט געוויזן.) | |||
| שורה 1: | שורה 1: | ||
if (mw.config.get(' | if (mw.config.get('wgContentNamespaces').includes(mw.config.get('wgNamespaceNumber'))) | ||
//סקריפט לבדיקת יתמות ערכים | //סקריפט לבדיקת יתמות ערכים | ||
$(document).ready(function () { | $(document).ready(function() { | ||
function addOrphanWarning() { | |||
var reminder = 'דער ארטיקל ' + mw.config.get('wgTitle') + ' איז א "יתום": קיין אנדערע ארטיקל פארבינדט נישט אהער.\nביטע פרובירט <a href="' + mw.config.get('wgScript') + '?' + $.param({ | |||
search: mw.config.get('wgTitle'), | |||
fulltext: 1 | |||
}) + '">צו טרעפן</a> ארטיקלען וועלכע קענען פארבינדן אהער, און לייגט צו אזעלכע פארבינדונגען.' | |||
if ($('input[name=wpSection]').attr('value') == '' && $('#wpTextbox1').text().indexOf('{{יתום') == -1) reminder = $('<div>', { | |||
html: reminder + '<br />אדער אויב איר טרעפט נישט קיין ארטיקלען וואו עס פאסט צוצולייגן אזעלכע פארבינדונגען, לייגט צו ביים סוף פון דעם ארטיקל דער מוסטער ' | |||
}).append($('<a>', { | |||
text: '{{יתום}}', | |||
href: '#' | |||
}).click(function() { | |||
var summary = $('#wpSummary').val(); | |||
$('#wpSummary').val(summary + (summary === '' ? '' : ',') + '{{[[מוסטער:יתום|יתום]]}}') | |||
$('#wpTextbox1').textSelection('encapsulateSelection', { post: '{{יתום}}' }); | |||
})); | |||
$('#wpTextbox1').after($('<p>').css({ | |||
'background': 'pink', | |||
'width': '100%', | |||
'margin': '0', | |||
'line-height': '100%' | |||
}).html(reminder)); | |||
} | |||
if ($('#wpTextbox1').text().indexOf('{{יתום') > -1) addOrphanWarning(); | |||
else if (($('#wpTextbox1').text().indexOf('#הפניה') || ('#wpTextbox1').text().indexOf('#ווייטערפירן')) && ($('#wpTextbox1').text().indexOf('{{פירושונים') || $('#wpTextbox1').text().indexOf('{{באדייטן'))) { | |||
var api = new mw.Api(); | |||
api.get({ | |||
action: 'query', | |||
blnamespace: "0" | list: 'backlinks', | ||
bltitle: mw.config.get('wgTitle'), | |||
blfilterredir: 'nonredirects', | |||
blnamespace: "0|8000", | |||
blredirect: 1 | |||
}).done(function(data) { | |||
if (data && data.query && typeof data.query.backlinks != "undefined" && data.query.backlinks.length == 0) addOrphanWarning(); | |||
}); | |||
} | |||
}); | }); | ||
רעדאגירונגען