Difference between revisions of "Template:Star Rating"

From Golly.Life Wiki

(Created page with "<onlyinclude>{{#if:{{{1|}}} |{{#ifexpr:{{{1}}}>=1 |★{{Loop|{{#expr:floor{{{1}}}-1}}|★}} |{{#ifexpr:{{{1}}}>0|½}} }}{{#ifexpr:{{{1}}}>1and{{{1}}}<>ceil{{{1}}} |½ }}{{#ife...")
 
 
Line 14: Line 14:
 
== Usage ==
 
== Usage ==
  
 +
<pre>
 
<nowiki>{{Star Rating|NUMBER_OF_STARS}}</nowiki>
 
<nowiki>{{Star Rating|NUMBER_OF_STARS}}</nowiki>
 +
</pre>
  
 
NUMBER_OF_STARS is the.. # of stars
 
NUMBER_OF_STARS is the.. # of stars

Latest revision as of 02:23, 5 February 2021


Usage

{{Star Rating|NUMBER_OF_STARS}}

NUMBER_OF_STARS is the.. # of stars

Examples

{{Star Rating|4.5}}
{{Star Rating|15}}