Module:Documentation: Difference between revisions

Add configurable css from config, so that it can be removed from common.css. Class maintained for compatibility on other wikis and with scripts. See Special:Permalink/906970618#Moving CSS
m (127 revisions imported: import wikisource templates)
(Add configurable css from config, so that it can be removed from common.css. Class maintained for compatibility on other wikis and with scripts. See Special:Permalink/906970618#Moving CSS)
Line 136:
:attr('id', message('main-div-id'))
:addClass(message('main-div-classes'))
:css(message('main-div-css', nil, 'table'))
:newline()
:wikitext(p._startBox(args, env))
Line 376 ⟶ 377:
local testcasesTitle = env.testcasesTitle
if testcasesTitle and testcasesTitle.exists then
if testcasesTitle.namespacecontentModel == mw.site.namespaces.Module.id"Scribunto" then
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display')
local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display')
Line 483 ⟶ 484:
if not title or not docTitle then
return nil
end
if docTitle.isRedirect then
docTitle = docTitle.redirectTarget
end
 
Line 870 ⟶ 874:
local testcasesEditLink = makeUrlLink(testcasesEditUrl, testcasesEditDisplay)
-- for Modules, add testcases run link if exists
if subjectSpacetestcasesTitle.contentModel == 828"Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then
local testcasesRunLinkDisplay = message('testcases-run-link-display')
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay)
Anonymous user