בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,538
רעדאגירונגען
אין תקציר עריכה צייכן: אַנולירונג |
אין תקציר עריכה |
||
| שורה 79: | שורה 79: | ||
if (!sefer || !perekRaw || !pasukRaw) return; | if (!sefer || !perekRaw || !pasukRaw) return; | ||
var sefariaNames = bookNameMapping[sefer]; | var sefariaNames = bookNameMapping[sefer]; | ||
if (!sefariaNames) return; | if (!sefariaNames) return; | ||
| שורה 89: | שורה 88: | ||
var sefariaUrl = 'https://www.sefaria.org/' + encodeURIComponent(sefariaNames.english) + '.' + perek + '.' + pasuk; | var sefariaUrl = 'https://www.sefaria.org/' + encodeURIComponent(sefariaNames.english) + '.' + perek + '.' + pasuk; | ||
// Create and append the Sefaria icon | |||
var sefariaIcon = $('<a>') | |||
.attr('href', sefariaUrl) | |||
.attr('target', '_blank') | |||
.attr('title', 'עפן אין ספריא') | |||
.html('<img src="' + sefariaFavicon + '" alt="Sefaria" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | |||
$link.after(sefariaIcon); | |||
// Construct AlHaTorah URL | |||
var alHaTorahUrl = 'https://mg.alhatorah.org/Full/' + encodeURIComponent(sefariaNames.alHaTorah) + '/' + perek + '.' + pasuk; | |||
// Create and append the AlHaTorah icon | |||
var alHaTorahIcon = $('<a>') | |||
.attr('href', alHaTorahUrl) | |||
.attr('target', '_blank') | |||
.attr('title', 'עפן אין על התורה') | |||
.html('<img src="' + alHaTorahFavicon + '" alt="AlHaTorah" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | |||
$link.after(alHaTorahIcon); | |||
// Construct Wikisource URL (Hebrew names and numbers as-is) | |||
var wikiSourceUrl = 'https://he.wikisource.org/wiki/' + | |||
'קטגוריה:' + encodeURIComponent(sefer + '_' + perekRaw + '_' + pasukRaw); | |||
// Create and append the Wikisource icon | |||
var wikiSourceIcon = $('<a>') | |||
.attr('href', wikiSourceUrl) | |||
.attr('target', '_blank') | |||
.attr('title', 'עפן אין ויקיטקסט') | |||
.html('<img src="' + wikiSourceFavicon + '" alt="AlHaTorah" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | |||
$link.after(wikiSourceIcon); | |||
}); | }); | ||
}); | }); | ||
}); | }); | ||
רעדאגירונגען