Changes

Module:Documentation

92 bytes removed, 09:02, 19 January 2014
allow documentation passed with the |content= parameter to show even if we get errors from the env table
function p._content(args, env)
-- Get the /doc title object
local docTitle = env.docTitle
if not docTitle then
return nil
end
-- Get the documentation content.
local content = args.content
if not content and docTitle and docTitle.exists then
local frame = mw.getCurrentFrame()
content = frame:preprocess('{{ ' .. docTitle.prefixedText .. ' }}')
Anonymous user