Module:Documentation: Difference between revisions
From Video Credit Archive
Content deleted Content added
wikpedia>Mr. Stradivarius p.content: use frame:expandTemplate instead of frame:preprocess to improve performance |
wikpedia>Mr. Stradivarius undo - frame:expandTemplates doesn't handle section headings correctly, so we need to use frame:preprocess |
||
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: |
content = frame:preprocess('{{ ' .. 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 |