Что такое vCard
Example hCard of common properties:
Errata and UpdatesKnown errors and issues in this specification are corrected in resolved and closed issues. Please check there before reporting issues . The hCard 1.0.1 update is currently under development and incorporates known errata corrections as well as the value-class-pattern . BackgroundFormatIn General
This allows simplification in the typical case of people stating:
Implied "nickname" OptimizationDue to the prevalence of the use of nicknames/handles/usernames in actual content published on the Web (e.g. authors of reviews), hCard also has an implied "nickname" optimization to handle this. Similar to the implied "n" optimization, if "FN" and "ORG" are not the same, and the value of the "FN" property is exactly one word, and there is no explicit "N" property, then:
Though parsers MUST follow the implied nickname optimization, publishers SHOULD explicitly indicate the "nickname" even in this case, e.g.: daveman692 The hCard MAY have additional explicit "nickname" property values in addition to the implied nickname. Implied "organization-name" OptimizationThe "ORG" property has two subproperties, organization-name and organization-unit. Very often authors only publish the organization-name. Thus if an "ORG" property has no "organization-name" inside it, then its entire contents MUST be treated as the "organization-name". Tags as CategoriesCategories in hCard MAY be represented by tags with rel-tag . When a category property is a rel-tag, the tag (as defined by rel-tag) is used for that category. type subproperty valuesThe "type" subproperty in particular takes different values depending on which property it is a subproperty of. These "type" subproperty values are case-INSENSITIVE, meaning "Home" is the same as "home", as well as multivalued, e.g. a tel can be home and preferred: TEL;TYPE=HOME,PREF:+1.415.555.1212 Home ( pref erred): +1.415.555.1212 This could be displayed as: Home (pref erred): +1.415.555.1212 type with unspecified valueWhen the type of a property is specified, and there is no explicit value specified, then everything in the property except for the type is considered the value of the property. E.g. Home +1.415.555.1212 is equivalent to: Home +1.415.555.1212 And thus the type is "home" and the value is "+1.415.555.1212". adr tel email typesContent that uses hCard SHOULD reference this profile, e.g. "http://сайт/profile/hcard" > This content uses "http://сайт/profile/hcard" > hCard . "http://сайт/profile/hcard" >(profile attribute is deprecated in HTML5) Content may combine the above methods as well. Parsing DetailsExamplesThis section is informative. Sample vCardHere is a sample vCard: BEGIN:VCARD VERSION:3.0 N:Çelik;Tantek FN:Tantek Çelik URL:http://tantek.com/ END:VCARD and an equivalent in hCard with various elements optimized appropriately. See hCard Example 1 for the derivation. This hCard might be displayed as: Note: The version information is unnecessary in hCard markup directly since the version will be defined by the profile of hCard that is used/referred to in the "profile" attribute of the element.Live exampleImplementationsThis section is informative . The number of hCard implementations has also expanded beyond the capacity of keeping them inline. They have been moved to a separate page . ArticlesThis section is informative . For further reading on hCard see hcard-articles . ButtonsYou can use these buttons on pages with hCards. See buttons#hCard for any recent additions. CopyrightPer the public domain release on the authors" user pages (Tantek Çelik , Brian Suda) this specification is released into the public domain. Public Domain Contribution Requirement . Since the author(s) released this work into the public domain, in order to maintain this work"s public domain status, all contributors to this page agree to release their contributions to this page to the public domain as well. Contributors may indicate their agreement by adding the to their user page per the |
Вы можете помочь перевести её до конца, соблюдая стиль и общие правила перевода.
Напоминаем, что ваш перевод может быть изменён другими участниками сообщества, поэтому старайтесь переводить статьи точнее и более читабельнее.
hCard
hCard - это простой, открытый микроформат для описания людей, компаний, организаций и мест, используя всю мощь vCard (RFC 2426 (англ.)). Имена классов hCard полностью отображают имена соответствующих полей vCard на семантический (X)HTML . hCard - это один из открытых микроформатов , который можно внедрить в HTML, XHTML, ATOM, RSS и XML.
Хотите разметить собственный hCard? Попробуйте начать с или создайте разметку данного микроформата самостоятельно, следуя подсказкам по внедрению на существующие страницы.
ПримерыДанный раздел является информативным Пример vCardЭто пример vCard: BEGIN:VCARD VERSION:3.0 N:Çelik;Tantek FN:Tantek Çelik URL:http://tantek.com/ END:VCARD и эквивалент вышеприведённого vCard в разметке hCard: Этот hCard будет отображён следующим образом: Замечание: информацию о версии не обязательно указывать в разметке hCard, так как эта информация будет включена в профиль hCard, который будет использован путём утилизации атрибута profile в HTML-элементе head . ПримерИнформация о связи с компанией Commercenet . Данный микроформат уже сейчас можно определить на этой странице с помощью различных утилит. CommerceNet http://www.commerce.net/ Work : 169 University Avenue Palo Alto , CA 94301 Work +1-650-289-4040 Fax +1-650-289-4041 Email [email protected] Ниже представлена разметка с некоторыми семантическими улучшениями:
CommerceNet
Work
:
169 University Avenue
Palo Alto
,
CA
94301
USA
Work
+1-650-289-4040
Fax
+1-650-289-4041
Email:
[email protected]
|
Микроформат hCard
Микроформат hCard - самый популярный микроформат разметки данных на сегодняшний день.
Один из двух микроформатов (hCard
и hRecipe
), которые понимает и использует поисковая система Яндекс. Предназначен для структурирования и отображения контактной информации физических лиц, компаний, организаций и мест.
Может быть включен в (х)HTML, RSS, ATOM и любой другой XML-документ.
Яндекс и hCard
Размечая контактную информацию с помощью hCard, вы упрощаете понимание роботом того, что вы ему сообщаете. Таким образом, данная информация может появиться в таких сервисах, как Яндекс.Карты, Яндекс.Справочник, Яндекс.Адреса и многих других сервисах. По мимо этого, ваш сниппет может иметь расширенный вид, с указанием тех данных, которые вы разметили.
Пример расширенного сниппета:
Пример отображения организации на Я.Картах, страница которой была размечена с помощью данной миероразметки:
Использование
Что бы понять, как это работает, давайте рассмотрим микроразметку на примере. Мы имеем HTML страницу с контактной информацией человека. Выглядит она так: