Difference between revisions of "Module:Documentation"

only return contentTitle if it will be used
>Jackmcbarn
(ugly hack so that expanding of the /doc subpage doesn't count against Lua's time limit)
>Jackmcbarn
(only return contentTitle if it will be used)
Line 661: Line 661:
env = env or p.getEnvironment(args)
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
local docTitle = env.docTitle
if docTitle and docTitle.exists then
if not args.content and docTitle and docTitle.exists then
return docTitle.prefixedText
return docTitle.prefixedText
else
else
Anonymous user