Module:Documentation: Difference between revisions
en>DannyS712 remove unneeded return variables (if this breaks anything feel free to revert without discussing with me first) |
m 1 revision imported: box update |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 353: | Line 353: | ||
-- | -- | ||
-- Messages: | -- Messages: | ||
-- 'sandbox-notice-image' --> ' | -- 'sandbox-notice-image' --> 'none' | ||
-- '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).' | ||
| Line 379: | Line 379: | ||
-- Get the text. We start with the opening blurb, which is something like | -- Get the text. We start with the opening blurb, which is something like | ||
-- "This is the template sandbox for [[Template:Foo]] (diff)." | -- "This is the template sandbox for [[Template:Foo]] (diff)." | ||
local text = '' | local text = '__EXPECTUNUSEDTEMPLATE__' | ||
local pagetype, sandboxCat | local pagetype, sandboxCat | ||
if subjectSpace == 10 then | if subjectSpace == 10 then | ||
| Line 567: | Line 567: | ||
-- | -- | ||
-- Messages: | -- Messages: | ||
-- 'documentation-icon-wikitext' --> ' | -- 'documentation-icon-wikitext' --> 'none' | ||
-- 'template-namespace-heading' --> 'Template documentation' | -- 'template-namespace-heading' --> 'Template documentation' | ||
-- 'module-namespace-heading' --> 'Module documentation' | -- 'module-namespace-heading' --> 'Module documentation' | ||
| Line 755: | Line 755: | ||
-- 'history-link-display' --> 'history' | -- 'history-link-display' --> 'history' | ||
-- 'transcluded-from-blurb' --> | -- 'transcluded-from-blurb' --> | ||
-- 'The above | -- 'The above documentation | ||
-- is | -- is 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 Scribunto module.' | ||
--]=] | --]=] | ||
local docTitle = env.docTitle | local docTitle = env.docTitle | ||
| Line 812: | Line 812: | ||
-- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' | -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' | ||
-- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' | -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' | ||
-- 'experiment-blurb-module' --> 'Editors can experiment in this module's | -- 'experiment-blurb-module' --> 'Editors can experiment in this module's sandbox and testcase pages.' | ||
-- 'experiment-blurb-template' --> 'Editors can experiment in this template's | -- 'experiment-blurb-template' --> 'Editors can experiment in this template's sandbox and testcase pages.' | ||
--]] | --]] | ||
local subjectSpace = env.subjectSpace | local subjectSpace = env.subjectSpace | ||