Module:Documentation: Difference between revisions

make it possible to get environment data when calling just the start box, just the content, or just the end box functions from #invoke
m (fix comment for the message function)
(make it possible to get environment data when calling just the start box, just the content, or just the end box functions from #invoke)
Line 415:
-- which generate the box HTML.
--]]
env = env or p.getEnvironment(args)
local links
local content = args.content
Line 599 ⟶ 600:
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
local content = args.content
Line 631 ⟶ 633:
-- Get environment data.
env = env or p.getEnvironment(args)
local subjectSpace = env.subjectSpace
local docTitle = env.docTitle
Anonymous user