Module:Module introspection: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
Line 282: Line 282:
end
end
table.insert(lines, "|}")
table.insert(lines, "|}")
if not has_descriptions then
table.insert(lines, "''No function descriptions were provided. See the code if it has any descriptions.''")
end
return table.concat(lines, "\n")
return table.concat(lines, "\n")
Line 309: Line 313:
local module_funcs = p.find_functions(code)
local module_funcs = p.find_functions(code)
local func_table = p.make_function_table(module_name, module_funcs, descriptions, main_function)
local func_table = p.make_function_table(module_name, module_funcs, descriptions, main_function)
-- Count the number of modules used


-- Return the tables
-- Return the tables