Changes
Jump to navigation
Jump to search
-- Get the /doc title object
if not docTitle then
return nil
end
-- Get the documentation content.
allow documentation passed with the |content= parameter to show even if we get errors from the env table
function p._content(args, env)
local docTitle = env.docTitle
local content = args.content
if not content and docTitle and docTitle.exists then
local frame = mw.getCurrentFrame()
content = frame:preprocess('{{ ' .. docTitle.prefixedText .. ' }}')