Modèle:Rating/doc
Template for displaying an image-based (star) rating system. Supports scales with up to 10 images (and half-steps).
Usage[modifier le wikicode]
{{Rating|3|10}}
Parameters[modifier le wikicode]
The actual rating. For example, for a rating of 3 on a scale of 6, this would be "3". Any number with decimal places will result in a "half" rating being displayed. Cannot exceed <unnamed 2
.
The rating scale. For example, for a rating of 3 on a scale of 6, this would be "6". Cannot exceed 10.
Name of icon (without "File:" prefix) which represents the equivalent of a "half" star.
Name of icon (without "File:" prefix) which represents the equivalent of a full star.
Name of icon (without "File:" prefix) which represents the equivalent of an empty star.
Determines size of icons.
<unnamed 1>
/<unnamed 2>
")Tooltip which should be displayed when hovering over the icons.
Examples[modifier le wikicode]
{{Rating|3}}
results in:
{{Rating|2|6}}
results in:
{{Rating|6.5|8}}
results in: