Needs alphabetic ratings feature, such that
{{
Rating|B|E}}
displays as EDCBA.Compare:
{{
Rating|4|5}}
displays as It might make more sense to do this as
{{
Rating|4|E}}
or
{{
Rating|4|5|alpha=yes}}
— SMcCandlish [ talk] [ cont] ‹(-¿-)› 15:01, 30 August 2008 (UTC)
Has this been discussed at all with WP:WPACCESS? This template strikes me as likely to be an accessibility problem. — SMcCandlish [ talk] [ cont] ‹(-¿-)› 15:01, 30 August 2008 (UTC)
How horrible this looks in text browsers:
• {{Rating|4|5}} displays as 4/5 stars4/5 stars4/5 stars4/5 stars4/5 stars • {{Rating|0|3}} displays as 0/3 stars0/3 stars0/3 stars
Jidanni ( talk) 09:14, 13 September 2008 (UTC)
Let's see, if you only had the first item have the current ALT text, and the rest have ALT="" (I suppose, but not nothing at all otherwise some browsers will put the name of the image there), then
• {{Rating|4|5}} displays as 4/5 stars • {{Rating|0|3}} displays as 0/3 stars
Jidanni ( talk) 04:15, 14 September 2008 (UTC)
OK, looks good. Thanks. As a side effect this even exposed a bug in the w3m browser. Jidanni ( talk) 14:59, 18 September 2008 (UTC)
I suggest adding "link=" to the images in order to make them unclickable. For instance:
SharkD ( talk) 01:00, 30 March 2009 (UTC)
{{Rating|4|5}}
(displays as "{{
editprotected}}
Since the previous comment, the MediaWiki software has been changed so that one must now use "|link=
|alt=
" instead of plain "|link=
". Apparently this is a bug and will be fixed eventually, but in the meantime we have lots of articles using this template and the workaround is simple. While looking into this, I noticed that the lead star's alt text shouldn't be set either, as the title of the span suffices to get the tooltip working for all the stars. Accordingly, could you please install
this sandbox patch to improve accessibility further? Thanks.
Eubulides (
talk)
19:41, 26 September 2009 (UTC)
This template has some usability problems. For example, if a user sees this in an article, how is he to know whether it means "4 stars out of 4" or "4 stars out of 5"? Sure, this template displays "4 stars out of 5" differently, namely as
, but how is a user who has just reached a particular article via Google to know that? (I've just discovered that there is a tool tip if you mouse over the stars, but this isn't immediately evident, it wasn't to me... Also, if you have to read a tool tip to discover what the image means, what's the point?) There are similar problems at the opposite end of the scale: Does
mean "1 star on a scale of 1 to 5" or "1 star on a scale of 0 to 5"? Here, the problem is not just with the display - the template doesn't allow you to specify a minimum rating.
Eljayess (
talk)
20:08, 27 September 2010 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I made a new version of this template to accept just a single parameter for the number of stars (see /sandbox and /testcases) to better reflect reviewer ratings, not all of which use a "this many stars out of this many" format. This wouldn't change any existing usages (unless they're already missing the second parameter). Now the template outputs "Please specify a rating." if no second parameter is given, but the proposed change would just use the single parameter's input. Other minor changes:
|alt=
parameters in the image markupPending consensus on the tracking category, that can be taken out if needed. So, thoughts? If there aren't any objections, I'll put up an edit request in a few days. Cheers, — Bility ( talk) 22:44, 15 February 2012 (UTC)
<img alt="4/5 stars" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" width="11" height="11" />
are generated. If this wasn't what you had in mind, it would probably be easier to make the necessary changes to the template sandbox then use {{
editprotected}} to request that they are copied over.
Tra
(Talk)
07:06, 20 February 2012 (UTC)
This change needs to be rolled back ASAP, for the reasons given above. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:12, 25 February 2012 (UTC)
<span title="4/5 stars" style="white-space: nowrap;"><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" alt="4/5 stars"/><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" alt="."/><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" alt="."/><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" alt="."/><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Star_empty.svg/11px-Star_empty.svg.png" alt="."/></span>
.4/5 stars . . . .
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Added functionality in the /sandbox to override the images used in case of ratings that aren't in stars and for which we have an appropriate image (or someone could upload an appropriate image). Examples are in the /testcases. Could this be beneficial? Or at least no harm in adding? — Bility ( talk) 00:45, 21 February 2012 (UTC)
No one has objected, and I've already found a few articles to use this in. Opening edit request. — Bility ( talk) 18:36, 27 March 2012 (UTC)
|rating-plural=
, and I'll probably have it use {{
plural}} to simplify the code.|size=
in to render the images larger than the default if necessary. Please update the documentation.
Anomie
⚔
21:45, 28 March 2012 (UTC)![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I think the incorrect use message should have <span class="error">Please specify a '''rating'''.</span>, which would produce Please specify a rating. This would make it easier to see in a piece of text when it is incorrectly used.
|Randomno| WP 12:07, 6 April 2012 (UTC)
Hi, I just mentioned this here because I encountered an unusual situation (it's unusual for the review site too, as far as I know this is the only instance). With this particular review, the rating is 4 and 1/4 stars. The current template will not generate this. Is there a way to correct this?-- ¿3fam ily6 contribs 18:59, 11 May 2012 (UTC)
|rev1Score=4.25/5
instead of |rev1Score={{
rating|4.25|5}}
--
Redrose64 (
talk)
19:47, 11 May 2012 (UTC)
I'd like to see an option for dingbat-based display rather than images. E.g., ★/☆, ☺/☹, 👎/👍, ♥/♡, etc. If this is agreeable, maybe I'll start looking at possible ways to implement it. ⇔ ChristTrekker 14:50, 15 May 2013 (UTC)
I have added a color parameter to the Spanish version. I am missing a blue half star. This was done to support Euro NCAP pre-2009, Latin NCAP pre-2016 and Global NCAP pre-H2 2022. The half stars are not needed by NCAPs. Trigenibinion ( talk) 20:51, 24 June 2022 (UTC)
Needs alphabetic ratings feature, such that
{{
Rating|B|E}}
displays as EDCBA.Compare:
{{
Rating|4|5}}
displays as It might make more sense to do this as
{{
Rating|4|E}}
or
{{
Rating|4|5|alpha=yes}}
— SMcCandlish [ talk] [ cont] ‹(-¿-)› 15:01, 30 August 2008 (UTC)
Has this been discussed at all with WP:WPACCESS? This template strikes me as likely to be an accessibility problem. — SMcCandlish [ talk] [ cont] ‹(-¿-)› 15:01, 30 August 2008 (UTC)
How horrible this looks in text browsers:
• {{Rating|4|5}} displays as 4/5 stars4/5 stars4/5 stars4/5 stars4/5 stars • {{Rating|0|3}} displays as 0/3 stars0/3 stars0/3 stars
Jidanni ( talk) 09:14, 13 September 2008 (UTC)
Let's see, if you only had the first item have the current ALT text, and the rest have ALT="" (I suppose, but not nothing at all otherwise some browsers will put the name of the image there), then
• {{Rating|4|5}} displays as 4/5 stars • {{Rating|0|3}} displays as 0/3 stars
Jidanni ( talk) 04:15, 14 September 2008 (UTC)
OK, looks good. Thanks. As a side effect this even exposed a bug in the w3m browser. Jidanni ( talk) 14:59, 18 September 2008 (UTC)
I suggest adding "link=" to the images in order to make them unclickable. For instance:
SharkD ( talk) 01:00, 30 March 2009 (UTC)
{{Rating|4|5}}
(displays as "{{
editprotected}}
Since the previous comment, the MediaWiki software has been changed so that one must now use "|link=
|alt=
" instead of plain "|link=
". Apparently this is a bug and will be fixed eventually, but in the meantime we have lots of articles using this template and the workaround is simple. While looking into this, I noticed that the lead star's alt text shouldn't be set either, as the title of the span suffices to get the tooltip working for all the stars. Accordingly, could you please install
this sandbox patch to improve accessibility further? Thanks.
Eubulides (
talk)
19:41, 26 September 2009 (UTC)
This template has some usability problems. For example, if a user sees this in an article, how is he to know whether it means "4 stars out of 4" or "4 stars out of 5"? Sure, this template displays "4 stars out of 5" differently, namely as
, but how is a user who has just reached a particular article via Google to know that? (I've just discovered that there is a tool tip if you mouse over the stars, but this isn't immediately evident, it wasn't to me... Also, if you have to read a tool tip to discover what the image means, what's the point?) There are similar problems at the opposite end of the scale: Does
mean "1 star on a scale of 1 to 5" or "1 star on a scale of 0 to 5"? Here, the problem is not just with the display - the template doesn't allow you to specify a minimum rating.
Eljayess (
talk)
20:08, 27 September 2010 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I made a new version of this template to accept just a single parameter for the number of stars (see /sandbox and /testcases) to better reflect reviewer ratings, not all of which use a "this many stars out of this many" format. This wouldn't change any existing usages (unless they're already missing the second parameter). Now the template outputs "Please specify a rating." if no second parameter is given, but the proposed change would just use the single parameter's input. Other minor changes:
|alt=
parameters in the image markupPending consensus on the tracking category, that can be taken out if needed. So, thoughts? If there aren't any objections, I'll put up an edit request in a few days. Cheers, — Bility ( talk) 22:44, 15 February 2012 (UTC)
<img alt="4/5 stars" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" width="11" height="11" />
are generated. If this wasn't what you had in mind, it would probably be easier to make the necessary changes to the template sandbox then use {{
editprotected}} to request that they are copied over.
Tra
(Talk)
07:06, 20 February 2012 (UTC)
This change needs to be rolled back ASAP, for the reasons given above. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:12, 25 February 2012 (UTC)
<span title="4/5 stars" style="white-space: nowrap;"><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" alt="4/5 stars"/><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" alt="."/><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" alt="."/><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Star_full.svg/11px-Star_full.svg.png" alt="."/><img width="11" height="11" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Star_empty.svg/11px-Star_empty.svg.png" alt="."/></span>
.4/5 stars . . . .
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Added functionality in the /sandbox to override the images used in case of ratings that aren't in stars and for which we have an appropriate image (or someone could upload an appropriate image). Examples are in the /testcases. Could this be beneficial? Or at least no harm in adding? — Bility ( talk) 00:45, 21 February 2012 (UTC)
No one has objected, and I've already found a few articles to use this in. Opening edit request. — Bility ( talk) 18:36, 27 March 2012 (UTC)
|rating-plural=
, and I'll probably have it use {{
plural}} to simplify the code.|size=
in to render the images larger than the default if necessary. Please update the documentation.
Anomie
⚔
21:45, 28 March 2012 (UTC)![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I think the incorrect use message should have <span class="error">Please specify a '''rating'''.</span>, which would produce Please specify a rating. This would make it easier to see in a piece of text when it is incorrectly used.
|Randomno| WP 12:07, 6 April 2012 (UTC)
Hi, I just mentioned this here because I encountered an unusual situation (it's unusual for the review site too, as far as I know this is the only instance). With this particular review, the rating is 4 and 1/4 stars. The current template will not generate this. Is there a way to correct this?-- ¿3fam ily6 contribs 18:59, 11 May 2012 (UTC)
|rev1Score=4.25/5
instead of |rev1Score={{
rating|4.25|5}}
--
Redrose64 (
talk)
19:47, 11 May 2012 (UTC)
I'd like to see an option for dingbat-based display rather than images. E.g., ★/☆, ☺/☹, 👎/👍, ♥/♡, etc. If this is agreeable, maybe I'll start looking at possible ways to implement it. ⇔ ChristTrekker 14:50, 15 May 2013 (UTC)
I have added a color parameter to the Spanish version. I am missing a blue half star. This was done to support Euro NCAP pre-2009, Latin NCAP pre-2016 and Global NCAP pre-H2 2022. The half stars are not needed by NCAPs. Trigenibinion ( talk) 20:51, 24 June 2022 (UTC)