Module:Collapsible list: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (preserve the color for now) |
(preserve the old classes in order to preserve styling for now.) |
||
Line 54: | Line 54: | ||
-- Get class, style and title data. |
-- Get class, style and title data. |
||
local div1class = formatAttributes( 'class', 'mw-collapsible', not args.expand and 'mw-collapsed' ) |
local div1class = formatAttributes( 'class', 'NavFrame mw-collapsible', not args.expand and 'mw-collapsed' ) |
||
local div1style = formatAttributes( |
local div1style = formatAttributes( |
||
'style', |
'style', |
||
Line 61: | Line 61: | ||
not ( args.frame_style or args.framestyle ) and 'border: none; padding: 0;' |
not ( args.frame_style or args.framestyle ) and 'border: none; padding: 0;' |
||
) |
) |
||
local div2class = formatAttributes( 'class', '' ) |
local div2class = formatAttributes( 'class', 'NavHead' ) |
||
local div2style = formatAttributes( |
local div2style = formatAttributes( |
||
'style', |
'style', |
||
'font-size: 105%;', |
'font-size: 105%;', |
||
'font-weight: bold;', |
|||
'background-color: #ccf;', |
|||
args.title_style, |
args.title_style, |
||
args.titlestyle, |
args.titlestyle, |
||
Line 72: | Line 70: | ||
) |
) |
||
local title = args.title or 'List' |
local title = args.title or 'List' |
||
local ulclass = formatAttributes( 'class', 'mw-collapsible-content', args.hlist and 'hlist' ) |
local ulclass = formatAttributes( 'class', 'NavContent mw-collapsible-content', args.hlist and 'hlist' ) |
||
local ulstyle = formatAttributes( |
local ulstyle = formatAttributes( |
||
'style', |
'style', |