Module:Dochead: Difference between revisions
for options that don't explicitly require a corresponding template/module, have the option to turn off corresponding-page detection (default is true) |
m bugfix logic |
||
| Line 157: | Line 157: | ||
-- Check whether corresponding module exists | -- Check whether corresponding module exists | ||
-- Then check whether this template invokes the module | -- Then check whether this template invokes the module | ||
local has_module = iutils.page_exists("Module:" .. corr_module) | local has_module = iutils.page_exists("Module:" .. corr_module) | ||
local wikitext = iutils.get_and_preprocess_content("Template", pagename) | local wikitext = iutils.get_and_preprocess_content("Template", pagename) | ||
local invokes = iutils.find_invokes(wikitext) | local invokes = iutils.find_invokes(wikitext) | ||