Module:Documentation: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(simplify the start box code and attempt to get some more output if the env table contains errors) |
(allow documentation passed with the |content= parameter to show even if we get errors from the env table) |
||
Line 516:
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 .. ' }}')
|