Module:Documentation: Difference between revisions

m
1 revision imported
(add a comment to make it obvious)
m (1 revision imported)
 
(4 intermediate revisions by 4 users not shown)
Line 363:
-- 'sandbox-notice-testcases-link-display' --> 'test cases'
-- 'sandbox-category' --> 'Template sandboxes'
-- 'module-sandbox-category' --> 'Module sandboxes'
-- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace'
--]=]
local title = env.title
Line 378 ⟶ 380:
-- "This is the template sandbox for [[Template:Foo]] (diff)."
local text = ''
local pagetype, sandboxCat
if subjectSpace == 10 then
pagetype = message('sandbox-notice-pagetype-template')
sandboxCat = message('sandbox-category')
elseif subjectSpace == 828 then
pagetype = message('sandbox-notice-pagetype-module')
sandboxCat = message('module-sandbox-category')
else
pagetype = message('sandbox-notice-pagetype-other')
sandboxCat = message('other-sandbox-category')
end
local templateLink = makeWikilink(templateTitle.prefixedText)
Line 411 ⟶ 416:
end
end
-- Add the sandbox to the sandbox category.
omargs.text = text .. makeCategoryLink(message('sandbox-category')sandboxCat)
 
-- 'documentation-clear'
Line 760 ⟶ 766:
return nil
end
local ret
if docTitle.exists then
-- /doc exists; link to it.
Line 768 ⟶ 773:
local historyDisplay = message('history-link-display')
local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay)
ret =return message('transcluded-from-blurb', {docLink})
.. ' '
.. makeToolbar(editLink, historyLink)
Line 777 ⟶ 782:
local createDisplay = message('create-link-display')
local createLink = makeUrlLink(createUrl, createDisplay)
ret =return message('create-module-doc-blurb', {createLink})
.. '<br />'
end
return ret
end
 
Line 963 ⟶ 967:
end
local subpage = title.subpageText
local ret = ''
if message('display-strange-usage-category', nil, 'boolean')
and (
Line 970 ⟶ 973:
)
then
ret = ret ..return makeCategoryLink(message('strange-usage-category'))
end
return ret''
end
 
Bureaucrats, rtl-contributors, Administrators
1,655

edits