Module:Documentation: Difference between revisions

Jump to navigation Jump to search
m>Mr. Stradivarius
add comments for the rest of the functions
m>Mr. Stradivarius
change makeEndBoxExperimentBlurb to makeExperimentBlurb - simpler
Line 669: Line 669:
if subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 then
if subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 then
-- We are in the user, module or template namespaces.  
-- We are in the user, module or template namespaces.  
text = text .. p.makeEndBoxExperimentBlurb(args, env)
text = text .. p.makeExperimentBlurb(args, env)
text = text .. '<br />'
text = text .. '<br />'
-- Show the categories text, but not if we have the content on the template page itself,
-- Show the categories text, but not if we have the content on the template page itself,
Line 739: Line 739:
end
end


function p.makeEndBoxExperimentBlurb(args, env)
function p.makeExperimentBlurb(args, env)
--[[
--[[
-- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages."
-- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages."