בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,358
רעדאגירונגען
ק (rv) |
צייכן: מאנועל צוריקשטעל |
||
| (6 מיטלסטע ווערסיעס פון 5 באַניצער נישט געוויזן.) | |||
| שורה 543: | שורה 543: | ||
str["קידוד"] = str.encode | str["קידוד"] = str.encode | ||
str['מיצוי מספר'] = function(frame) | |||
local s = frame.args[1] | |||
local def = frame.args[2] or '' | |||
if not s then return def end | |||
local int, frac = s:match('[^%d.-]*(%-?[%d,]*)(%.%d+)') | |||
if int or frac then | |||
int = string.gsub(int or '', ',', '') -- remove commas | |||
frac = frac or '' | |||
return int .. frac | |||
end | |||
int = s:match('[^%d.-]*(%-?[%d,]*)') | |||
int = int and string.gsub(int or '', ',', '') | |||
return int or def | |||
end | |||
return str | return str | ||
רעדאגירונגען