Badge example 1

From Bootstrap for MediaWiki
Component
Name Badge
Description Badge scaling to match the size of the immediate parent element by using relative font sizing and em units
Provider Skin
Reference getbootstrap.com - badge
Styling For all possible color styles and corresponding examples, see colors.
Updated for Bootstrap 5. Parts of this page's Bootstrap 4 code no longer work with Bootstrap 5. Wikis moving to Bootstrap 5, for example with Chameleon 6, need to update such content too. See the Bootstrap 4 version of this page.

Result

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New
Example heading New

Code

=Example heading <span class="badge text-bg-secondary">New</span>=
==Example heading <span class="badge text-bg-secondary">New</span>==
===Example heading <span class="badge text-bg-secondary">New</span>===
====Example heading <span class="badge text-bg-secondary">New</span>====
=====Example heading <span class="badge text-bg-secondary">New</span>=====
======Example heading <span class="badge text-bg-secondary">New</span>======