יחידה:תאריך עברי: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 268: | שורה 268: | ||
function fromhebrewandverify(f) | function fromhebrewandverify(f) | ||
frame = f | frame = f | ||
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 | ||
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 | ||