Module:Collapsible list: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (1 revision imported) |
template>Dmehus m (Copied from w:Module:Collapsible list/sandbox. (Adding interwiki link for Void.)) |
||
Line 1: | Line 1: | ||
-- This module implements {{collapsible list}} |
-- This module implements {{collapsible list}} |
||
local p = {} |
local p = {} |
||
Line 69: | Line 69: | ||
-- Get class, style and title data. |
-- Get class, style and title data. |
||
local div1class = formatAttributes( 'class', ' |
local div1class = formatAttributes( 'class', 'mw-collapsible', not args.expand and 'mw-collapsed' ) |
||
local div1style = formatAttributes( |
local div1style = formatAttributes( |
||
'style', |
'style', |
||
'text-align: center; font-size: 95%;', |
|||
args.frame_style, |
args.frame_style, |
||
args.framestyle |
args.framestyle |
||
not ( args.frame_style or args.framestyle ) and 'border: none; padding: 0;' |
|||
) |
) |
||
local div2class = |
local div2class = '' -- no classes, just for the sake of consistency |
||
local div2style = formatAttributes( |
local div2style = formatAttributes( |
||
'style', |
'style', |
||
' |
'line-height: 1.6em; font-weight: bold;', |
||
'font-size: 105%;', |
|||
'text-align: left;', |
|||
args.title_style, |
args.title_style, |
||
args.titlestyle |
args.titlestyle |
||
) |
) |
||
local title = args.title or 'List' |
local title = args.title or 'List' |
||
local ulclass = formatAttributes( 'class', ' |
local ulclass = formatAttributes( 'class', 'mw-collapsible-content', args.hlist and 'hlist' ) |
||
local ulstyle = formatAttributes( |
local ulstyle = formatAttributes( |
||
'style', |
'style', |