Difference between revisions of "Module:Documentation"
Jump to navigation
Jump to search
ignore _content if it wouldn't have tried expanding the template
en>Jackmcbarn m (reflect changes to our config) |
en>Jackmcbarn (ignore _content if it wouldn't have tried expanding the template) |
||
Line 646: | Line 646: | ||
env = env or p.getEnvironment(args) | env = env or p.getEnvironment(args) | ||
local docTitle = env.docTitle | local docTitle = env.docTitle | ||
local content = args.content | local content = args.content | ||
if not content and docTitle and docTitle.exists then | if not content and docTitle and docTitle.exists then | ||
content = args._content or mw.getCurrentFrame():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 |