Content deleted Content added
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 209:
for x, p in pairs( td_params ) do for y, alias in ipairs( p.aliases or {} ) do
p['primary'] = x
td_params[x] = p
all_aliases[alias] = p
if tonumber(alias) then all_aliases[tonumber(alias)] = p end
end end
-- handle undeclared and deprecated
local already_seen = {}
Line 327 ⟶ 326:
end
if error_type == 'duplicate' then▼
table.insert( kv_ar, k .. ': ' .. v)▼
table.insert( kv_ar, v)
else▼
▲ table.insert( kv_ar, k .. ': ' .. v)
end▼
end
s = mw.ustring.gsub( s, 'paramname', concat_and_escape( k_ar ) )
▲ if error_type == 'duplicate' then
▲ else
▲ end
▲ s = mw.ustring.gsub( s, 'paramandvalue', pandv )
if mw.getCurrentFrame():preprocess( "{{REVISIONID}}" ) ~= "" then
s = mw.ustring.gsub( s, "<div.*<%/div>", "", 1 )
|