Module:Docbunto/infobox

--- Infobox for Lua modules. -- @script             infobox -- @param              {table} data Taglet documentation data. -- @param              {string} codepage Code page name. -- @param              {table} frame Template invocation frame. -- @param              {table} options Docbunto configuration options. -- @return             {table} Infobox template data for `frame:expandTemplate`. return function(data, codepage, frame, options) local infobox = {}

-- Infobox template name. infobox.title = 'Infobox Lua'

-- Infobox argument list. infobox.args = {} infobox.args.title = codepage infobox.args.image = data.info.image infobox.args.caption = data.info.caption infobox.args['type'] = data['type'] infobox.args.status = data.info.release infobox.args.description = data.summary infobox.args.author = data.info.author infobox.args['using code by'] = data.info.attribution infobox.args['other attribution'] = data.info.credit infobox.args.code = codepage infobox.args.dependencies = data.info.require infobox.args.examples = data.info.demo

return frame:expandTemplate(infobox) end