Template:Badge

From Roses, Tulips, & Liberty


Usage

This template creates a Bootstrap-style badge with customizable text and colors.

Syntax

{{Badge
|text=Example Text
|textColor=#ffffff
|bgColor=#007bff
}}

Parameters

  • text (optional) - The text to display on the badge.
  • textColor (optional) - The color of the text on the badge. Defaults to white.
  • bgColor (optional) - The background color of the badge. Defaults to gray.

Example

{{Badge|text=New|textColor=white|bgColor=green}}