« Modèle:Rating » : différence entre les versions
Page créée avec « <onlyinclude><!-- --><span style="display: none;">{{#if:{{{tooltip|}}}|{{{tooltip}}}|{{{1}}}}}</span><!-- --><span class="va-rating" style="white-space: nowrap;" title="... » |
m Remplacement de la catégorie Catégorie:Modèles pour médias par Catégorie:Modèle pour médias : singulier Balise : CatRename |
||
| Ligne 42 : | Ligne 42 : | ||
{{Documentation}} | {{Documentation}} | ||
[[ | [[Catégorie:Modèle pour médias]] | ||
Dernière version du 6 mars 2026 à 23:38
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:




