persondata: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
mNo edit summary
 
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=Persondata=
=Persondata=


A comparison between [[hcard|hCard]] and [http://en.wikipedia.org/wiki/Wikipedia:Persondata Wiikipedia's persondata]].
A comparison between [http://en.wikipedia.org/wiki/Wikipedia:Persondata Wikipedia's persondata] and the [[hcard|hCard]] microformat.


'''''Welcome''''' to anyone visiting this page from Wikipedia! Please read [[how-to-play]] before making any edits - this Wiki operates differently to Wikipedia.
'''''Welcome''''' to anyone visiting this page from Wikipedia! Please see the [[introduction]] page and read [[how-to-play]] before making any edits - this Wiki operates differently to Wikipedia.


Editor: [[User:AndyMabbett|Andy Mabbett]]
Editor: [[User:AndyMabbett|Andy Mabbett]]
Line 10: Line 10:


{| border="1" cellpadding="2"
{| border="1" cellpadding="2"
| '''PERSONDATA''' || '''hCard'''
| '''PERSONDATA''' || '''hCard'''<br />HTML class names
|-  
|-  
| NAME || fn '''required'''
| - || vcard ('''required'''; outer wrapper; can not be on same element as its children)
|-
| NAME || fn ('''required''')
|-  
|-  
|ALTERNATIVE NAMES || nickname
|ALTERNATIVE NAMES || nickname
Line 22: Line 24:
|PLACE OF BIRTH || not in hCard
|PLACE OF BIRTH || not in hCard
|-  
|-  
|DATE OF DEATH || proposed as an extension to hCard
|DATE OF DEATH || not in hCard, but [[vcard-suggestions#Deceased|proposed as an extension]]
|-  
|-  
|PLACE OF DEATH || not in hCard
|PLACE OF DEATH || not in hCard
Line 35: Line 37:
**''family-name''
**''family-name''
**''honorific-suffix''
**''honorific-suffix''
*''nickname''
 
*Wikipedia has a special [http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Microformats/hcard#Birth_date_and_age Template for birth dates]. '''<nowiki>{{birth date and age|1926|5|8}}</nowiki>''', could output the "''bday''" property as one of:
**<nowiki><abbr class="bday" title="1926-05-08">8 May 1926 (age 80)</abbr></nowiki> (once <code>abbr</code> is supported)
**<nowiki>8 May 1926 (age 80)<br style="display:none;" /><span style="display:none;" class="bday">1926-05-08</span></nowiki>
 
(Likewise the death-date and age-calculator  template: '''<nowiki>{{death date and age|1974|11|25|1948|6|19}}</nowiki>''' )


==hCard attributes not in Persondata, but in Wikipedia infoboxes==
==hCard attributes not in Persondata, but in Wikipedia infoboxes==
Line 43: Line 50:


===Notes===
===Notes===
*Persondata could use the Wikipedia page URL for the "url" property, or the URL given in an infobox.
*Persondata could use the Wikipedia page URL for the hCard url property, or the URL given in an infobox.
*DAta matching other hCard properties (adr, geo, etc.) may be found in Wikipedia infoboxes for organisations and venues.
*Data matching other hCard properties (adr, geo, org, etc.) may be found in Wikipedia infoboxes for organisations and venues.


==Persondata attributes not in hCard==
==Persondata attributes not in hCard==
Line 50: Line 57:


{| border="1" cellpadding="2"
{| border="1" cellpadding="2"
|PLACE OF BIRTH || birthplace
|PLACE OF BIRTH || birthplace || BIRTH
|-  
|-  
|DATE OF DEATH || dday or dod
|DATE OF DEATH || dday or dod || DDAY
|-  
|-  
|PLACE OF DEATH || deathplace
|PLACE OF DEATH || deathplace || DEATH
|}
|}
(Class names suggested for use in Wikipedia, without prejudice to future developments of hCard)
(Third column shows proposed vCard 4.0 names.)


==Other properties==
==Other properties==
*Persondata is hidden metadata; hCard is for data published on the page.
*Persondata is hidden metadata; hCard is for data published on the page.
*Persondata is for people; hCard can also be used for organisations and venues
*Persondata is for people; hCard can ''also'' be used for organisations and venues
 
==Example mark-up==
===Wikpedia infobox===
 
(simplified and wrapped for clarity)
 
<pre><nowiki>
<table class="infobox">
 
<tr>
  <th colspan="3">John Doe</th>
</tr>
 
<tr>
  <td colspan="3">
    <a href="xxx/xxx.jpg" class="image">
      <img src="xxx/yyy.jpg" alt="xxx">
    </a>
</td>
</tr>
 
<tr>
  <td><b>Birth&#160;name</b></td>
  <td colspan="2">James Johannes Doeville</td>
</tr>
 
<tr>
  <td><b>Born</b></td>
  <td colspan="2">
    3 April 1924,
    <a href="/wiki/Cincinnati">Cincinnati</a>,
    <a href="/wiki/Ohio">Ohio</a>, <a href="/wiki/USA">USA</a>
  </td>
</tr>
 
<tr>
  <td><b>Died</b></td>
  <td colspan="2">
    22 May 1977,
    <a href="/wiki/Birmingham">Birmingham</a>,
    <a href="/wiki/England">England</a>
  </td>
</tr>
 
<tr>
  <td>Website</td>
  <td colspan="2">
    <a href="http://www.example.com/" class="external text">John Doe tribute page</a>
  </td>
</tr>
 
</table>
</nowiki></pre>
 
===Persondata===
(Styled to be invisible by default)
 
<pre><nowiki>
<table id="persondata" class="persondata">
 
<tr>
  <th colspan="2"><a href="/wiki/Wikipedia:Persondata" title="Wikipedia:Persondata">Persondata</a></th>
</tr>
 
<tr>
  <td class="persondata-label">NAME</td>
  <td>Doe, John</td>
</tr>
 
<tr>
  <td class="persondata-label">ALTERNATIVE NAMES</td>
  <td>Doeville, James Johannes</td>
</tr>
 
<tr>
  <td class="persondata-label">SHORT DESCRIPTION</td>
  <td>treacle-bender, spaghetti-knitter</td>
</tr>
 
<tr>
  <td class="persondata-label">DATE OF BIRTH</td>
  <td>
    3 April 1924
  </td>
</tr>
 
<tr>
  <td class="persondata-label">PLACE OF BIRTH</td>
  <td>
    <a href="/wiki/Cincinnati" title="Cincinnati">Cincinnati</a>,
    <a href="/wiki/Ohio" title="Ohio">Ohio</a>,
    <a href="/wiki/USA" title="USA">USA</a>
  </td>
</tr>
 
<tr>
  <td class="persondata-label">DATE OF DEATH</td>
  <td>
    22 May 1977
  </td>
</tr>
 
<tr>
  <td class="persondata-label">PLACE OF DEATH</td>
  <td>
    <a href="/wiki/Birmingham" title="Birmingham">Birmingham</a>,
    <a href="/wiki/England" title="England">England</a>
  </td>
</tr>
 
</table>
</nowiki></pre>
 
===Suggested combination infobox, with hCard===
 
<pre><nowiki>
<table class="infobox vcard">
 
<tr>
  <th colspan="3" class="fn">John Doe</th>
</tr>
 
<tr>
  <td colspan="3">
    <a href="xxx/xxx.jpg" class="image"><img src="xxx/yyy.jpg" alt="xxx"></a>
</td>
</tr>
 
<tr>
  <td>Birth&#160;name</td>
  <td colspan="2" class="nickname">James Johannes Doeville</td>
</tr>
 
<tr>
  <td>Born</td>
  <td colspan="2">
    <abbr class="bday" title="1924-04-03">3 April 1924</abbr>,
    <span class="birthplace">
      <a href="/wiki/Cincinnati">Cincinnati</a>,
      <a href="/wiki/Ohio">Ohio</a>, <a href="/wiki/USA">USA</a>
    </span>
  </td>
</tr>
 
<tr>
  <td>Died</td>
  <td colspan="2">
    <abbr class="dday" title="1977-05-22">22 May 1977</abbr>,
    <span class="deathplace">
      <a href="/wiki/Birmingham">Birmingham</a>,
      <a href="/wiki/England">England</a>
    </span>
  </td>
</tr>
 
<tr>
  <td><b>Website</b></td>
  <td colspan="2">
    <a href="http://www.example.com/" class="external text url">John Doe tribute page</a>
  </td>
</tr>
 
<tr>
  <td>Briefly...</td>
  <td colspan="2" class="note">Treacle-bender and spaghetti-knitter</td>
</tr>
 
</table>
</nowiki></pre>


==Related pages==
==Related pages==
{{hcard-related-pages}}
{{hcard-related-pages}}

Latest revision as of 14:16, 13 April 2008

Persondata

A comparison between Wikipedia's persondata and the hCard microformat.

Welcome to anyone visiting this page from Wikipedia! Please see the introduction page and read how-to-play before making any edits - this Wiki operates differently to Wikipedia.

Editor: Andy Mabbett

Shared attributes

PERSONDATA hCard
HTML class names
- vcard (required; outer wrapper; can not be on same element as its children)
NAME fn (required)
ALTERNATIVE NAMES nickname
SHORT DESCRIPTION note
DATE OF BIRTH bday
PLACE OF BIRTH not in hCard
DATE OF DEATH not in hCard, but proposed as an extension
PLACE OF DEATH not in hCard

Notes

"fn" can be sub-divided:

  • n
    • honorific-prefix
    • given-name
    • additional-name
    • family-name
    • honorific-suffix
  • Wikipedia has a special Template for birth dates. {{birth date and age|1926|5|8}}, could output the "bday" property as one of:
    • <abbr class="bday" title="1926-05-08">8 May 1926 (age 80)</abbr> (once abbr is supported)
    • 8 May 1926 (age 80)<br style="display:none;" /><span style="display:none;" class="bday">1926-05-08</span>

(Likewise the death-date and age-calculator template: {{death date and age|1974|11|25|1948|6|19}} )

hCard attributes not in Persondata, but in Wikipedia infoboxes

  • category (tag)
  • photo
  • url

Notes

  • Persondata could use the Wikipedia page URL for the hCard url property, or the URL given in an infobox.
  • Data matching other hCard properties (adr, geo, org, etc.) may be found in Wikipedia infoboxes for organisations and venues.

Persondata attributes not in hCard

Persondata could use, for example:

PLACE OF BIRTH birthplace BIRTH
DATE OF DEATH dday or dod DDAY
PLACE OF DEATH deathplace DEATH

(Class names suggested for use in Wikipedia, without prejudice to future developments of hCard)

(Third column shows proposed vCard 4.0 names.)

Other properties

  • Persondata is hidden metadata; hCard is for data published on the page.
  • Persondata is for people; hCard can also be used for organisations and venues

Example mark-up

Wikpedia infobox

(simplified and wrapped for clarity)

<table class="infobox">

<tr>
  <th colspan="3">John Doe</th>
</tr>

<tr>
  <td colspan="3">
    <a href="xxx/xxx.jpg" class="image">
      <img src="xxx/yyy.jpg" alt="xxx">
    </a>
</td>
</tr>

<tr>
  <td><b>Birth name</b></td>
  <td colspan="2">James Johannes Doeville</td>
</tr>

<tr>
  <td><b>Born</b></td>
  <td colspan="2">
    3 April 1924, 
    <a href="/wiki/Cincinnati">Cincinnati</a>, 
    <a href="/wiki/Ohio">Ohio</a>, <a href="/wiki/USA">USA</a>
  </td>
</tr>

<tr>
  <td><b>Died</b></td>
  <td colspan="2">
    22 May 1977, 
    <a href="/wiki/Birmingham">Birmingham</a>, 
    <a href="/wiki/England">England</a>
  </td>
</tr>

<tr>
  <td>Website</td>
  <td colspan="2">
    <a href="http://www.example.com/" class="external text">John Doe tribute page</a>
  </td>
</tr>

</table>

Persondata

(Styled to be invisible by default)

<table id="persondata" class="persondata">

<tr>
  <th colspan="2"><a href="/wiki/Wikipedia:Persondata" title="Wikipedia:Persondata">Persondata</a></th>
</tr>

<tr>
  <td class="persondata-label">NAME</td>
  <td>Doe, John</td>
</tr>

<tr>
  <td class="persondata-label">ALTERNATIVE NAMES</td>
  <td>Doeville, James Johannes</td>
</tr>

<tr>
  <td class="persondata-label">SHORT DESCRIPTION</td>
  <td>treacle-bender, spaghetti-knitter</td>
</tr>

<tr>
  <td class="persondata-label">DATE OF BIRTH</td>
  <td>
    3 April 1924
  </td>
</tr>

<tr>
  <td class="persondata-label">PLACE OF BIRTH</td>
  <td>
    <a href="/wiki/Cincinnati" title="Cincinnati">Cincinnati</a>, 
    <a href="/wiki/Ohio" title="Ohio">Ohio</a>, 
    <a href="/wiki/USA" title="USA">USA</a>
  </td>
</tr>

<tr>
  <td class="persondata-label">DATE OF DEATH</td>
  <td>
    22 May 1977
  </td>
</tr>

<tr>
  <td class="persondata-label">PLACE OF DEATH</td>
  <td>
    <a href="/wiki/Birmingham" title="Birmingham">Birmingham</a>, 
    <a href="/wiki/England" title="England">England</a>
  </td>
</tr>

</table>

Suggested combination infobox, with hCard

<table class="infobox vcard">

<tr>
  <th colspan="3" class="fn">John Doe</th>
</tr>

<tr>
  <td colspan="3">
    <a href="xxx/xxx.jpg" class="image"><img src="xxx/yyy.jpg" alt="xxx"></a>
</td>
</tr>

<tr>
  <td>Birth name</td>
  <td colspan="2" class="nickname">James Johannes Doeville</td>
</tr>

<tr>
  <td>Born</td>
  <td colspan="2">
    <abbr class="bday" title="1924-04-03">3 April 1924</abbr>, 
    <span class="birthplace">
      <a href="/wiki/Cincinnati">Cincinnati</a>, 
      <a href="/wiki/Ohio">Ohio</a>, <a href="/wiki/USA">USA</a>
    </span>
  </td>
</tr>

<tr>
  <td>Died</td>
  <td colspan="2">
    <abbr class="dday" title="1977-05-22">22 May 1977</abbr>, 
    <span class="deathplace">
      <a href="/wiki/Birmingham">Birmingham</a>, 
      <a href="/wiki/England">England</a>
    </span>
  </td>
</tr>

<tr>
  <td><b>Website</b></td>
  <td colspan="2">
    <a href="http://www.example.com/" class="external text url">John Doe tribute page</a>
  </td>
</tr>

<tr>
  <td>Briefly...</td>
  <td colspan="2" class="note">Treacle-bender and spaghetti-knitter</td>
</tr>

</table>

Related pages

The hCard specification is a work in progress. As additional aspects are discussed, understood, and written, they will be added. These thoughts, issues, and questions are kept in separate pages.