« Modèle:Infobox/Meter » : différence entre les versions
Aller à la navigation
Aller à la recherche
FRInki>Trig Jegman mAucun résumé des modifications |
m (1 version importée) |
(Aucune différence)
|
Dernière version du 13 décembre 2023 à 20:18
Displays a "progress bar" style meter for an infobox. This template is a proxy that pre-calculates parameters for Infobox/MeterEx.
Parameters
value |
Unnamed. | The numeric value of the meter. |
max |
Unnamed, optional. | The numeric maximum value of the meter. The default value is 100. |
contents |
Optional. | Content to appear inside the meter. Belongs to the outermost element, overlapping the bar graphic. If absent, the text "value / max " will be used.
|
color |
Optional. | An RGB triplet for the base color to use for formatting. The default value is Erreur de script : le module « SiteColor » n’existe pas., 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}} |123 |210 }}
Output
<templatestyles src="Infobox/MeterEx/styles.css" /><div style="display: inline-block; width: 100%; height: 20px; border: 1px solid rgba(Erreur de script : le module « SiteColor » n’existe pas., 0.5); background-color: #cccccc; border-radius: 5px; overflow: hidden; position: relative; width: 250px;"><div style="display: table-cell; width: 58.571428571429%; height: 100%; background-color: rgb(Erreur de script : le module « SiteColor » n’existe pas.); background-repeat: repeat-x; position: absolute;">
123 / 210