Difference between revisions of "Category:Ratings Templates"

From LCA2015 Delegate wiki
Jump to: navigation, search
m (Example: new section)
m (Description: further definition of abbreviations)
Line 1: Line 1:
 
== Description ==
 
== Description ==
A collection of templates to simplify the placement of rankings and ratings.
+
A collection of templates to simplify the placement of rankings and ratings. Currently comprises of individual templates for '''f'''ull '''s'''tars [[Template:fs|(fs)]], '''h'''alf '''s'''tars [[Template:hs|(hs)]], and '''e'''mpty '''s'''tars [[Template:es|(es)]].
  
 
== Example ==
 
== Example ==

Revision as of 20:22, 27 December 2014

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}}
I'll add this to my To Do list.

See Also

Pages in category "Ratings Templates"

The following 3 pages are in this category, out of 3 total.
https://linux.conf.au/wiki/index.php?title=Arrivals_Departures&diff=896&oldid=894
linux.conf.au
crawl=CC-MAIN-2015-11
21285
application/http; msgtype=response
sha1:2DVTLGIVZVKNSLJ4KADDSPYS4WTYK4MP
<urn:uuid:7fe6cc74-7e73-40ff-bcbf-ee53ddf35e39>
2015-03-05T10:26:23Z
192.55.98.186
sha1:3I7WZBBMTUOF5GTCLR65ZHED62VHSXYU
<urn:uuid:d19d70e3-d03c-4771-a3bf-38141159228f>
https://linux.conf.au/wiki/index.php?title=Arrivals_Departures&diff=896&oldid=894
response
<urn:uuid:f81cd6ff-03ec-4272-bc5c-154108e6230c>
robots: classic
hostname: ip-10-28-5-156.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-11
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for February 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf