Module:Documentation: Difference between revisions

m ...
Add classes
Line 68: Line 68:
local pageType = mw.ustring.lower( args.type or getType( namespace, page ) )
local pageType = mw.ustring.lower( args.type or getType( namespace, page ) )
local body = mw.html.create( 'div' )
local body = mw.html.create( 'div' ):addClass( 'documentation-header' )
body
body
:css{
:css{
Line 171: Line 171:
:wikitext( mw.text.nowiki( '[' ), table.concat( links, ' | ' ), mw.text.nowiki( ']' ) )
:wikitext( mw.text.nowiki( '[' ), table.concat( links, ' | ' ), mw.text.nowiki( ']' ) )
local body = mw.html.create( 'div' )
local body = mw.html.create( 'div' ):addClass( 'documentation' )
body:css{
body:css{
['background-color'] = '#' .. colour,
['background-color'] = '#' .. colour,