Content added Content deleted
(refresh latest changes on WP) |
(add a link to run the test cases from the sandbox page) |
||
Line 336: | Line 336: | ||
-- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' |
-- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' |
||
-- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' |
-- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' |
||
-- 'sandbox-notice-pagetype-template' --> '[[ |
-- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' |
||
-- 'sandbox-notice-pagetype-module' --> '[[ |
-- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' |
||
-- 'sandbox-notice-pagetype-other' --> 'sandbox page' |
-- 'sandbox-notice-pagetype-other' --> 'sandbox page' |
||
-- 'sandbox-notice-compare-link-display' --> 'diff' |
-- 'sandbox-notice-compare-link-display' --> 'diff' |
||
Line 380: | Line 380: | ||
local testcasesTitle = env.testcasesTitle |
local testcasesTitle = env.testcasesTitle |
||
if testcasesTitle and testcasesTitle.exists then |
if testcasesTitle and testcasesTitle.exists then |
||
if testcasesTitle.namespace == mw.site.namespaces.Module 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 testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) |
|||
text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) |
|||
else |
|||
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') |
|||
local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) |
|||
text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) |
|||
end |
|||
end |
end |
||
-- Add the sandbox to the sandbox category. |
-- Add the sandbox to the sandbox category. |
||
Line 738: | Line 746: | ||
-- 'history-link-display' --> 'history' |
-- 'history-link-display' --> 'history' |
||
-- 'transcluded-from-blurb' --> |
-- 'transcluded-from-blurb' --> |
||
-- 'The above [[ |
-- 'The above [[Wikipedia:Template documentation|documentation]] |
||
-- is [[ |
-- is [[Wikipedia:Transclusion|transcluded]] from $1.' |
||
-- 'module-preload' --> 'Template:Documentation/preload-module-doc' |
-- 'module-preload' --> 'Template:Documentation/preload-module-doc' |
||
-- 'create-link-display' --> 'create' |
-- 'create-link-display' --> 'create' |
||
-- 'create-module-doc-blurb' --> |
-- 'create-module-doc-blurb' --> |
||
-- 'You might want to $1 a documentation page for this [[ |
-- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' |
||
--]=] |
--]=] |
||
local docTitle = env.docTitle |
local docTitle = env.docTitle |
||
Line 928: | Line 936: | ||
-- Messages: |
-- Messages: |
||
-- 'print-link-display' --> '/Print' |
-- 'print-link-display' --> '/Print' |
||
-- 'print-blurb' --> 'A [[ |
-- 'print-blurb' --> 'A [[Help:Books/for experts#Improving the book layout|print version]]' |
||
-- .. ' of this template exists at $1.' |
-- .. ' of this template exists at $1.' |
||
-- .. ' If you make a change to this template, please update the print version as well.' |
-- .. ' If you make a change to this template, please update the print version as well.' |
||
Line 963: | Line 971: | ||
-- 'doc-subpage' --> 'doc' |
-- 'doc-subpage' --> 'doc' |
||
-- 'testcases-subpage' --> 'testcases' |
-- 'testcases-subpage' --> 'testcases' |
||
-- 'strange-usage-category' --> ' |
-- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' |
||
-- |
-- |
||
-- /testcases pages in the module namespace are not categorised, as they may have |
-- /testcases pages in the module namespace are not categorised, as they may have |