Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 When to use this template  





2 Parameters  



2.1  Default  





2.2  Optional  







3 TemplateData  





4 See also  














Template:Rating






Alemannisch
Anarâškielâ
العربية

Asturianu
Azərbaycanca
تۆرکجه
Basa Bali

Беларуская
Беларуская (тарашкевіца)
Български
Bosanski
Català
Čeština
Cymraeg
Dansk
Deutsch
Eesti
Ελληνικά
Español
Esperanto
فارسی
Français
Galego

Հայերեն
Hrvatski
Bahasa Indonesia
Íslenska
Italiano
Қазақша
Latviešu
Lietuvių
Magyar
Македонски

Malti
Bahasa Melayu
Монгол

Nederlands


Нохчийн
Norsk bokmål
Oʻzbekcha / ўзбекча

Polski
Português
Română
Русский
Scots
Shqip

Simple English
Slovenčina
Slovenščina
کوردی
Српски / srpski
Suomi
Svenska

Тоҷикӣ
Türkçe
Українська
اردو
Tiếng Vit

Zazaki

 
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



MediaWiki
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Stars)

Please specify a rating.

This template is designed to provide an image rating system, defaulting to stars. The template accepts ratings of up to ten, with more than six appearing reduced in size.

When to use this template

The template works with whole and half ratings (e.g. 0, 0.5, 1, 1.5, etc.). Other rating fractions (e.g. 3.2, 7.25) will be rounded, and the page on which the template resides will be inserted into the maintenance category Category:Pages with incorrect use of Rating template. Use |score= to provide explanatory text for ratings that the original source does not express in whole or half increments.

Please only use this template if the rating was originally expressed with the images used. For example, if a reviewer awards something a rating of "4" (expressed in digits not stars) on a scale of 5, you should simply write it as "4" or "4/5" in your article, depending on how it is presented by the source. Do not use {{rating|4|5}} where the source does not use stars, because it is inaccurate and misleading. Note that ratings on a scale of 10 can be hard to read if expressed visually with images.

Parameters

Default

These are the only parameters you need to show star ratings, the default symbols.

Examples
{{rating|4|5}}
{{rating|0|3}}
{{rating|3.5|6}}
{{rating|8|8}}
{{rating|5|10}}
{{rating|3}}

Optional

These parameters are optional, and can change the appearance of the rating or its tooltip.

Examples
{{rating|3|5|score=3/5 stars in a 0–5 star scale}}
{{rating|3|5|size=15px}}
{{rating|4|5|full=Gold medal icon blank.svg|empty=Silver medal icon blank.svg|rating=medal}}
{{rating|3.5|5|full=U+25CF.svg|half=U+25D0.svg|empty=U+25CB.svg|rating=mark}}
{{rating|2.5|5|full=Disc Plain red.svg|half=Cercle rouge 100%.svg|empty=Plain Disc 40% grey or 20% black.svg|rating=mark}}
{{rating|2|full=Symbol thumbs up.svg|rating=thumb up|rating-plural=thumbs up}}
{{rating|2|6|full=Symbol thumbs up.svg|empty=Symbol thumbs down.svg|rating=thumb up|rating-plural=thumbs up|score=2 thumbs up, but 4 thumbs down, giving this a rating of 2/6|size=12px}}

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Rating in articles based on its TemplateData.

TemplateData for Rating

A template to provide an image rating system

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Received1

Number of stars (or other images) received

Numberrequired
Possible2

Total possible stars (or other images; defaults to parameter 1)

Numberoptional
Scorescore

Text displayed when hovering over the rating

Stringoptional
Full alternatefull

Alternate image for a full star, without the File: prefix

Default
Star full.svg
Stringoptional
Half alternatehalf

Alternate image for a half star, without the File: prefix

Default
Star half.svg
Stringoptional
Empty alternateempty

Alternate image for an empty star, without the File: prefix

Default
Star empty.svg
Stringoptional
Rating symbolrating

Unit for alternate images

Default
star
Stringoptional
Plural rating symbolrating-plural

Plural form of the rating parameter if it is not just adding an "s"

Stringoptional
Images sizesize

Size of the images, in pixels

Default
11px
Stringoptional

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Rating&oldid=1065713686"

Categories: 
Rating templates
WikiProject Albums templates
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 14 January 2022, at 22:33 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki