Manual:Extension/StatusBadges: Difference between revisions

No edit summary
Tag: 2017 source edit
No edit summary
Line 12: Line 12:
# Select "light badge" if you want to show a badge with a light background color (optional).
# Select "light badge" if you want to show a badge with a light background color (optional).
To quickly add another status badge, you can click on the inserted status badge, copy it (Ctrl+c) and paste it somewhere else on the page. Click the duplicated badge and then <code>click</code>  to change its text and color.
To quickly add another status badge, you can click on the inserted status badge, copy it (Ctrl+c) and paste it somewhere else on the page. Click the duplicated badge and then <code>click</code>  to change its text and color.
== Customizing ==
If you want to use a larger font-size in your wiki for badges, you can add the following rule to the page MediaWiki:Common.css (admin rights required):<syntaxhighlight lang="css">
/*status badge */
.status-badge {
    font-size:0.9em; /*default-size:0.75em */
}
</syntaxhighlight>


== Accessibility ==
== Accessibility ==

Revision as of 10:17, 20 July 2026

PDF exclude - start
PDF exclude - end

A status badge is specially formatted colored text that indicates the status of an information unit.

Adding a status badge

Status badges are available as a Content Droplet.

  1. Place your cursor where you want the status badge to appear.
  2. Open the Content Droplets menuContent Droplet menu item of Visual Editor.
  3. Search for "Status Badge".
  4. Insert the Content Droplet.
    Inspector for the Content Droplet
    Content Droplet "Status badge"
  5. Add your status message.
  6. Select a color.
  7. Select "light badge" if you want to show a badge with a light background color (optional).

To quickly add another status badge, you can click on the inserted status badge, copy it (Ctrl+c) and paste it somewhere else on the page. Click the duplicated badge and then click to change its text and color.

Customizing

If you want to use a larger font-size in your wiki for badges, you can add the following rule to the page MediaWiki:Common.css (admin rights required):

/*status badge */
.status-badge {
    font-size:0.9em; /*default-size:0.75em */
}

Accessibility

Use of color: Make sure to use label text for a status badge that clearly indicates the status. Do not rely on the color alone for conveying the meaning. For example, negative numbers should have a qualifier (-) instead of just being formatted with a red background, for example. WCAG #use-of-color

Screenreaders will read the badge as a combination of badge type ("Status"), color (e.g. "green") and label text: "Status: green, complete".



PDF exclude - start

To submit feedback about this documentation, visit our community forum.

PDF exclude - end