Module:Dochead: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 128: Line 128:
return "" .. cats
return "" .. cats
else
else
return string.format(":''%s''%s\n", result, cats)
return string.format(": ''%s''%s\n", result, cats)
end
end
end
end
Line 274: Line 274:
return ""
return ""
elseif result == "" and invocation_hatnote ~= "" then
elseif result == "" and invocation_hatnote ~= "" then
return string.format(":''%s''%s\n", invocation_hatnote, cats)
return string.format(": ''%s''%s\n", invocation_hatnote, cats)
elseif result ~= "" and invocation_hatnote == "" then
elseif result ~= "" and invocation_hatnote == "" then
return string.format(":''%s''%s\n", result, cats)
return string.format(": ''%s''%s\n", result, cats)
else
else
return string.format(":''%s''\n:''%s''%s\n", result, invocation_hatnote, cats)
return string.format(": ''%s''\n:''%s''%s\n", result, invocation_hatnote, cats)
end
end
end
end
Line 306: Line 306:
result = p.make_template_hatnote(header, pagename, corr_module, detect_corr_page)
result = p.make_template_hatnote(header, pagename, corr_module, detect_corr_page)
else
else
result = ":''This documentation template is in the wrong namespace. It should be within the Template or Module namespaces.''\n"
result = ": ''This documentation template is in the wrong namespace. It should be within the Template or Module namespaces.''\n"
end
end