Difference between revisions of "Template:Rating"
Jump to navigation
Jump to search
(uploaded "Image:2004IndiaTavera278.jpg": Importing image file) |
m (1 revision) |
||
Line 1: | Line 1: | ||
<includeonly>< | <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> | ||
Latest revision as of 15:12, 3 February 2009
[edit] 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
- {{Rating|0|3}} displays as
- {{Rating|3.5|6}} displays as
- {{Rating|8|8}} displays as
- {{Rating|5|10}} displays as
See also
This template employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
ar:قالب:التقييم sk:Šablóna:Rating pt:Predefinição:Rating uk:Шаблон:Rating
Categories:
- Protected templates
- Intricate templates
- Wikipedia rating templates
- WikiProject Albums templates