Module:Message box/sandbox: Difference between revisions

Content deleted Content added
rv, can be resurrected if needed
let's try this
Line 303:
end
if date then
self.date = string.format(" <span class='date-container'>''<i>(<span class='date'>%s</span>)''</i></span>", date)
end
self.info = args.info
Line 352:
-- set templatestyles
self.templatestyles = args.templatestyles
self.base_templatestyles = cfg.templatestyles
end
 
Line 486 ⟶ 487:
))
end
 
local frame = mw.getCurrentFrame() -- we'll need this unconditionally for the TODO
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
-- TODO: Add each template's stylesheet, waiting on [[MediaWiki talk:Common.css/to do]]
local frame = mw.getCurrentFrame() -- we'll need this unconditionally for the TODO
if self.templatestyles then
root:wikitext(frame:extensionTag{