Module:Module introspection: Difference between revisions

Ganaram inukshuk (talk | contribs)
adopt get_and_preprocess_content
Tag: Reverted
Ganaram inukshuk (talk | contribs)
Undo revision 215229 by Ganaram inukshuk (talk) undo for bugfixing
Tag: Undo
Line 136: Line 136:
end
end
-- Get lua code
-- Preprocess module and blank-out comments
local code = iutils.get_and_preprocess_content("Module", "module_name")
local title = mw.title.new('Module:' .. module_name)
local code = title:getContent()
code = iutils.preprocess_code(code) -- Blank-out comments
-- Get dependencies and their functions used, then build a table
-- Get dependencies and their functions used, then build a table