Anonymous user
Module:Documentation: Difference between revisions
simplify the content function
(need to check type as well) |
(simplify the content function) |
||
Line 505:
function p._content(args, env)
-- Get the /doc title object
local success, docTitle = env:grab('docTitle')
if not success then
return docTitle -- docTitle is an error message
-- Get the documentation content.
local content = args.content
if not content and docTitle.exists then
local
▲ content = frame:preprocess('{{ ' .. docpage .. ' }}')
▲ end
end
-- The line breaks below are necessary so that "=== Headings ===" at the start and end
|