Jump to content

Module:Documentation: Difference between revisions

need to check type as well
m>Mr. Stradivarius
(control for blank values of linksData)
m>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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.