Changes
more comment tweaks
function p.protectionTemplate(env)
-- Generates the padlock icon in the top right.
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- Messages:
-- 'protection-template' --> 'pp-template'
-- 'protection-template-args' --> {docusage = 'yes'}
local title = env.title
local protectionTemplate = message('protection-template')
function p._startBox(args, env)
-- Generate [[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view][edit][history][purge] or [create] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]]
local links
local content = args.content
function p.makeStartBoxLinksData(args, env)
--[[
-- Does initial processing of data to make the [view] [edit] [history] [purge] links.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'view-link-display' --> 'view'
-- 'edit-link-display' --> 'edit'
-- 'history-link-display' --> 'history'
-- 'purge-link-display' --> 'purge'
-- 'file-docpage-preload' --> 'Template:Documentation/preload-filespace'
-- 'docpage-preload' --> 'Template:Documentation/preload'
-- 'create-link-display' --> 'create'
--]]
local data = {}
-- Get title objects.
function p.renderStartBoxLinks(data)
-- Render [[ -- Generates the [view][edit][history][purge] or [create] linksfrom the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]]
local ret
local docTitle = data.docTitle