Module:Message box/sandbox: Difference between revisions

Content deleted Content added
remove delta
add support for a single custom tstyles sheet
Line 349:
self.imageRight = imageRight
end
-- set templatestyles
self.templatestyles = args.templatestyles
end
 
Line 483 ⟶ 486:
))
end
-- 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()
root:wikitext(frame:extensionTag{
name = 'templatestyles',
args = { src = self.templatestyles },
})
 
-- Create the box table.