Changes

Jump to: navigation, search

Module:Documentation

268 bytes added, 07:22, 20 April 2014
ugly hack so that expanding of the /doc subpage doesn't count against Lua's time limit
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
local content = args.contentor args._content
if not content and docTitle and docTitle.exists then
local frame = mw.getCurrentFrame()
-- of docs are interpreted correctly.
return '\n' .. (content or '') .. '\n'
end
 
p.contentTitle = makeInvokeFunc('_contentTitle')
 
function p._contentTitle(args, env)
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
if docTitle and docTitle.exists then
return docTitle.prefixedText
else
return ''
end
end
Anonymous user

Navigation menu