Fandom


{{{1}}}Icon optionalIcon optionalIcon optionalIcon optionalIcon optional

Vorlagen-Dokumentation (Für die oben gezeigte Vorlage, manchmal unsichtbar oder versteckt.)

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

Usage

{{Rating|3|10}}

Parameters

semi-requiredIcon semi-required
(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.
optionalIcon optional
(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.
optionalIcon optional
(default: "Icon optional.png")
icon empty
Name of icon (without "File:" prefix) which represents the equivalent of a "half" star.
optionalIcon optional
(default: "Icon required.png")
icon full
Name of icon (without "File:" prefix) which represents the equivalent of a full star.
optionalIcon optional
icon half
Name of icon (without "File:" prefix) which represents the equivalent of an empty star.
optionalIcon optional
(default: "14x14px")
icon size
Determines size of icons.
optionalIcon optional
(default: "<unnamed 1>/<unnamed 2>")
tooltip
Tooltip which should be displayed when hovering over the icons.

Examples

{{Rating|3}}

results in: 3Icon requiredIcon requiredIcon requiredIcon optionalIcon optional

{{Rating|2|6}}

results in: 2Icon requiredIcon requiredIcon optionalIcon optionalIcon optionalIcon optional

{{Rating|6.5|8}}

results in: 6.5Icon requiredIcon requiredIcon requiredIcon requiredIcon requiredIcon requiredIcon semi-requiredIcon optional

Dokumentation transkludiert aus Vorlage:Rating/doc.
Nutzung von Community-Inhalten gemäß CC-BY-SA , sofern nicht anders angegeben.