בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,369
רעדאגירונגען
אין תקציר עריכה |
(אידיש) |
||
| שורה 445: | שורה 445: | ||
} | } | ||
local calendar = nil | local calendar = nil | ||
if mw.ustring.find( wikitext, '<small>%(%[%[ | if mw.ustring.find( wikitext, '<small>%(%[%[יוליאנישער קאלענדאר%|יוליאניש%]%]%)</small>' ) then | ||
calendar = Date.CALENDAR.JULIAN | calendar = Date.CALENDAR.JULIAN | ||
wikitext = mw.ustring.gsub( wikitext, "<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>([[ | 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 = { 'יאנואר','פעברואר', 'מערץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אויגוסט', 'סעפטעמבער', 'אקטאבער', 'נאוועמבער','דעצעמבער' } | |||
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) | |||
--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 | ||
רעדאגירונגען