편집 요약 없음
편집 요약 없음 |
편집 요약 없음 |
||
376번째 줄: | 376번째 줄: | ||
local testcasesTitle = env.testcasesTitle | local testcasesTitle = env.testcasesTitle | ||
if testcasesTitle and testcasesTitle.exists then | if testcasesTitle and testcasesTitle.exists then | ||
if testcasesTitle. | if testcasesTitle.contentModel == "Scribunto" then | ||
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') | local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') | ||
local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') | local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') | ||
420번째 줄: | 420번째 줄: | ||
-- no move protection at all. | -- no move protection at all. | ||
mProtectionBanner = require('Module:Protection banner') | mProtectionBanner = require('Module:Protection banner') | ||
return mProtectionBanner{action = '이동', '크기 = 작게'} | return mProtectionBanner._main{action = '이동', '크기 = 작게'} | ||
else | else | ||
return nil | return nil | ||
483번째 줄: | 483번째 줄: | ||
if not title or not docTitle then | if not title or not docTitle then | ||
return nil | return nil | ||
end | |||
if docTitle.isRedirect then | |||
docTitle = docTitle.redirectTarget | |||
end | end | ||
712번째 줄: | 715번째 줄: | ||
fmargs.image = 'none' | fmargs.image = 'none' | ||
fmargs.style = message('fmbox-style') -- Sets 'background-color: #ecfcf4' | fmargs.style = message('fmbox-style') -- Sets 'background-color: #ecfcf4' | ||
fmargs.textstyle = message('fmbox-textstyle') -- 'font-style: italic;' | |||
-- Assemble the fmbox text field. | -- Assemble the fmbox text field. | ||
869번째 줄: | 873번째 줄: | ||
local testcasesEditLink = makeUrlLink(testcasesEditUrl, testcasesEditDisplay) | local testcasesEditLink = makeUrlLink(testcasesEditUrl, testcasesEditDisplay) | ||
-- for Modules, add testcases run link if exists | -- for Modules, add testcases run link if exists | ||
if | if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then | ||
local testcasesRunLinkDisplay = message('testcases-run-link-display') | local testcasesRunLinkDisplay = message('testcases-run-link-display') | ||
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) | local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) |