Module:Documentation and Module:Documentation/sandbox: Difference between pages
(Difference between pages)
Content deleted Content added
remove unneeded return variables (if this breaks anything feel free to revert without discussing with me first) |
simp |
||
Line 404: | Line 404: | ||
local testcasesTitle = env.testcasesTitle |
local testcasesTitle = env.testcasesTitle |
||
if testcasesTitle and testcasesTitle.exists then |
if testcasesTitle and testcasesTitle.exists then |
||
⚫ | |||
⚫ | |||
if testcasesTitle.contentModel == "Scribunto" then |
if testcasesTitle.contentModel == "Scribunto" then |
||
⚫ | |||
local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') |
local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') |
||
⚫ | |||
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) |
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) |
||
text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) |
text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) |
||
else |
else |
||
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') |
|||
local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) |
|||
text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) |
text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) |
||
end |
end |
||
Line 511: | Line 509: | ||
return nil |
return nil |
||
end |
end |
||
if docTitle.isRedirect then |
if docTitle and docTitle.isRedirect then |
||
docTitle = docTitle.redirectTarget |
docTitle = docTitle.redirectTarget |
||
end |
end |