Difference between revisions of "Module:Documentation"

Jump to navigation Jump to search
need to check type as well
en>Mr. Stradivarius
(control for blank values of linksData)
en>Mr. Stradivarius
(need to check type as well)
Line 358: Line 358:
-- No need to include the links if the documentation is on the template page itself.
-- No need to include the links if the documentation is on the template page itself.
local linksData = p.makeStartBoxLinksData(args, env)
local linksData = p.makeStartBoxLinksData(args, env)
if linksData then
if type(linksData) == 'table' then
links = p.renderStartBoxLinks(linksData)
links = p.renderStartBoxLinks(linksData)
else
-- linksData is nil or an error message.
return linksData
end
end
end
end
Anonymous user

Navigation menu