开发者

X out of Y people recommend - microformat markup

I'm in the process of marking up a site with microformats, using hcard, hreview and hreview-aggregate.

The documentation on http://microformats.org/ and http://www.google.com/sup开发者_JAVA技巧port/webmasters/bin/topic.py?topic=21997 is pretty good.

However one thing has got me totally stumped - Can anybody explain to me how I can express something in the form:

X out of Y people recommend...

Thanks


That sounds like hreview-aggregate to me. A simple recommendation doesn't necessarily have a numeric value, but you can arbitrarily assign one based on the number of people. The scale will keep changing, but the proportions will stay the same. Example:

<div class="hreview-aggregate">
  <span class="item">...</span>
  <span class="rating"><span class="average">90</span> out of <span class="best count">100</span> people recommend.</span>
</div>

So every time you add a new person, both best and count would change. That makes sense, since the best scenario would be everyone recommending. That may be a bit misleading, since people aren't really rating on a 100-point scale, but the average of 90% is still accurate.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜