ק
rv
(שחזור עמוק לגרסה של יגאל. קודם מנסים בטיוטה ואחר כך מעבירים. הגרסה הקיימת יוצרת שגיאות בערכים.) |
ק (rv) |
||
| שורה 230: | שורה 230: | ||
function aserror(message) | function aserror(message) | ||
error(message .. "[[ | 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 | ||