"ഘടകം:Infobox" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

Content deleted Content added
simplify (tested in sandbox)
Allow arguments passed via #invoke to override those passed into the invoking template.
വരി 400:
 
function p.infobox(frame)
-- IfAllow calledarguments passed via #invoke, useto theoverride argsthose passed into the invoking template.
-- Otherwise, for testing purposes, assume args are being passed directly in.
if frame == mw.getCurrentFrame() then
origArgs = frame:getParent().args
else
origArgs = frame
end
for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end
 
-- Parse the data parameters in the same order that the old {{infobox}} did, so that
"https://ml.wikipedia.org/wiki/ഘടകം:Infobox" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്