Module:Message box: Difference between revisions
Jump to navigation
Jump to search
no edit summary
imported>Pingu No edit summary |
imported>Compooper No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 217: | Line 217: | ||
local sect | local sect | ||
if args.sect == '' then | if args.sect == '' then | ||
sect = 'This ' .. (cfg.sectionDefault or 'page') | sect = '<strong>This</strong> ' .. (cfg.sectionDefault or 'page') | ||
elseif type(args.sect) == 'string' then | elseif type(args.sect) == 'string' then | ||
sect = 'This ' .. args.sect | sect = '<strong>This</strong> ' .. args.sect | ||
end | end | ||
local issue = args.issue | local issue = args.issue | ||
| Line 476: | Line 476: | ||
mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') | mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') | ||
)) | )) | ||
end | |||
local frame = mw.getCurrentFrame() | |||
root:wikitext(frame:extensionTag{ | |||
name = 'templatestyles', | |||
args = { src = self.base_templatestyles }, | |||
}) | |||
-- Add support for a single custom templatestyles sheet. Undocumented as | |||
-- need should be limited and many templates using mbox are substed; we | |||
-- don't want to spread templatestyles sheets around to arbitrary places | |||
if self.templatestyles then | |||
root:wikitext(frame:extensionTag{ | |||
name = 'templatestyles', | |||
args = { src = self.templatestyles }, | |||
}) | |||
end | end | ||