[uf-dev] hReview, rating, and best/worse

Paul Wilkins paul_wilkins at xtra.co.nz
Fri Mar 23 18:23:22 PST 2007


Ian Bicking wrote:
> """rating:: The rating is a fixed point integer (one decimal point of 
> precision) from 1.0 to 5.0 inclusive indicating a rating for the item, 
> higher indicating a better rating by default. Optionally a different 
> integral "worst" value and/or "best" value MAY be specified to indicate 
> a different range (e.g. 6 from 0-10). The "best" value may be 
> numerically smaller than the "worst" value."""
> 
> But... that's not very clear.  What does that actually look like? 
> There's no examples that use that.  <abbr best="10" worst="1">5</abbr> ?

http://www.xfront.com/microformats/hReview.html

The Phantom Gourmet rates the restaurant as follows:
<ul>
   <li class="rating">Food: <span class="value">9</span>/<span 
class="best">10</span></li>
   <li class="rating">Service: <span class="value">6</span>/<span 
class="best">10</span></li>
   <li class="rating">Ambience: <span class="value">9.5</span>/<span 
class="best">10</span></li>
</ul>

Another example, from the top of my head is:

<p class="rating">Scoring from <span class="best">33</span> to <span 
class="worst">100<span>, you scored a total of <span 
class="value">42</span>.</p>

-- 
Paul Wilkins


More information about the microformats-dev mailing list