Difference between revisions of "Module:Documentation"

Jump to navigation Jump to search
175 bytes added ,  13:35, 31 January 2014
use the module preload in the start box create link if we're in the module namespace
>Mr. Stradivarius
(use better messages for the sandbox notice when in the module namespace, and only show the diff link when both pages exist)
>Mr. Stradivarius
(use the module preload in the start box create link if we're in the module namespace)
Line 463: Line 463:
-- 'purge-link-display' --> 'purge'
-- 'purge-link-display' --> 'purge'
-- 'file-docpage-preload' --> 'Template:Documentation/preload-filespace'
-- 'file-docpage-preload' --> 'Template:Documentation/preload-filespace'
-- 'module-preload' --> 'Template:Documentation/preload-module-doc'
-- 'docpage-preload' --> 'Template:Documentation/preload'
-- 'docpage-preload' --> 'Template:Documentation/preload'
-- 'create-link-display' --> 'create'
-- 'create-link-display' --> 'create'
--]]
--]]
local data = {}
local subjectSpace = env.subjectSpace
-- Get title objects.
local title = env.title
local title = env.title
local docTitle = env.docTitle
local docTitle = env.docTitle
Line 473: Line 473:
return nil
return nil
end
end
local data = {}
data.title = title
data.title = title
data.docTitle = docTitle
data.docTitle = docTitle
Line 483: Line 485:
local preload = args.preload
local preload = args.preload
if not preload then
if not preload then
if env.subjectSpace == 6 then -- File namespace
if subjectSpace == 6 then -- File namespace
preload = message('file-docpage-preload')
preload = message('file-docpage-preload')
elseif subjectSpace == 828 then -- Module namespace
preload = message('module-preload')
else
else
preload = message('docpage-preload')
preload = message('docpage-preload')
Anonymous user

Navigation menu