"ମଡ୍ୟୁଲ:Infobox" ପୃଷ୍ଠାର ସଂସ୍କରଣ‌ଗୁଡ଼ିକ ମଧ୍ୟରେ ତଫାତ

Content deleted Content added
Allow arguments passed via #invoke to override those passed into the invoking template.
Undid revision 957070706 by Ahecht (talk) - Undo for now, not very useful due to parameter name collisions
୪୦୦ କ ଧାଡ଼ି:
 
function p.infobox(frame)
-- AllowIf arguments passedcalled via #invoke, touse overridethe thoseargs 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