אונטערשייד צווישן ווערסיעס פון "יחידה:דאטום"

77 בייטן צוגעלייגט ,  פֿאַר 2 יאָר
אידיש
אין תקציר עריכה
(אידיש)
שורה 445: שורה 445:
}
}
local calendar = nil
local calendar = nil
if mw.ustring.find( wikitext, '<small>%(%[%[הלוח היוליאני%|יוליאני%]%]%)</small>' ) then
if mw.ustring.find( wikitext, '<small>%(%[%[יוליאנישער קאלענדאר%|יוליאניש%]%]%)</small>' ) then
calendar = Date.CALENDAR.JULIAN
calendar = Date.CALENDAR.JULIAN
wikitext = mw.ustring.gsub( wikitext, "<small>%(%[%[הלוח היוליאני%|יוליאני%]%]%)</small>", "" )
wikitext = mw.ustring.gsub( wikitext, "<small>%(%[%[יוליאנישער קאלענדאר%|יוליאניש%]%]%)</small>", "" )
end
end
שורה 598: שורה 598:
         else
         else
if self.calendar == Date.CALENDAR.JULIAN and self.year > 1583 then
if self.calendar == Date.CALENDAR.JULIAN and self.year > 1583 then
hebrewStr = mw.ustring.format('%d <small>([[הלוח היוליאני|יוליאני]])</small>',  (self.year))
hebrewStr = mw.ustring.format('%d <small>([[יוליאנישער קאלענדאר|יוליאניש]])</small>',  (self.year))
else
else
hebrewStr = mw.ustring.format('%d',  self.year)
hebrewStr = mw.ustring.format('%d',  self.year)
שורה 609: שורה 609:
         return hebrewStr
         return hebrewStr
     end
     end
    local months = { 'ינואר','פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר','דצמבר' }
    local months = { 'יאנואר','פעברואר', 'מערץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אויגוסט', 'סעפטעמבער', 'אקטאבער', 'נאוועמבער','דעצעמבער' }
     hebrewStr = months[self.month] .. ' ' .. hebrewStr
     hebrewStr = months[self.month] .. ' ' .. hebrewStr


שורה 616: שורה 616:
         return hebrewStr
         return hebrewStr
     end
     end
    hebrewStr = mw.ustring.format('%d ב%s', self.day, hebrewStr)
    hebrewStr = mw.ustring.format('%d %s', self.day, hebrewStr)


     --hour
     --hour
שורה 864: שורה 864:
readableInterval['years'] = readableInterval['years'] or 0
readableInterval['years'] = readableInterval['years'] or 0
if not (guessLevel==NO_GUESS) and not (guessLevel==DAY_GUESS and hasYears and #diffFormat==1 and readableInterval['days']>31) then  
if not (guessLevel==NO_GUESS) and not (guessLevel==DAY_GUESS and hasYears and #diffFormat==1 and readableInterval['days']>31) then  
outputPrefix='כ־'
outputPrefix='בערך '
end
end
if inclusive then
if inclusive then
שורה 935: שורה 935:
if frame.args[2] == "גיל" then
if frame.args[2] == "גיל" then
str= mw.ustring.gsub(str,"כ־(.+) שנים","%1 בערך")
str= mw.ustring.gsub(str,"כ־(.+) שנים","%1 בערך")
str= mw.ustring.gsub(str," שנים","")
str= mw.ustring.gsub(str," יאר","")
end
end
שורה 942: שורה 942:
str= mw.ustring.gsub(str,"כ(.+)","%1");
str= mw.ustring.gsub(str,"כ(.+)","%1");
str= mw.ustring.gsub(str,"־(.+)","%1");
str= mw.ustring.gsub(str,"־(.+)","%1");
str= mw.ustring.gsub(str," שנים","")
str= mw.ustring.gsub(str," יאר","")
if str == "שנתיים" then
if str == "שנתיים" then
str = 2
str = 2
שורה 958: שורה 958:
return str
return str
else
else
return frame.args['error'] or '<span class="scribunto-error">שגיאת תאריך: '..res..'</span>[[קאטעגאריע:דפים עם שגיאות בתאריך]]'
return frame.args['error'] or '<span class="scribunto-error">שגיאת תאריך: '..res..'</span>[[קאטעגאריע:בלעטער מיט דאטום פעלערן]]'
end
end
end
end
שורה 979: שורה 979:
return res
return res
else
else
return frame.args['error'] or '<span class="scribunto-error">שגיאת תאריך: '..res..'</span>[[קאטעגאריע:דפים עם שגיאות בתאריך]]'
return frame.args['error'] or '<span class="scribunto-error">שגיאת תאריך: '..res..'</span>[[קאטעגאריע:בלעטער מיט דאטום פעלערן]]'


end
end