I believe to have seen somewhere a template that displays 55% for e.g. as a far filled up to a little more than half in wiki tables....
Now, I'm using one for yes and no (yes is green and no is read) like in wikipedia
rds,
On 11/04/2008, Hicham Mouline hicham@mouline.org wrote:
I believe to have seen somewhere a template that displays 55% for e.g. as a far filled up to a little more than half in wiki tables....
http://en.wikipedia.org/wiki/Template:Progress_bar
It uses ParserFunctions, and the code is:
{| style="border: 1px solid black" cellspacing=1 width={{{width|75%}}} height=15x align=center |+ <big>'''{{{1|0}}}%'''</big>{{{Text| completed <small>(estimate)</small>}}} |align=center width=0.{{{1|000.00}}}% style=background:#7fff00| |align=center width={{ #expr: 100-{{{1|000.00}}}}}% style=background:#ff7f50| |}
- d.
David Gerard wrote:
This is a good example of a badly designed anything-for-the-web when it comes to colour blindness - specifically red-green.
I looked at an example of this on a chess talk page (last of the "what links here" display) and could not see anything other than a singly-coloured bar. I looked very close and then realized that it was pale green to the left and pale red to the right - the worst combination for me. After that, my brain could figure it out, since it knew what it was looking at.
This should use more striking shades of red or green for such a narrow bar or a wider bar so that the colour stands out more. A wide, black line between the two parts of the bar to delimit the coloured regions would help too.
Mike
This should use more striking shades of red or green for such a narrow bar or a wider bar so that the colour stands out more. A wide, black line between the two parts of the bar to delimit the coloured regions would help too.
Or, just pick some colours that aren't so commonly affected by colour blindness. I think most (if not all) such bars also have the percentage written nearby, but having the bar work for everyone isn't essential - the number of people with non-red-green colour blindness is probably small enough that we don't need to go out of our way to cater to them (as long as no information is only available through the colours).
mediawiki-l@lists.wikimedia.org