[uf-discuss] Org HCard with special phone number

Toby Inkster mail at tobyinkster.co.uk
Wed Mar 10 15:55:22 PST 2010


On Thu, 2010-03-11 at 11:20 +1300, Paul Wilkins wrote:
> I believe that there is a label that can be applied for each phone
> number.
> 
> http://microformats.org/wiki/hcard-issues-resolved has an entry
> starting with "RFC2426 allows TYPE for LABEL" which covers the need to
> update the hCard specification so that they are formally used in the
> same manner in which they are used in the vCard specification. 

I think you're misinterpreting that issue. It refers to the fact that
the label property (for address labels) can have types. e.g.

  <div class="vcard">
    <b class="fn">Joe Bloggs</b>
    <span class="label">
      <i class="type">Home</i>
      <span class="value">123 Test Street, Testville</span>
    </span>
    <span class="label">
      <i class="type">Work</i>
      <span class="value">45 Example Lane, Testville</span>
    </span>
  </div>

The label property differs from adr in that it's not broken down into
subproperties (street-address, etc).

Here's how I'd do it:

  <div class="vcard">
    <h1 class="fn org">My Org</h1>
    <p>
      <b>General Enquiries:</b>
      <span class="tel">01234 567 890</span>
    </p>
    <p class="agent vcard">
      <span class="org">
        <abbr class="organization-name" title="My Org"></abbr>
        <b class="organization-unit fn">Help Desk</b>
      </span>
      <span class="tel">01234 567 899</span>
    </p>
  </div>

-- 
Toby A Inkster
<mailto:mail at tobyinkster.co.uk>
<http://tobyinkster.co.uk>



More information about the microformats-discuss mailing list