Changes
Jump to navigation
Jump to search
else
-- linksData is nil or an error message.
return linksData
elseif type(data) == 'string' then
-- data is an error message.
return data
return nil-- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2
simplify the start box code and attempt to get some more output if the env table contains errors
-- No need to include the links if the documentation is on the template page itself.
local linksData = p.makeStartBoxLinksData(args, env)
if type(linksData) == 'table' then
links = p.renderStartBoxLinks(linksData)
end
end
-- Generate the start box html.
local data = p.makeStartBoxData(args, env, links)
if type(data) == 'table' then
return p.renderStartBox(data)
else
-- User specified no heading.
local subjectSpace = env.subjectSpace
if not subjectSpace then
end
local data = {}