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

40 בייטן אראפגענומען ,  פֿאַר 2 יאָר
אידיש
ק (1 רעוויזיע אימפארטירט פון wikipedia:he:יחידה:תאריך_עברי)
(אידיש)
שורה 1: שורה 1:
mtable = {"ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני",
mtable = {"יאנואר", "פעברואר", "מערץ", "אפריל", "מאי", "יוני",
"יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר", }
"יולי", "אויגוסט", "סעפטעמבער", "אקטאבער", "נאוועמבער", "דעצעמבער", }


monthtable = {
monthtable = {
שורה 151: שורה 151:
local year = makeyear(gdate)
local year = makeyear(gdate)
if frame.args["links"] == "yes"
if frame.args["links"] == "yes"
then return "[[" .. frame:callParserFunction("#זמןמ:j בF", gdate) .. "]] [["
then return "[[" .. frame:callParserFunction("#זמןמ:j F", gdate) .. "]] [["
.. year .. "]]" end
.. year .. "]]" end
return frame:callParserFunction("#זמןמ:j בF", gdate) .. " " .. year
return frame:callParserFunction("#זמןמ:j F", gdate) .. " " .. year
end
end


שורה 230: שורה 230:


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


שורה 289: שורה 289:


function fromhebrewyear(hyear)
function fromhebrewyear(hyear)
ans = fromhebrewdate("א' בניסן " .. hyear, toyear)
ans = fromhebrewdate("א' ניסן " .. hyear, toyear)
if frame.args["exact"] ~= "כן"
if frame.args["exact"] ~= "כן"
then ans = ans .. "-" .. fromhebrewdate("א' בתשרי " .. hyear, toyear)
then ans = ans .. "-" .. fromhebrewdate("א' תשרי " .. hyear, toyear)
end
end
return ans
return ans
שורה 381: שורה 381:
then return ifwhich(res)
then return ifwhich(res)
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
שורה 520: שורה 520:
local habout = false
local habout = false
local wabout = false
local wabout = false
if frame:expandTemplate({title = "גיל לערכי אישים/מקורב", args = {str = hebrew}}) ~= ""
if frame:expandTemplate({title = "עלטער/מקורב", args = {str = hebrew}}) ~= ""
then hebrew = ""
then hebrew = ""
habout = true end
habout = true end
if frame:expandTemplate({title = "גיל לערכי אישים/מקורב", args = {str = world}}) ~= ""
if frame:expandTemplate({title = "עלטער/מקורב", args = {str = world}}) ~= ""
then world = ""
then world = ""
wabout = true end
wabout = true end
שורה 543: שורה 543:
then return res
then return res
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