hcard-faq

Revision as of 03:27, 19 October 2006 by Bob Jonkman (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)

Jump to: navigation, search

Contents

hCard FAQ

This page is for documenting Q&A about hCard. If you have a new question to ask, Please consider first asking your question on the microformats-discuss list.

Q&A

Should I use ADDRESS for hCards

Should I use the more semantic <address> element for my hCards?

Why is url property necessary

Why is it necessary to put class name "url" on URL elements in the hCard when those hyperlinks already start with "http://", and that is enough to distinguish them from email links?

How do I support an existing vCard URL

I already have a vCard that I keep up-to-date. I don't want to change any references to it because it might break something else, what can I do?

RewriteRule ^path/to/old.vcf http://suda.co.uk/projects/X2V/get-vcard.php\?uri=http://example.com/hCard_encoded.htm&filename=old.vcf

Now you shouldn't have to do anything else, all links to the "old.vcf" are redirected to the webservice and will return a new vCard that is dynamially generated from your page.

I think that using 'Redirect' is better than using mod_rewrite (is not enabled on some hosts) --Robert Bachmann

Redirect /path/to/old.vcf http://suda.co.uk/projects/X2V/get-vcard.php?uri=http://example.com/hCard_encoded.htm&filename=old.vcf

What are plural hCard properties

Is there a list of all hCard properties which can be plural?
Is there a list of all the properties which can have multiple instances?

Old previous answer:

What does FN stand for

What does FN stand for?

Type purpose: To specify the formatted text corresponding to the name of the object the vCard represents.

How is gender represented

How do you represent gender in hCard?

<span class="honorific-prefix">Mr.</span>

or

<span class="honorific-prefix">Ms.</span>

Note that there is also a page on MSDN that mentions vCard and "gender". Not sure what to make of that.

Can an hCard contains extra elements

Is it OK for an hCard node to contain extra elements?

Can a GEO be inferred from an ADR in an hCard

Can I automatically add GEO from an address when transfoming an hCard to vCard if it is not present?

X2V does not convert email with name as plain text

X2V doesn't convert my email address correctly, it is in the form href="FirstName LastName <Email@example.com>"

One possible valid hCard markup would be:

<span class="vcard">
  <span class="fn">Firstname Lastname</span>
 &lt;<a class="email" href="mailto:Email@example.com">Email@example.com</a>&gt;
</span>


This might be displayed as:

Firstname Lastname <email@example.com>

What hCard properties are required

What properties are required in an hCard?

Does N property require all subproperties

If I use the 'n' property, do I have to use ALL of the sub-properties?

Do FN and N need to be on same element

Do the 'fn' and 'n' properties have to be on the same element?

<p class="vcard">My name is
<span class="n">
<span class="honorific-prefix">Mr.</span>
<span class="given-name">John</span>
<span class="additional-name">Q</span>
<span class="family-name">Public</span>
</span>
but you can just call me
<span class="fn">Johnny</span>
</p>

How do you convert a vCard to an hCard

Is there a way to convert a vCard to an hCard?

Are descendant elements recognized in a microformat

Are descendants recognized in a microformat property?

<span class="country-name">United States <small>of</small> America</span>

The output would be "United States of America".

Do properties like TEL use all descendants

Do properties like TEL use all descendants? e.g.
<span class="tel"><span class="type">Home</span>:<span class="value">+1.234.567.8900</span></span>

Shouldn't that output be "TEL:Home: +1.234.567.8900"?

Can you have multiple value elements

Can you have multiple class="value" elements inside a property and what happens to them?

<span class="tel"><span class="type">Home</span>:<span class="value">+1</span>.<span class="value">234</span>.<span class="value">567</span>.<span class="value">8900</span></span>
would output: "+12345678900".

Can you mix properties and the root class name

Can you put properties on the same element as the root class for a microformat? E.g. class="vcard fn"?

Can you mix a property and its subproperties

Can singular sub-properties be mixed with parents?

Can you use query strings on email

What happened to the Query String on my email address?

Are ADR and TEL types case sensitive

Is the list of possible types for an ADR and TEL case sensitive?

How does GEO work with ABBR

What happens to the GEO sub-properties when GEO is used with ABBR?


<span class="geo">
<span class="latitude">123.45</span>
<span class="longitude">67.89</span>
</span>

<abbr class="geo" title="123.45;67.89">My House</abbr>

When used with an <abbr> element the latitude and longitude are seperated by a semicolon.

Why is the root class name vcard

Why is the root class="vcard" and not 'hcard'?

How do you markup a phone extension

How do I mark-up a phone extension in hCard? There doesn't seem to be a way to declare a telephone extension in the vCard RFC2426 spec, the suggested way is currently:

<span class="tel">
    <span class="type">cell</span>: <span class="value">800 555-1212 x 1234</span>
</span>

How do you encode IM accounts

How do I encode my IM account in hCard?

Can you hCard the deceased

How do you make an hCard for the deceased?

Any plans for xparams

Are there plans to include x-parameters in future versions of hCard?


What is a word in implied optimizations

What constitutes a "word" for the purpose of 'implied-n optimization'?

How do you create non English tooltips

My website is not in English and i want the tooltips to be in my native language

<abbr class="type" title="home">
 <span title="[your native word for home here]">
  to my home
 </span>
</abbr>

Having an span with a title attribute inside the abbr element will only display the title on the span, where you have the text (your native word for home here).

hcard-faq was last modified: Wednesday, December 31st, 1969

Views