Open main menu

Changes

Module:Documentation

6 bytes added, 04:42, 7 February 2014
undo - frame:expandTemplates doesn't handle section headings correctly, so we need to use frame:preprocess
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