Module:Infobox/doc: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (Typo)
(add local p = {})
Line 11: Line 11:
===Unpack the frame arguments from the Template===
===Unpack the frame arguments from the Template===
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
local p = {}

function p.main(frame)
function p.main(frame)
local args = frame:getParent().args
local args = frame:getParent().args
Line 69: Line 71:
return infobox
return infobox
end
end

return p
</syntaxhighlight>
</syntaxhighlight>