Module:Documentation: Difference between revisions

m
Fix logic error
m (Make edit links behavior consistent with documentation: If both 1= and content= are specified, display links to 1, and content from content=.)
m (Fix logic error)
Line 445: Line 445:
local links
local links
local content = args.content
local content = args.content
if not content and not args[1] then
if not content or args[1] then
-- 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)
Anonymous user