Module:Dochead: Difference between revisions

Ganaram inukshuk (talk | contribs)
bugfix logic
Ganaram inukshuk (talk | contribs)
bugfix again
Line 60: Line 60:
-- If the header option is dualuse, metatemplate, or noinvoke, this option
-- If the header option is dualuse, metatemplate, or noinvoke, this option
-- is ignored. For any other option, it's not.
-- is ignored. For any other option, it's not.
if header ~= "dualuse" or header ~= "metatemplate" or header ~= "noinvoke" then
if header ~= "dualuse" and header ~= "metatemplate" and header ~= "noinvoke" then
has_template = has_template and detect_corr_page
has_template = has_template and detect_corr_page
end
end
Line 169: Line 169:
-- For any other option, it's not (although it also has no effect on
-- For any other option, it's not (although it also has no effect on
-- noinvoke or library/metamodule).
-- noinvoke or library/metamodule).
if header ~= "dualuse" or header ~= "metatemplate" then
if header ~= "dualuse" and header ~= "metatemplate" then
has_module = has_module and detect_corr_page
has_module = has_module and detect_corr_page
end
end