Difference between revisions of "Module:Documentation"

111 bytes added ,  09:32, 31 January 2014
make it possible to get environment data when calling just the start box, just the content, or just the end box functions from #invoke
>Mr. Stradivarius
m (fix comment for the message function)
>Mr. Stradivarius
(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: Line 415:
-- which generate the box HTML.
-- which generate the box HTML.
--]]
--]]
env = env or p.getEnvironment(args)
local links
local links
local content = args.content
local content = args.content
Line 599: Line 600:
-- @args - a table of arguments passed by the user
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
local docTitle = env.docTitle
local content = args.content
local content = args.content
Line 631: Line 633:
-- Get environment data.
-- Get environment data.
env = env or p.getEnvironment(args)
local subjectSpace = env.subjectSpace
local subjectSpace = env.subjectSpace
local docTitle = env.docTitle
local docTitle = env.docTitle
Anonymous user