Module:Documentation: Difference between revisions

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