Editing Module:Documentation

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. Read the Privacy Policy to learn what information we collect about you and how we use it.

If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 473: Line 473:
-- 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
-- Generate the start box html.
-- Generate the start box html.
local data = p.makeStartBoxData(args, env, links)
local data = p.makeStartBoxData(args, env, links)
if data then
if type(data) == 'table' then
return p.renderStartBox(data)
return p.renderStartBox(data)
elseif type(data) == 'string' then
-- data is an error message.
return data
else
else
-- User specified no heading.
-- User specified no heading.
Line 587: Line 593:
local subjectSpace = env.subjectSpace
local subjectSpace = env.subjectSpace
if not subjectSpace then
if not subjectSpace then
-- Default to an "other namespaces" namespace, so that we get at least some output
return nil
-- if an error occurs.
subjectSpace = 2
end
end
local data = {}
local data = {}
Please note that all contributions to Nonbinary Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see Nonbinary Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: