« Modèle:Rating » : différence entre les versions

Kharmitch (discussion | contributions)
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}}


[[Category:Modèles pour médias]]
[[Catégorie:Modèle pour médias]]

Dernière version du 6 mars 2026 à 23:38

{{{1}}}

Documentation du modèle (pour le modèle ci-dessus, parfois caché ou invisible)

Template for displaying an image-based (star) rating system. Supports scales with up to 10 images (and half-steps).

{{Rating|3|10}}
(default: "0")
<unnamed 1>

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.

(default: "5")
<unnamed 2>

The rating scale. For example, for a rating of 3 on a scale of 6, this would be "6". Cannot exceed 10.

(default: "Icon optional.png")
icon empty

Name of icon (without "File:" prefix) which represents the equivalent of a "half" star.

(default: "Icon required.png")
icon full

Name of icon (without "File:" prefix) which represents the equivalent of a full star.

icon half

Name of icon (without "File:" prefix) which represents the equivalent of an empty star.

(default: "14x14px")
icon size

Determines size of icons.

(default: "<unnamed 1>/<unnamed 2>")
tooltip

Tooltip which should be displayed when hovering over the icons.

{{Rating|3}}

results in: 3

{{Rating|2|6}}

results in: 2

{{Rating|6.5|8}}

results in: 6.5

  • Le modèle et sa page de documentation sont issus du Wikipédia The Vault. Vous pouvez les retrouver en suivant ce lien.
Documentation transclues de Modèle:Rating/doc.