Module:Module introspection: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 172: | Line 172: | ||
-- Lists module's own functions; requires module name to produce links to each | -- Lists module's own functions; requires module name to produce links to each | ||
-- function. | -- function. | ||
function p.make_function_table(module_name, module_functions) | function p.make_function_table(module_name, module_functions, main_function) | ||
-- Collapse table if it's larger than 20 lines | -- Collapse table if it's larger than 20 lines | ||
| Line 222: | Line 222: | ||
-- Get module's functions, then build a table using that information | -- Get module's functions, then build a table using that information | ||
local module_functions = p.find_functions(preprocessed_content) | local module_functions = p.find_functions(preprocessed_content) | ||
local func_lines = p.make_function_table(module_name, module_functions) | local func_lines = p.make_function_table(module_name, module_functions, main_function) | ||
-- Return the tables as strings | -- Return the tables as strings | ||