Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 hCard  



1.1  Potential  
1 comment  




1.2  Adr  





1.3  Extension  





1.4  Sample mark-up  





1.5  Relevant Templates  



1.5.1  Birth date  







1.6  Sample mark-up  





1.7  hCard examples on Wikipedia  



1.7.1  In templates  



1.7.1.1  Infoboxes for people  





1.7.1.2  Infoboxes for places  









1.8  Pages needing hCard  
















Wikipedia:WikiProject Microformats/hcard






Русский
 

Add links
 









Project page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Wikipedia:WikiProject Microformats

hCard[edit]

hCard is a microformat for contact details of people (who could be in either articles or user profiles), companies, organizations, and places.

This page considers how it might be deployed on Wikipedia.

There are moves to extend hCard to include date-of-death, which will be useful for biography pages, and to add a "gender" property, which will aid genealogists.

hCard allows for data to be entered into address books, or used as Geo (see Wikipedia:WikiProject Microformats#Geo; Geo is a subset of hCard). It also allows birth dates (death date inclusion is pending) to be added to calendars as recurring events (including those for dead people, so that the anniversaries may be celebrated).

Potential[edit]

Adr[edit]

The Adr microformat is a sub-set of hCard, but may also be used stand-alone. It is for marking-up postal addresses and their individual components.

An example of good practice, in having granular address components, rather than a single address field, inside hCard is {{Infobox School}}. For stand-alone use, see Category:Templates generating ADR microformats. Where address data is entered in a non-granular form, the hCard label property should be used, instead of adr.

Adding adr to some Infoboxes, with a row for each address component, is difficult, because of the need to wrap class="adr" around several table rows, but not the whole table. In this case, the most useful address component should be marked up.

Extension[edit]

An extension (RFC 6474) for death-date, place-of-birth and place-of-death was published in December 2011.

It is proposed to use the following class names:

The first of these will need to be baked into date calculation templates.

Note that the latter two may take a ADR microformat and/ or a geo microformat; (or a URI; not useful on Wikipedia) (as emitted by {{Coord}}).

Proposal: Where a microformat parser encounters a BIRTHPLACE or DEATHPLACE value which is text, but not formatted as an ADR, GEO or URI, treat it as vCard 4.0's ADR:LABEL.

Sample mark-up[edit]

For sample hCard mark-up, please see hCard or pages linked from the hCard spec on microformats.org.

Relevant Templates[edit]

Birth date[edit]

Sample mark-up[edit]

For a two column table, showing name and coordinates, with one hCard on each row:

|- class="vcard"
|class="fn org"|Blackroot Pool
|{{coord|52.5726|-1.8428}}

hCard examples on Wikipedia[edit]

See: Category:Templates generating hCards

Examples:

In templates[edit]

Infoboxes for people[edit]

Will display "bday" if {{Birth date}}or{{Birth date and age}} is used.

Infoboxes for places[edit]

Pages needing hCard[edit]

These pages need the manual addition of hCard; or perhaps conversion to tables, with hCard included:

For tables needing hCard, see Category:Lists of coordinates.


Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_Microformats/hcard&oldid=732295880"





This page was last edited on 31 July 2016, at 00:01 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki