Module:Dochead: Difference between revisions

Ganaram inukshuk (talk | contribs)
strip /doc in the main function if present
Ganaram inukshuk (talk | contribs)
try to keep text from breaking adjacent templates
Line 142: Line 142:
-- Append categorization info
-- Append categorization info
local has_link = namespace == "Template" and has_module
local has_link = namespace == "Template" and has_module
return string.format(":''%s'' %s", result, p.categorize(namespace, pagename, has_link))
return string.format(":''%s'' %s\n", result, p.categorize(namespace, pagename, has_link))
end
end