Difference between revisions of "Template:Rating"

From Chevy Wiki
Jump to navigation Jump to search
(uploaded "Image:2004IndiaTavera278.jpg": Importing image file)
m (1 revision)
 
Line 1: Line 1:
<includeonly><div class="references-small" style="margin-left:1.5em;<!--
<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|<span style="white-space:nowrap">{{#ifexpr:{{{1}}}>=1|[[Image:Star full.svg|{{#ifexpr:{{{2}}}>6|7|11}}px|{{{1}}}/{{{2}}} stars]]{{Loop|{{#expr:floor{{{1}}}-1}}|[[Image:Star full.svg|{{#ifexpr:{{{2}}}>6|7|11}}px]]}}|{{#ifexpr:{{{1}}}>0|[[Image:Star half.svg|{{#ifexpr:{{{2}}}>6|7|11}}px|{{{1}}}/{{{2}}} stars]]|[[Image:Star empty.svg|{{#ifexpr:{{{2}}}>6|7|11}}px|{{{1}}}/{{{2}}} stars]]}}}}{{#ifexpr:{{{1}}}>1and{{{1}}}!={{#expr:ceil{{{1}}}}}|[[Image:Star half.svg|{{#ifexpr:{{{2}}}>6|7|11}}px]]}}{{Loop|{{#expr:{{{2}}}-{{#expr:ceil{{{1}}}}}{{#ifexpr:{{{1}}}=0|-1}}}}|[[Image:Star empty.svg|{{#ifexpr:{{{2}}}>6|7|11}}px]]}}</span>|Please specify a rating.}}|Please specify a rating.}}</includeonly><noinclude>{{pp-template}}{{Documentation}}</noinclude>
  -->{{#if:{{{colwidth|}}}| -moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};}}<!--
  -->{{#if:{{{1|}}}| -moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}};}}<!--
-->"></includeonly><noinclude>{{template doc}}</noinclude>

Latest revision as of 15:12, 3 February 2009

[edit] Template-info.svg Template documentation

This template is designed to provide a star rating system. If more than six stars are used, their size is decreased.

When to use this template

Please only use this star template if the rating was actually given in stars. For example, if a reviewer awards something a rating of "8.6" (expressed in digits) on a scale of ten, you should write it as "8.6" or "8.6/10.0" in your article. Do not use {{rating|8.6|10}} as it is inaccurate and misleading. Note that a rating on a scale of ten expressed with stars can be hard to read.

Examples

  • {{Rating|4|5}} displays as 4/5 starsStar full.svgStar full.svgStar full.svgStar empty.svg
  • {{Rating|0|3}} displays as 0/3 starsStar empty.svgStar empty.svg
  • {{Rating|3.5|6}} displays as 3.5/6 starsStar full.svgStar full.svgStar half.svgStar empty.svgStar empty.svg
  • {{Rating|8|8}} displays as 8/8 starsStar full.svgStar full.svgStar full.svgStar full.svgStar full.svgStar full.svgStar full.svg
  • {{Rating|5|10}} displays as 5/10 starsStar full.svgStar full.svgStar full.svgStar full.svgStar empty.svgStar empty.svgStar empty.svgStar empty.svgStar empty.svg

See also


ar:قالب:التقييم sk:Šablóna:Rating pt:Predefinição:Rating uk:Шаблон:Rating