Template:CompositionBar

From EarthMC
Revision as of 05:12, 24 July 2025 by sayerleft (talk | contribs)
Jump to navigation Jump to search

This template creates a single horizontal bar that visually represents a percentage or value relative to a total, similar to how the Wikipedia `Template:Composition_bar` can be used for a single metric.

Usage

To use this template, copy the following code to a page named `Template:CompositionBar` (or a similar name of your choice):

```wiki {{#tag:syntaxhighlight|

 <div class="composition-bar-fill" style="
   width:Expression error: Unrecognized punctuation character "{".%;
   background-color:#4CAF50;
   color:white;
 ">
   
     Expression error: Unrecognized punctuation character "{".%
   


Example: