Template:Bg
This template can be used to apply color to table rows and/or cells.
Parameters
1
- The background color (required).2
- The background color in dark mode (optional). Uses parameter1
color if unset.color
- The text color (optional). Inherits the normal table text color if unset.darkcolor
- The text color in dark mode when parameter2
is set (optional).
Usage
For example, using:
{| class="wikitable" ! colspan="2" | Table |- | Unshaded | {{bg|#ffcfcf|#600}} | Red |- | {{bg|#dfdfdf|#111}} | Shaded | {{bg|#cfcfff|#006}} | Blue |}
... would result in:
Table | |
---|---|
Unshaded | Red |
Shaded | Blue |