מייבאים כמותיים, בדוקי עריכות אוטומטית, ביוראקראטן, אינטערפעיס רעדאקטארן, emailconfirmed, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, סיסאפן, צוות טכני, מייבאים, מעדכנים, אספקלריה רעדאקטארן
102,362
רעדאגירונגען
(פאטשקע נישט מיט טעקע אדער file) |
(rabbiLinks (רבי [ [רבי פלוני|פלוני] ] = [ [רבי פלוני] ]) |
||
| שורה 335: | שורה 335: | ||
this.rawLinks(); | this.rawLinks(); | ||
} | } | ||
this.rabbiLinks(); | |||
this.overlinkify(); | this.overlinkify(); | ||
this.nakedLinks(); | this.nakedLinks(); | ||
| שורה 1,319: | שורה 1,320: | ||
this.textbox.value = wikitext; | this.textbox.value = wikitext; | ||
chectTyTool.addSummary('אראפגענומען דירעקטע רוי לינקס'); | chectTyTool.addSummary('אראפגענומען דירעקטע רוי לינקס'); | ||
} | |||
}, | |||
rabbiLinks: function () { | |||
// Check if the second part equals the concatenation of the first and third parts | |||
// רבי [[רבי שלמה|שלמה]] = [[רבי שלמה]] | |||
var pattern = /\[\[([^|\]]+)\|([^|\]]+)\]\]/g; | |||
function replaceMatch(match, opening, firstPart, separator, thirdPart, closing) { | |||
// Check if the second part equals the concatenation of the first and third parts | |||
if (firstPart + thirdPart === secondPart) { | |||
return '[[' + secondPart + ']]'; | |||
} else { | |||
// If not, return the original match | |||
return match; | |||
} | |||
} | |||
var wikitext = this.textbox.value.replace(pattern, replaceMatch); | |||
if (wikitext != this.textbox.value) { | |||
this.textbox.value = wikitext; | |||
chectTyTool.addSummary('אויסגעגליכן אינערליכע לינקס'); | |||
} | } | ||
}, | }, | ||
רעדאגירונגען