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

אין תקציר עריכה
אין תקציר עריכה
שורה 268: שורה 268:
function fromhebrewandverify(f)
function fromhebrewandverify(f)
frame = f
frame = f
if frame.args["about"] == "כן" and
frame:expandTemplate({title = "גיל לערכי אישים/מקורב", args = {str = frame.args[1]}}) ~= ""
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)
elseif frame.args["about"] == "כן" and
frame:expandTemplate({title = "גיל לערכי אישים/מקורב", args = {str = frame.args[1]}}) ~= ""
then return ifwhich(frame.args[1], "[[קטגוריה:דפים עם תאריך עברי מקורב]]")
elseif frame.args["error"] == nil
elseif frame.args["error"] == nil
then return aserror(res) end
then return aserror(res) end
שורה 366: שורה 366:
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
then return res
then return res
elseif frame.args["about"] == "כן" and
frame:expandTemplate({title = "גיל לערכי אישים/מקורב", args = {str = frame.args[1]}}) ~= ""
then return frame.args[1]
elseif frame.args["error"] == nil
elseif frame.args["error"] == nil
then return aserror(res) end
then return aserror(res) end