User:ChristTrekker/Rating-d

Usage
This template is designed to provide a visual rating system.

Three distinct kinds of ratings can be represented. First is a simple score (e.g. "4"). Second is a score, out of a maximum (e.g. "4 out of 5"). Third is a dual score (e.g. "4 agrees, 1 disagree").

When to use this template
The template works with whole and fractional ratings. Fractions will be rounded to whole or half values for display, depending on the display type.

Please only use this template in articles if the rating was originally expressed with the idiom used. For example, if a reviewer awards something a rating of "4" (expressed in digits not stars) on a scale of 5, you should simply write it as "4" or "4/5" in your article, depending on how it is presented by the source. Do not use where the source does not use stars, because it is inaccurate and misleading. Note that ratings on a scale of more than 5 can be hard to read when expressed visually.

In user space, feel free to use this template however you want.

Parameters

 * a is required.
 * b is optional, if you want to use the second or third kinds of ratings mentioned above.
 * kind is optional, with values 1, 2, or 3. Default is 1.
 * glyph is optional, and will default to star for kinds 1 and 2, and to thumb for kind 3. Not all types can display all three kinds of ratings. The allowed types vary by kind of rating. They are
 * first (simple positive whole score)
 * star ★
 * heart ♥
 * smile ☺
 * diamond ♦
 * circle ●
 * triangle ▲
 * square ■
 * thumb 👍
 * arrow ⬆
 * vote ☑
 * check ✓
 * x ✗
 * second (positive score out of a potential maximum, allowing fractions)
 * star ★⭑☆
 * heart ❤♥♡
 * smile ☻☺
 * diamond ♦⬥⬩♢
 * circle ●◐○
 * triangle ▲◭△
 * square ■◧□
 * vote ☑☐
 * check ✔✓☐
 * x ✘✗☐
 * third (positive and negative whole scores)
 * thumb 👍👎
 * smile ☺☹
 * triangle ▲▽
 * vote ☑☒
 * arrow ⬆⬇

Examples

 * 3:
 * 2.6:
 * 3 out of 5:
 * 2.6 out of 5:
 * 2.6 out of 5 smiles:
 * 2.6 out of 5 diamonds:
 * 2.1 out of 5:
 * 2.1 out of 5 smiles:
 * 2.1 out of 5 diamonds:
 * 3 up, 2 down:
 * 3 smiles, 2 frowns: