Wasteland Wiki
Advertisement

{{{1}}}Icon optional.pngIcon optional.pngIcon optional.pngIcon optional.pngIcon optional.png

Template documentation (for the template shown above, sometimes hidden or invisible)

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

Usage

{{Rating|3|10}}

Parameters

Sometimes required or at least one requiredIcon semi-required.png
(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.png
(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.png
(default: "Icon optional.png")
icon empty

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

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

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

OptionalIcon optional.png
icon half

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

OptionalIcon optional.png
(default: "14x14px")
icon size

Determines size of icons.

OptionalIcon optional.png
(default: "<unnamed 1>/<unnamed 2>")
tooltip

Tooltip which should be displayed when hovering over the icons.

Examples

{{Rating|3}}

results in: 3Icon required.pngIcon required.pngIcon required.pngIcon optional.pngIcon optional.png

{{Rating|2|6}}

results in: 2Icon required.pngIcon required.pngIcon optional.pngIcon optional.pngIcon optional.pngIcon optional.png

{{Rating|6.5|8}}

results in: 6.5Icon required.pngIcon required.pngIcon required.pngIcon required.pngIcon required.pngIcon required.pngIcon semi-required.pngIcon optional.png

Documentation transcluded from Template:Rating/doc.
Advertisement