Module:Sandbox/ProcrastinatingReader/three: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 242:
or tp_param.deprecated and noval and 'empty-deprecated'
or not compatible( tp_param.type, value ) and 'incompatible'
ifor not series and already_seen[tp_param] and hasval thenand 'duplicate'
 
if not table_name then
if not series and already_seen[tp_param] and hasval then
table_name = 'duplicate'
end
end
if hasval and table_name ~= 'duplicate' then
already_seen[tp_param] = p_name
Line 257 ⟶ 252:
if table_name then
res[table_name] = res[table_name] or {}
res[if table_name][p_name] == 'duplicate' valuethen
local primary_param = tp_param['primary']
local primaryData = res[table_name][primary_param] or {}
table.insert(primaryData, p_name)
res[table_name][primary_param] = primaryData
endelse
res[table_name][p_name] = 'duplicate'value
end
end
end
Line 275 ⟶ 277:
-- add the first usage of alias to 'duplicate params'
if res['duplicate'] then
for _, alias in ipairs( alreadyseen ) do
is_alias = is_alias or not util.empty( t_args[alias] )
end
end