יחידה:תאריך עברי: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 225: | שורה 225: | ||
return fromhebrewyear(rem) end | return fromhebrewyear(rem) end | ||
return fromhebrewdate(rem, to) | return fromhebrewdate(rem, to) | ||
end | end | ||
function fromhebrew(f) | function fromhebrew(f) | ||
frame = f | frame = f | ||
if frame.args["about"] == "כן" | |||
then | |||
for e, ee in pairs(abouttable) do | |||
if find1(frame.args[1], ee) > 0 then | |||
return frame.args[1] end | |||
end end | |||
local success, res = pcall(fromhebrew1) | local success, res = pcall(fromhebrew1) | ||
if success | if success | ||
| שורה 256: | שורה 253: | ||
function tohebrewmonth(wdate) | function tohebrewmonth(wdate) | ||
ans = tohebrewdate("15 ב" .. wdate, frommonth) | ans = tohebrewdate("15 ב" .. wdate, frommonth) | ||
if frame.args["exact"] ~= "כן" | if frame.args["exact"] ~= nil--"כן" | ||
then ans = ans .. " בערך" | then ans = ans .. " בערך" | ||
end | end | ||
| שורה 294: | שורה 291: | ||
function tohebrew(f) | function tohebrew(f) | ||
frame = f | frame = f | ||
if frame.args["about"] == "כן" | |||
then for e, ee in pairs(abouttable) do | |||
if find1(frame.args[1], ee) > 0 then | |||
return frame.args[1] end | |||
end end | |||
local success, res = pcall(tohebrew1, frame.args[1]) | local success, res = pcall(tohebrew1, frame.args[1]) | ||
if success | if success | ||