יחידה:מקרא: הבדלים בין גרסאות בדף

נוספו 132 בתים ,  אתמול בשעה 16:49
תצוגת המקרא: שמירה על ״בני האלהים״ בבראשית ו, ב וד
(תמיכה בכינויי שמות הקודש לפי נתוני הפרק ובקישור לפרק הקודם)
(תצוגת המקרא: שמירה על ״בני האלהים״ בבראשית ו, ב וד)
שורה 5: שורה 5:
end
end


local function displayText(text, edition, fullName, largeInitial, nameAliases)
local function displayText(text, edition, fullName, largeInitial, nameAliases, keepElohim)
     if not fullName then
     if not fullName then
         for name, alias in pairs(nameAliases or {}) do
         for name, alias in pairs(nameAliases or {}) do
             text = text:gsub(name, alias)
             text = text:gsub(name, alias)
         end
         end
         if edition == 'כתיב' then
         if not keepElohim then
            text = text:gsub('אלהים', 'אלוקים')
            if edition == 'כתיב' then
        else
                text = text:gsub('אלהים', 'אלוקים')
            text = text:gsub('אֱלֹה', 'אֱלֹק')
            else
                text = text:gsub('אֱלֹה', 'אֱלֹק')
            end
         end
         end
     end
     end
שורה 32: שורה 34:
         if record.number == verseNumber then
         if record.number == verseNumber then
             local text = assert(record[edition], 'מהדורת מקרא לא מוכרת')
             local text = assert(record[edition], 'מהדורת מקרא לא מוכרת')
             return displayText(text, edition, frame.args[4] == 'מקור', record.largeInitial, data.nameAliases)
             return displayText(text, edition, frame.args[4] == 'מקור', record.largeInitial, data.nameAliases, record.keepElohim)
         end
         end
     end
     end
שורה 69: שורה 71:
         local number = record.number
         local number = record.number
         local text = assert(record[edition], 'מהדורת מקרא לא מוכרת')
         local text = assert(record[edition], 'מהדורת מקרא לא מוכרת')
         local alias = displayText(text, edition, false, record.largeInitial, data.nameAliases)
         local alias = displayText(text, edition, false, record.largeInitial, data.nameAliases, record.keepElohim)
         local source = displayText(text, edition, true, record.largeInitial, data.nameAliases)
         local source = displayText(text, edition, true, record.largeInitial, data.nameAliases, record.keepElohim)
         local label = data.number .. '_' .. number
         local label = data.number .. '_' .. number
         local target = '[[:קטגוריה:' .. data.chapter .. ' ' .. number .. '|' .. number .. ']]'
         local target = '[[:קטגוריה:' .. data.chapter .. ' ' .. number .. '|' .. number .. ']]'