אונטערשייד צווישן ווערסיעס פון "יחידה:אידישע דאטום"

ק
rv
(שחזור עמוק לגרסה של יגאל. קודם מנסים בטיוטה ואחר כך מעבירים. הגרסה הקיימת יוצרת שגיאות בערכים.)
 
ק (rv)
שורה 230: שורה 230:


function aserror(message)
function aserror(message)
error(message .. "[[קטגוריה:דפים עם שגיאות בתאריך]]", 0)
error(message .. "[[קאטעגאריע:בלעטער מיט דאטע גרייזן]]", 0)
end
end


שורה 364: שורה 364:
frame = f
frame = f
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], "[[קאטעגאריע:חוסר מתאם בין תאריך עברי לתאריך לועזי]]")
if not success
if not success
then res = "" end
then res = "" end
שורה 382: שורה 382:
elseif frame.args["about"] == "כן" and
elseif frame.args["about"] == "כן" and
frame:expandTemplate({title = "גיל לערכי אישים/מקורב", args = {str = frame.args[1]}}) ~= ""
frame:expandTemplate({title = "גיל לערכי אישים/מקורב", args = {str = frame.args[1]}}) ~= ""
then return ifwhich(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
שורה 486: שורה 486:
if cat ~= nil
if cat ~= nil
then if ht == "dmy" and wt ~= "dmy"
then if ht == "dmy" and wt ~= "dmy"
then return "[[קטגוריה:חוסר מתאם בתאריכים - תאריך "  
then return "[[קאטעגאריע:חוסר מתאם בתאריכים - תאריך "  
.. frame.args["type"] .. " עברי מדויק]]" end
.. frame.args["type"] .. " עברי מדויק]]" end
if ht ~= "dmy" and wt == "dmy"
if ht ~= "dmy" and wt == "dmy"
then return "[[קטגוריה:חוסר מתאם בתאריכים - תאריך "  
then return "[[קאטעגאריע:חוסר מתאם בתאריכים - תאריך "  
.. frame.args["type"] .. " לועזי מדויק]]" end
.. frame.args["type"] .. " לועזי מדויק]]" end
-- if ht == "dmy" or ht == "my" or ht == "y"
-- if ht == "dmy" or ht == "my" or ht == "y"
-- then return "[[קטגוריה:חוסר מתאם בתאריכים - תאריך "  
-- then return "[[קאטעגאריע:חוסר מתאם בתאריכים - תאריך "  
-- .. frame.args["type"] .. " לועזי מדויק]]" end
-- .. frame.args["type"] .. " לועזי מדויק]]" end
return "" end
return "" end
שורה 544: שורה 544:
elseif frame.args["about"] == "כן" and
elseif frame.args["about"] == "כן" and
frame:expandTemplate({title = "גיל לערכי אישים/מקורב", args = {str = wdate}}) ~= ""
frame:expandTemplate({title = "גיל לערכי אישים/מקורב", args = {str = wdate}}) ~= ""
then return ifwhich(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
אַנאנימער באַניצער