Module:Dochead: Difference between revisions

Ganaram inukshuk (talk | contribs)
for options that don't explicitly require a corresponding template/module, have the option to turn off corresponding-page detection (default is true)
Ganaram inukshuk (talk | contribs)
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) and detect_corr_page
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)