יחידה:ParamValidator: הבדלים בין גרסאות בדף

תוכן שנמחק תוכן שנוסף
ניסוי
יותר מדויק
שורה 197:
end end
 
for p_name, p in pairs( td_params ) do if p.series then
all_series[p_name] = tonumber(p.series) and p -- for now, only numeric values supported
end end
-- handle undeclared and deprecated
local already_seen = {}
שורה 207 ⟵ 203:
local hasval = not noval
 
if not tp_param and frame.args['series'] then -- 2nd chance. check to see if series
for s_name, p in pairs(all_seriestd_params) do
if p and mw.ustring.match( p_name, '^' .. s_name .. '%d+' .. '$') then td_param = p end -- don't bother breaking. td always correct.
end
end