Difference between pages "Template:fs" and "Category:Ratings Templates"

From LCA2015 Delegate wiki
(Difference between pages)
Jump to: navigation, search
m (trying same, but as included)
 
m (Improvements)
 
Line 1: Line 1:
<includeonly><div style="overflow: hidden">[[File:Farm-Fresh-bullet-star.png]]</div></includeonly><noinclude>
 
[[Category:Ratings Templates]]
 
 
== Description ==
 
== Description ==
A '''f'''ull '''s'''tar for a ranking / rating system.
+
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 ==
<pre>{{fs}}{{fs}}{{fs}}{{fs}}{{fs}}</pre>
+
You can now use code similar to below in order to display a star rating system...
  
Will display as...
+
<pre>{{fs}}{{fs}}{{hs}}{{es}}{{es}}</pre>
  
{{fs}}{{fs}}{{fs}}{{fs}}{{fs}}
+
This will display 2½ stars out of a five-star rating, as below...
  
</noinclude>
+
{{fs}}{{fs}}{{hs}}{{es}}{{es}}
 +
 
 +
=== 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...
 +
 
 +
: <pre><span style="display:none;">2.5</span>{{fs}}{{fs}}{{hs}}{{es}}{{es}}</pre>
 +
 
 +
* A future template might allow for a complete rating to specified from a single template, such as...
 +
 
 +
: <pre>{{rating|2.5|5}}</pre>
 +
 
 +
* A future template might allow for variable sizing of the stars, such as...
 +
 
 +
: <pre>{{rating|2.5|5|20px}}</pre>
 +
 
 +
: I'll add these to my [[User:Augur_./To Do|To Do]] list. [[User:Augur_.|<font color="#703931">'''ᏜᏠᎶᏠᏑ'''</font>]][[User_talk:Augur_.|<font size="4" color="#723a32">&#x2710;</font>]][[Special:Contributions/Augur_.|<font size="4" color="#723a32">&#x2315;</font>]] 20:25, 27 December 2014 (AEDT)
 +
 
 +
== See Also ==
 +
* [[:Category:Ratings Icons|Ratings Icons]] category
 +
 
 +
[[Category:Image Templates]]

Latest revision as of 20:25, 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}}
  • 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