మూస:UF-hcard-person: కూర్పుల మధ్య తేడాలు

చి Removing "Hcard-microformat-button.png", it has been deleted from Commons by O because: licence used is incompatible with Commons.
కొత్త పేజీ: {{lowercase|title=hCard}} '''hCard''' (short for '''''HTML vCard''''') is a microformat for publishing the contact details of people, companies, organizations, an...
పంక్తి 1:
{{lowercase|title=hCard}}
 
'''hCard''' (short for '''''HTML vCard''''') is a [[microformat]] for publishing the contact details of people, companies, organizations, and places, in [[HTML|(X)HTML]], [[Atom (standard)|Atom]], [[RSS (file format)|RSS]], or arbitrary [[Extensible Markup Language|XML]]. hCard does this using a 1:1 representation of [[vCard]] ([[Request for Comments|RFC]] 2426) properties and values.
 
It allows parsing tools (for example other websites, or [[Firefox]]'s [[Operator (extension)|Operator extension]]) to extract the details, and display them using some other website or [[map]]ping tool, index or search them, or to load them into an address book program, for instance.
The HTML markup produced by this template includes an [[HCard|hCard microformat]], which makes the person's details [[Parsing|parsable]] by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of [[microformat]]s on Wikipedia, please see [[Wikipedia:WikiProject Microformats|the microformat project]].
 
== Example ==
Date-of-birth ("bday") parameters will <em>only</em> be included in the microformat if {{tl|Birth date}} or {{tl|Birth date and age}} are used in the infobox.
Consider the HTML:
 
<nowiki>
hCard uses HTML classes including:
&lt;div&gt;
<div class="horizontal">
&lt;div&gt;Joe Doe&lt;/div&gt;
*adr
&lt;div&gt;The Example Company&lt;/div&gt;
*bday
&lt;div&gt;604-555-1234&lt;/div&gt;
*county-name
&lt;a href="http://example.com/"&gt;http://example.com/&lt;/a&gt;
*fn (required)
&lt;/div&gt;
*honorific-prefix
</nowiki>
*honorific-suffix
 
*label
With microformat markup, that becomes:
*locality
 
*nickname
<nowiki>
*note
&lt;div class="vcard"&gt;
*org
&lt;div class="fn"&gt;Joe Doe&lt;/div&gt;
*role
&lt;div class="org"&gt;The Example Company&lt;/div&gt;
*vcard
&lt;div class="tel"&gt;604-555-1234&lt;/div&gt;
&lt;a class="url" href="http://example.com/"&gt;http://example.com/&lt;/a&gt;
&lt;/div&gt;
</nowiki>
 
Here the formal name (''fn''), organization (''org''), telephone number (''tel'') and [[URL|web address]] (''url'') have been identified using specific class names; and the whole thing is wrapped in <code>class="vcard"</code> which indicate that the other classes form an hcard, and are not just coincidentally named. If the hCard is for an organisation or venue, the ''fn'' and ''org'' classes are used on the same element, as in <code><nowiki><span class="fn org">Wikipedia</span></nowiki></code> or <code><nowiki><span class="fn org">Wembley Stadium</span></nowiki></code>. Other, optional, hCard classes also exist.
 
It is now possible for software, for example browser plug-ins, to extract the information, and transfer it to other applications, such as an address book.
 
==Geo + adr==
The [[Geo (microformat)|Geo microformat]] is a part of the hCard specification, and is often used to include the coordinates of a location within an hCard.
 
The ''adr'' part of hCard can also be used as a stand-alone microformat.
 
==Live example==
 
Here are the Wikimedia Foundation's contact details, as a live hCard:
 
<blockquote style="font-weight:bold">
<div class="vcard">
<div class="fn org">Wikimedia Foundation Inc.</div>
<div class="adr">
<div class="street-address">200 2nd Ave. South #358</div>
<div> <span class="locality">St. Petersburg</span>, <span class="region">FL</span> <span class="postal-code">33701-4313</span></div>
<div class="country-name">USA</div>
</div>
<div>Phone: <span class="tel">+1-727-231-0101</span></div>
<div>Email: <span class="email">info@wikimedia.org</span></div>
<div><span class="tel"><span class="type">Fax</span>: <span class="value">+1-727-258-0207</span></span></div>
</div>
</blockquote>
 
The mark-up (wrapped for clarity) used is:
 
<pre><nowiki>
<div class="vcard">
<div class="fn org">Wikimedia Foundation Inc.</div>
<div class="adr">
<div class="street-address">200 2nd Ave. South #358</div>
<div>
<span class="locality">St. Petersburg</span>,
<span class="region">FL</span> <span class="postal-code">33701-4313</span>
</div>
<div class="country-name">USA</div>
</div>
<div>Phone: <span class="tel">+1-727-231-0101</span></div>
<div>Email: <span class="email">info@wikimedia.org</span></div>
<div>
<span class="tel"><span class="type">Fax</span>:
<span class="value">+1-727-258-0207</span></span>
</div>
</div>
</nowiki></pre>
 
(Ordinarily, one would use
 
<pre><nowiki>
<abbr class="region" title="Florida">FL</abbr>
</nowiki></pre>
 
so that the output included <code>region="Florida"</code>, but the <code>abbr</code> element is not supported on Wikipedia.)
 
Note that, in this example, the formal name (''fn'') and organisation (''org'') properties are combined on one element, indicating that this is the hCard for an organisation, not a person.
 
==Other attributes==
Other commonly used hCard attributes include
*<code>bday</code> - a person's birth date
*<code>email</code>
*<code>honorific-prefix</code>
*<code>honorific-suffix </code>
*<code>label</code> - for [[granularity#Data Granularity|non-granular]] addresses
*<code>logo</code>
*<code>nickname</code>
*<code>note</code> - free text
*<code>photo</code>
*<code>post-office-box</code>
 
==See also==
* [[DataPortability]]
 
==References==
* Microformats: Empowering Your Markup for Web 2.0 (2007) by John Allsopp p. 125
 
== External links ==
* [http://microformats.org/wiki/hcard hCard spec on microformats.org]
* [http://microformats.org/wiki/hcard-cheatsheet hCard cheat-sheet]
* Some have recommended using hCard Microformat for the sake of local search engine optimization. While there's no clear benefit to local search placement from using hCard, this [http://searchengineland.com/071015-123143.php article on hCard and local search] outlines reasons why it's a good idea to incorporate.
 
[[Category:Microformats]]
Please do not rename or remove these classes.
 
[[es:HCard]]
[[Category:Templates generating hCards|{{PAGENAME}}]]<noinclude>
[[fr:HCard]]
[[ar:قالب:UF-hcard-person]]
[[lv:HCard]]
[[hsb:Předłoha:UF-hcard-wosoby]]
[[pl:HCard]]
</noinclude>
[[simple:HCard]]
[[zh:HCard]]
"https://te.wikipedia.org/wiki/మూస:UF-hcard-person" నుండి వెలికితీశారు