Jump to content

Module:Documentation: Difference between revisions

undo again - the bug in frame:expandTemplate has now been fixed, so using it again
m>Mr. Stradivarius
(undo - frame:expandTemplates doesn't handle section headings correctly, so we need to use frame:preprocess)
m>Mr. Stradivarius
(undo again - the bug in frame:expandTemplate has now been fixed, so using it again)
Line 635: Line 635:
if not content and docTitle and docTitle.exists then
if not content and docTitle and docTitle.exists then
local frame = mw.getCurrentFrame()
local frame = mw.getCurrentFrame()
content = frame:preprocess('{{ ' .. docTitle.prefixedText .. ' }}')
content = frame:expandTemplate{title = docTitle.prefixedText}
end
end
-- The line breaks below are necessary so that "=== Headings ===" at the start and end
-- The line breaks below are necessary so that "=== Headings ===" at the start and end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.