Module:Dochead: Difference between revisions

Ganaram inukshuk (talk | contribs)
temporarily disable categories for none header, pending a proper fix
Ganaram inukshuk (talk | contribs)
quick and dirty fix to add none header back
Line 107: Line 107:
elseif header == "data" or pagename:gsub("/doc$", ""):match("/data$") then
elseif header == "data" or pagename:gsub("/doc$", ""):match("/data$") then
result = "This module primarily serves to provide data values for other modules and has no corresponding template."
result = "This module primarily serves to provide data values for other modules and has no corresponding template."
elseif header == "none" then
result = ""
else
else
Line 266: Line 269:
local cats = categorize_template(pagename, #invokes > 0)
local cats = categorize_template(pagename, #invokes > 0)
if result == "" and invocation_hatnote == "" then
if header == "none" then
return cats
elseif result == "" and invocation_hatnote == "" then
return ""
return ""
elseif result == "" and invocation_hatnote ~= "" then
elseif result == "" and invocation_hatnote ~= "" then