Module:Documentation: Difference between revisions
From Video Credit Archive
Content deleted Content added
wikpedia>Jackmcbarn m reflect changes to our config |
wikpedia>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} |
|||
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 |