Plantilla:Infobox/Meter

De Inkipedia
< Plantilla:Infobox
Revisión del 23:46 20 ago 2017 de en>GuyPerfect (Adding contents parameter, making stripe opacity dynamic, adjusting meter height)

InfoboxMeter.svg InfoboxMeter.svg InfoboxMeter.svg

Displays a "progress bar" style meter for an infobox.

Parameters

percent Unnamed. The percentage, from 0 to 100, of the meter to be filled up.
contents Unnamed, optional. Content to appear inside the meter. Belongs to the outermost element, overlapping the bar graphic. Content is centered by default.
color Optional. An RGB triplet for the base color to use for formatting. The default value is 192, 192, 192, defined in SiteColor as "Generic".
style Optional. A list of CSS values to apply to the outermost container. By default, the meter takes up 100% of the width of its parent container.

Example

Markup

{{Infobox/Meter
|style = width: 250px;
|color = {{SiteColor|Splatoon 2}}
|60
|'''Almost there...'''
}}

Output

Almost there...