10,594
edits
WikiDwarfBOT (talk | contribs) m (→top: clean up, replaced: Wikipedia: → Bharatpedia: (4)) |
No edit summary |
||
Line 842: | Line 842: | ||
-- Make links. | -- Make links. | ||
local sandboxLinks, testcasesLinks | local sandboxLinks, testcasesLinks | ||
local sandboxPage = sandboxTitle.prefixedText | local sandboxPage = sandboxTitle.prefixedText | ||
local sandboxDisplay = message('sandbox-link-display') | local sandboxDisplay = message('sandbox-link-display') | ||
Line 856: | Line 855: | ||
end | end | ||
sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) | sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) | ||
local sandboxPreload | |||
if subjectSpace == 828 then | if subjectSpace == 828 then | ||
sandboxPreload = message('module-sandbox-preload') | sandboxPreload = message('module-sandbox-preload') | ||
Line 910: | Line 908: | ||
end | end | ||
return message(messageName, {sandboxLinks, testcasesLinks}) | return message(messageName, {sandboxLinks, testcasesLinks}) | ||
--[[ | --[[ | ||
-- Generates the text "Please add categories to the /doc subpage." | -- Generates the text "Please add categories to the /doc subpage." | ||
Line 921: | Line 916: | ||
-- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' | -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' | ||
--]] | --]] | ||
--[[ | --[[ | ||
-- Generates the "Subpages of this template" link. | -- Generates the "Subpages of this template" link. | ||
Line 941: | Line 927: | ||
-- 'subpages-link-display' --> 'Subpages of this $1' | -- 'subpages-link-display' --> 'Subpages of this $1' | ||
--]] | --]] | ||
'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', | 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', | ||
message('subpages-link-display', {pagetype}) | message('subpages-link-display', {pagetype}) | ||
--[=[ | --[=[ | ||
-- Generates the blurb displayed when there is a print version of the template available. | -- Generates the blurb displayed when there is a print version of the template available. | ||
Line 975: | Line 943: | ||
-- 'print-category' --> 'Templates with print versions' | -- 'print-category' --> 'Templates with print versions' | ||
--]=] | --]=] | ||
---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ||
-- Tracking categories | -- Tracking categories | ||
---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ||
--[[ | --[[ | ||
-- Check if {{documentation}} is transcluded on a /doc or /testcases page. | -- Check if {{documentation}} is transcluded on a /doc or /testcases page. | ||
Line 1,009: | Line 960: | ||
-- {{documentation}} transcluded automatically. | -- {{documentation}} transcluded automatically. | ||
--]] | --]] | ||
and ( | and ( | ||
subpage == message('doc-subpage') | subpage == message('doc-subpage') | ||
or subjectSpace ~= 828 and subpage == message('testcases-subpage') | or subjectSpace ~= 828 and subpage == message('testcases-subpage') | ||
) | ) | ||