Editing Module:Documentation
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 529: | Line 529: | ||
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 or args._content | ||
if not content and docTitle and docTitle.exists then | if not content and docTitle and docTitle.exists then | ||
local frame = mw.getCurrentFrame() | |||
content = frame:expandTemplate{title = docTitle.prefixedText} | |||
end | end | ||
if mw.site.siteName == "Miraheze Developers Wiki" and args.noexportinstructions ~= "yes" then | if mw.site.siteName == "Miraheze Developers Wiki" and args.noexportinstructions ~= "yes" then |