Module:Module introspection: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
m rearrange
Line 247: Line 247:


-- Return the tables as strings
-- Return the tables as strings
local summary = string.format("'''Introspection summary:''' Module:%s requires %d Lua module(s) and provides %d functions(s).", module_name, num_deps, #module_funcs)
local summary = string.format("'''Introspection summary:''' Module:%s provides %d functions and uses %d Lua module(s) as dependencies.", module_name, #module_funcs, num_deps)
local combined_tables = table.concat({
local combined_tables = table.concat({
"{|",
"{|",
'| style="vertical-align:top; width:50%;" |',
func_table,
'| style="vertical-align:top; width:50%;" |',
'| style="vertical-align:top; width:50%;" |',
dep_table,
dep_table,
'| style="vertical-align:top; width:50%;" |',
func_table,
"|}"
"|}"
}, "\n")
}, "\n")