Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Documentation: Difference between revisions

Content added Content deleted
(control for blank values of linksData)
(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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.