CODE
$select($div($substr(%POPULARIMETER%, $add($strchr(%POPULARIMETER%,|),1), $sub($strrchr(%POPULARIMETER%,|),1)),25),0.5,1,1.5,2,2.5,3,3.5,4,4.5,5)
You could swap the items in the $select() statement to use "images" if you want, e.g.:
CODE
$select($div($substr(%POPULARIMETER%, $add($strchr(%POPULARIMETER%,|),1), $sub($strrchr(%POPULARIMETER%,|),1)),25),-,=,=-,==,==-,===,===-,====,====-,=====)
Also, if you are happy with ratings out of 10 instead of 5 then you could just use:
CODE
$div($substr(%POPULARIMETER%, $add($strchr(%POPULARIMETER%,|),1), $sub($strrchr(%POPULARIMETER%,|),1)),25)
Edit: OK, a couple of other suggestions. If you're happy with just integer representations then you could use:
CODE
$select($div($substr(%POPULARIMETER%, $add($strchr(%POPULARIMETER%,|),1), $sub($strrchr(%POPULARIMETER%,|),1)), 50),*,**,***,****,*****)
or:
CODE
$div($substr(%POPULARIMETER%, $add($strchr(%POPULARIMETER%,|),1), $sub($strrchr(%POPULARIMETER%,|),1)), 50)
(notice the use of 50 rather than 25 to get 1-5, not 2-10)