Jump to content

Help:Microformats

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pigsonthewing (talk | contribs) at 20:24, 29 July 2010 (Project: +). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Using Wikipedia's microformats

It is possible for your computer to extract information from Wikipedia pages and then re-use it in other websites or computer programs, such as your calendar or address book.

What: the method we use

We do this using something called microformats. You'll find microformats on lots of other leading websites, too, such as The BBC, Upcoming and LinkedIn.

  • You can download details of people, organisations, and places (venues, settlements, etc.), all using the 'hCard microformat'. The coordinates of places uses the 'Geo' microformat; their addresses sometimes use the 'Adr' microformat.
  • Events (battles, record releases, etc.) use the 'hCalendar microformat'.
  • Articles about products (cars, guitars, computers) use 'hProduct'.
  • Audio recordings use 'hAudio'
  • The names of living things use the 'species' microformat.

How: Using our microformats

There are two ways to use our microformats, by adding a tool to your web browser, or letting another website do the job for you.

Browser add-ons

Adding a microformat-aware tool to your web browser makes it possible to use our microformats described above. Examples include:

Other websites

Some websites allow you to submit the URL (address) of one of our web pages, and will then act upon the microformats on that page, for you. Examples include:

Technical notes

If you are interested in the technical side of things, here is more detail about microformats, what they do, and how they work:

  • Microformats are an agreed set of HTML classes (and occasionally rel attributes).
  • hCard contact details can also be exported as vCard files
  • hCalendar events can also be exported as iCal calendar entry files
  • Some tools will convert microformatted data into RDF, KML, JSON and other data-exchange formats.
  • If you run websites, then the source code from some of the above websites can be installed on your own server.

Project

For further details, and to participate in the deployment of microformats on Wikipedia, join our Microformats Project.