Category:Ratings Templates

From LCA2015 Delegate wiki
Revision as of 20:25, 27 December 2014 by Augur . (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

A collection of templates to simplify the placement of rankings and ratings. Currently comprises of individual templates for full stars (fs), half stars (hs), and empty stars (es).

Example

You can now use code similar to below in order to display a star rating system...

{{fs}}{{fs}}{{hs}}{{es}}{{es}}

This will display 2½ stars out of a five-star rating, as below...

Farm-Fresh-bullet-star.pngFarm-Fresh-bullet-star.pngFarm-Fresh-bullet-half-star.pngFarm-Fresh-bullet-empty-star.pngFarm-Fresh-bullet-empty-star.png

Improvements

  • If you want to sort a table column based on the star ranking, it is suggested that you prefix the rating in the cell with hidden text, such as...
<span style="display:none;">2.5</span>{{fs}}{{fs}}{{hs}}{{es}}{{es}}
  • A future template might allow for a complete rating to specified from a single template, such as...
{{rating|2.5|5}}
  • A future template might allow for variable sizing of the stars, such as...
{{rating|2.5|5|20px}}
I'll add these to my To Do list. ᏜᏠᎶᏠᏑ 20:25, 27 December 2014 (AEDT)

See Also

Pages in category "Ratings Templates"

The following 3 pages are in this category, out of 3 total.