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

אין תקציר עריכה
אין תקציר עריכה
שורה 346: שורה 346:
function verify(f)
function verify(f)
frame = f
frame = f
if noth(frame.args[1]) then return "" end
which = false
which = false
local success, res = pcall(pick1, frame.args[1], frame.args[2], "[[קטגוריה:חוסר מתאם בין תאריך עברי לתאריך לועזי]]")
local success, res = pcall(pick1, frame.args[1], frame.args[2], "[[קטגוריה:חוסר מתאם בין תאריך עברי לתאריך לועזי]]")
שורה 500: שורה 499:
function pick(f)
function pick(f)
frame = f
frame = f
if noth(frame.args["hebrew"]) then return "" end
local success, res = pcall(pick1, frame.args["hebrew"], frame.args["world"])
local success, res = pcall(pick1, frame.args["hebrew"], frame.args["world"])
if success
if success
שורה 540: שורה 538:
then return ans
then return ans
else return noans end
else return noans end
end
function noth(hdate)
return false --0 < find1(hdate, "אלפים")
end
end