Module:Message box/sandbox: Difference between revisions

Content deleted Content added
add support for a single custom tstyles sheet
self.templatestyles sometimes doesn't exist :)
Line 491:
-- 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{
name = 'templatestyles',
args name = { src = self.'templatestyles }',
name args = '{ src = self.templatestyles' },
})
end
 
-- Create the box table.