This template merges Template:User line , Template:Userboxbreak and Template:Userboxgroup , with some upgrades.
In absence of given parameters, this template renders a simple Template:User line ; otherwise it works as a more versatile and customizable version of Template:Userboxgroup .
The optional sub-parameters |Background=, |Color= and |Main=Y allow new additional layouts.
|title= (setting |title=hide will show an empty title box; whereas |title=none will make the title box disappear too)
|collapsed=[ a]
|content= (alias unnamed parameter |1=)
|background= background color[ b]
|background1= for the title box only[ c]
|background2= for the content box only[ c]
|color= font color[ b]
|main=[ b] [ a]
Notes
^ a b If |main=Y the title becomes bigger, non-collapsible, and a black border is added.
^ a b c If |main=Y the default colors are |background1=#339 , |background2=#88C and |color=White , otherwise they are |background1=#DDF , |background2=#FFF and |color=Black .
^ a b |background1= and |background2= both overwrite the overall |background=.
MAIN Group → NO title
Group → NO title
MAIN Group → title=Example
Group → title=Example
MAIN Group → title=hide
Group → title=hide
MAIN Group → title=none
Group → title=none
MAIN Break → NO title, NO content
Break → NO title, NO content
MAIN Group → title=Example, NO content
Group → title=Example, NO content
MAIN Special-Break → title=hide, NO content
Special-Break → title=hide, NO content
MAIN Special-Break → title=none, NO content
Special-Break → title=none, NO content
NB: Invisible line.
Background and colors [ edit ]
MAIN Group → NO title; background
Group → NO title; background, background2, color
{{ubx-section |background=#FCC|background2=#FEE|color=#B30|Content}}
MAIN Group → title=Example, background1
{{ubx-section |main=Y|title=Example|background1=black|Content}}
Group → title=Example, background1
MAIN Group → title=Example, background2
{{ubx-section |main=Y|title=Example|background2=#BCD|Content}}
Group → title=Example, background2
MAIN Break → NO title, NO content; background
Break → NO title, NO content; background
NB: background parameters have no effect on simple break lines.