Template:Bgcolor/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This is a documentation subpage for Template:Bgcolor.
It contains usage information, categories and other content or metadata that is not part of the original template.
This template uses TemplateStyles:

Usage

Generates a text with a specific background colour.

Note

Uses the <span> html tag with inline CSS.

Syntax

{{bgcolor|{{{1}}}|{{{2}}}}}

{{bgcolor|background colour|text / content}}

Parameters

1 background colour
2 Text or content
text-color optional text colour; default is black
noinvert optional to disable colour inversion in dark mode GUI skin

Examples

  • {{bgcolor|red|text}} rendered :  text 
  • {{bgcolor|#ffff00|text}} rendered :  text 

See also