{{{3}}} {{{4}}} {{{5}}}

Description

A template identical in function to {{Userbox}}, but with two caption cells instead of one.

Usage

The template's parameters are listed below. It is not necessary to name the first five parameters if they are assigned values in order, so template calls may use the shorthand form {{Userbox-2|color1|color2|lcaption|text|rcaption}}.

{{Userbox-2
|color1=
|color2=
|lcaption=
|text=
|rcaption=
|border=
|style=
|style1=
|style2=
|style3=
|headerbackground=
}}

Required parameters

  1. |color1 The color of the outer cells' background and the box border.
  2. |color2 The color of the middle cell's background.
  3. |lcaption The content of the left cell. This is often an image, which will stretch the cell if not constrained to fit within a 45px × 45px space.
  4. |text The content of the middle cell.
  5. |rcaption The content of the right cell. This is subject to identical properties as those in the left cell.

Optional parameters

  1. |border= The box border color, which defaults to color1.
  2. |style= Any additional CSS values to set for the entire box. Do not include quotation marks.
  3. |style1= Any additional CSS for the left cell.
  4. |style2= Any additional CSS for the middle cell.
  5. |style3= Any additional CSS for the right cell.
  6. |headerbackground= Determines whether each cell's background is automatically darkened when viewed on a web browser in dark mode. The default value is 1, which applies dark-mode behavior to the middle cell only. Setting |headerbackground=0 will disable dark-mode behavior, whereas |headerbackground=2 will apply it to all three cells.

Examples

Description Code Result
Implicit parameters
{{Userbox-2|#CCC|#EEE|bl|blah blah blah|ah}}
bl blah blah blah ah
Explicit parameters
{{Userbox-2
|color1=#CCC
|color2=#EEE
|lcaption=bl
|text=blah blah blah
|rcaption=ah}}
bl blah blah blah ah
Different border color
{{Userbox-2|#CCC|#EEE|bl|blah blah blah|ah|border=#F00}}
bl blah blah blah ah
Extra table styling
{{Userbox-2|#CCC|#EEE|bl|blah blah blah|ah|border=#00F|style=border-style:dashed}}
bl blah blah blah ah
Extra cell styling
{{Userbox-2|#CCC|#EEE|bl|blah blah blah|ah|style1=color:#F00|style2=color:#00F|style3=color:#F0F}}
bl blah blah blah ah
Fully preserved in dark mode
{{Userbox-2|#CCC|#EEE|bl|blah blah blah|ah|style1=color:#F00|style2=color:#00F|style3=color:#F0F|headerbackground=0}}
bl blah blah blah ah
Fully reactive to dark mode
{{Userbox-2|#CCC|#EEE|bl|blah blah blah|ah|style1=color:#F00|style2=color:#00F|style3=color:#F0F|headerbackground=2}}
bl blah blah blah ah

See also