Editing Module:Collapsible list
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
local p = {} | local p = {} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
local function getListItem( data ) | local function getListItem( data ) | ||
Line 79: | Line 64: | ||
local div2style = formatAttributes( | local div2style = formatAttributes( | ||
'style', | 'style', | ||
− | 'font-size: 105% | + | 'font-size: 105%;', |
args.title_style, | args.title_style, | ||
− | args.titlestyle | + | args.titlestyle, |
+ | not ( args.title_style or args.titlestyle ) and 'background: transparent; text-align: left;' | ||
) | ) | ||
local title = args.title or 'List' | local title = args.title or 'List' | ||
Line 98: | Line 84: | ||
'<div%s%s>\n<div%s%s>%s</div>\n<ul%s%s>%s</ul>\n</div>', | '<div%s%s>\n<div%s%s>%s</div>\n<ul%s%s>%s</ul>\n</div>', | ||
div1class, div1style, div2class, div2style, title, ulclass, ulstyle, listItems | div1class, div1style, div2class, div2style, title, ulclass, ulstyle, listItems | ||
− | + | ) | |
end | end | ||