Template talk:Rating

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Jidanni (talk | contribs) at 14:59, 18 September 2008 (→‎Accessibility issue: fixed). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Needs alpha feature

Needs alphabetic ratings feature, such that

  • {{Rating|B|E}} displays as EDCBA.

Compare:

It might make more sense to do this as

or

SMcCandlish [talk] [cont] ‹(-¿-)› 15:01, 30 August 2008 (UTC)[reply]

Would it not be easier on readers to simply use "A" "B" "C", etc? I can see a EDCBA range as potentially very confusing to most...it certainly was to me. Huntster (t@c) 01:33, 1 September 2008 (UTC)[reply]
Fine by me; I was just trying to match the star formatting. — SMcCandlish [talk] [cont] ‹(-¿-)› 22:41, 14 September 2008 (UTC)[reply]

Accessibility issue

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)[reply]

Very unlikely that it has been discussed with any group. My understanding was that it simply got made and folks began replacing the "Rating-X" templates. While not perfect, it does include alt-text, though the same alt text is replicated with each star image. Huntster (t@c) 01:33, 1 September 2008 (UTC)[reply]

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)[reply]

Indeed. I'm really not sure what might be the best way to solve this situation...cater to text-to-voice users, but not make text browsers look like mud. Perhaps use a 1x1 transparent image with the alt text? I do not know if there is a function in HTML to present alt text without using images. Huntster (t@c) 11:53, 13 September 2008 (UTC)[reply]

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)[reply]

I've edited the template accordingly, and it should hopefully just display the image text once now. --Conti| 00:19, 15 September 2008 (UTC)[reply]

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)[reply]