יחידה:תאריך עברי: הבדלים בין גרסאות בדף
אין תקציר עריכה |
משתמש:IKhitron/טיוטה |
||
| שורה 256: | שורה 256: | ||
end | end | ||
function fromhebrew1( | function fromhebrew1() | ||
if | if rem == "[[ה' אלפים]]" then if frame.args["exact"] ~= "כן" | ||
then return ifwhich("1239-1240") else return ifwhich(1240) end end -- here | then return ifwhich("1239-1240") else return ifwhich(1240) end end -- here | ||
local w, rem = findhdatetype( | local w, rem = findhdatetype(frame.args[1]) | ||
if w == "dmy" | if w == "dmy" | ||
then return ifwhich(fromhebrewdate(rem, to)) | then return ifwhich(fromhebrewdate(rem, to)) | ||
| שורה 289: | שורה 289: | ||
if frame.args["about"] == "כן" and ifabout(frame.args[1]) | if frame.args["about"] == "כן" and ifabout(frame.args[1]) | ||
then return ifwhich(frame.args[1], "[[קטגוריה:דפים עם תאריך עברי מקורב]]") end | then return ifwhich(frame.args[1], "[[קטגוריה:דפים עם תאריך עברי מקורב]]") end | ||
local success, res = pcall(fromhebrew1 | local success, res = pcall(fromhebrew1) | ||
if success | if success | ||
then return ifwhich(res) | then return ifwhich(res) | ||
| שורה 372: | שורה 372: | ||
function pick1(hdate, wdate) | function pick1(hdate, wdate) | ||
local wdatetype, wrem = findwdatetype(wdate) | |||
return wdatetype .. " " .. wrem | |||
local | |||
end | end | ||