Jump to content

ଛାଞ୍ଚ:Background color/doc

ଉଇକିପିଡ଼ିଆ‌ରୁ


This template can be used to create a background color for a span of text.

{{bg|t=<text>|c=<color>}}

Alternatively, the attributes can be unnamed:

{{bg|<text>|<color>}}

Web colors provides a list of colors which can be used. Simple colors, like black, blue, red, green, etc. can just be spelled out. Alternatively, colors can be specified using either RGB or hex notation.

{{Background color|red|Hello, world!}} results in Hello, world!
{{Background color|#00F000|Hello, world!}} results in Hello, world!