Module:Documentation: Difference between revisions

undo - frame:expandTemplates doesn't handle section headings correctly, so we need to use frame:preprocess
(p.content: use frame:expandTemplate instead of frame:preprocess to improve performance)
(undo - frame:expandTemplates doesn't handle section headings correctly, so we need to use frame:preprocess)
Line 635:
if not content and docTitle and docTitle.exists then
local frame = mw.getCurrentFrame()
content = frame:expandTemplatepreprocess('{{title =' .. docTitle.prefixedText .. ' }}')
end
-- The line breaks below are necessary so that "=== Headings ===" at the start and end
Anonymous user