Module:Docbunto/infobox: Difference between revisions

Content deleted Content added
Created page with '--- 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 {string} Infobox wikitext. return function(data, codepage, frame, options, title, maybe_md) local module_rating_box = {} if data.info['release'] then module_rating_box.tit...'
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 22:
end
local modules = data.info['require'] and mw.text.split(data.info['require'], '\n') or {}
for k,v in ipairs(modules) do
modules[k] = mw.ustring.sub(v, 3)
Line 78:
if data.info['credit'] then
infobox.args['other attribution'] = frame:preprocess(maybe_md(data.info['credit']))
end
if data.info['license'] then
infobox.args['license'] = frame:preprocess(maybe_md(data.info['license']))
end