hCard Wizard

The hCard Wizard bookmarklet helps you quickly create basic hCards. To use it, drag the link below onto your bookmark toolbar.

hCard Wizard

Click the bookmark on any page to invoke hCard Wizard. You can generate a pre-filled hCard by selecting a name and clicking the bookmarklet. hCard Wizard will automatically detect basic name formats (“given-name last-name” and “given-name additional-name last-name”) and a URL if the name is also an anchor element.

Clicking the bookmarklet without selected text brings up a blank hCard Wizard that you must fill manually. Currently, both given-name and family-name are required properties.

Supported Properties

hCard Wizard currently supports the following properties:

  • fn
  • n
  • given-name
  • additional-name (optional)
  • family-name
  • url (optional)

hCard Wizard current performs an implied n optimization for the case of “given-name family-name”. I plan to support implied optimizations (including implied nickname optimization) in future releases.

If a valid URL is provided, the fn property appears on an <a> element; otherwise, all generated elements are <span>s. You can edit the default markup in the wizard.

Future Properties

If demand warrants, I'd like to support the following properties:

  • nickname
  • organization
  • photo
  • xfn relationships

Known Issues

  • hCard Wizard styles can be overridden on some sites due to specificity issues
  • hCard Wizard is tested and supported on Safari 3.1.2 and Firefox 3.0; no other browsers are supported at this time
  • hCard Wizard uses position: fixed and cannot yet be dragged or repositioned
  • hCard Wizard does not match non-ASCII names (e.g. Tantek Çelik)

Release Notes

  1. August 19, 2008: Initial release