persondata: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(Example markup)
Line 65: Line 65:
===Wikpedia infobox===
===Wikpedia infobox===
<pre><nowiki>
<pre><nowiki>
<table class="infobox" >
<table class="infobox">
<tr>
<tr>
<th colspan="3"><big>John Doe</big></th>
  <th colspan="3">John Doe</th>
</tr>
</tr>
<tr>
<tr>
<td colspan="3"><a href="xxx/xxx.jpg" class="image" ><img src="xxx/yyy.jpg" alt="xxx"></a>
  <td colspan="3"><a href="xxx/xxx.jpg" class="image" ><img src="xxx/yyy.jpg" alt="xxx"></a>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td><b>Birth&#160;name</b></td>
  <td><b>Birth&#160;name</b></td>
<td colspan="2">James Johannes Doeville</td>
  <td colspan="2">James Johannes Doeville</td>
</tr>
</tr>
<tr>
<tr>
<td><b>Born</b></td>
  <td><b>Born</b></td>
<td colspan="2">3 April 1924</a>, <a href="/wiki/Cincinnati">Cincinnati</a>, <a href="/wiki/Ohio">Ohio</a>, <a href="/wiki/USA">USA</a></td>
  <td colspan="2">3 April 1924</a>, <a href="/wiki/Cincinnati">Cincinnati</a>, <a href="/wiki/Ohio">Ohio</a>, <a href="/wiki/USA">USA</a></td>
</tr>
</tr>
<tr>
<tr>
<td><b>Died</b></td>
  <td><b>Died</b></td>
<td colspan="2">22 May 1977</a>, <a href="/wiki/Birmingham">Birmingham</a>, <a href="/wiki/England">England</a></td>
  <td colspan="2">22 May 1977</a>, <a href="/wiki/Birmingham">Birmingham</a>, <a href="/wiki/England">England</a></td>
</tr>
</tr>
<tr>
<tr>
<tr>
<tr>
<td><b>Website</b></td>
  <td><b>Website</b></td>
<td colspan="2"><a href="http://www.example.com/" class="external text">John Doe tribute page</a></td>
  <td colspan="2"><a href="http://www.example.com/" class="external text">John Doe tribute page</a></td>
</tr>
</tr>
</table>
</table>
</nowiki></pre>
<nowiki><pre>


===Persondata===
===Persondata===
(Styled to be invisible by defualt)
(Styled to be invisible by defualt)
<pre><nowiki>
<table id="persondata" class="persondata">
<table id="persondata" class="persondata">
<tr>
<tr>
<th colspan="2"><a href="/wiki/Wikipedia:Persondata" title="Wikipedia:Persondata">Persondata</a></th>
  <th colspan="2"><a href="/wiki/Wikipedia:Persondata" title="Wikipedia:Persondata">Persondata</a></th>
</tr>
</tr>
<tr>
<tr>
<td class="persondata-label">NAME</td>
  <td class="persondata-label">NAME</td>
<td>Doe, John</td>
  <td>Doe, John</td>
</tr>
</tr>
<tr>
<tr>
<td class="persondata-label">ALTERNATIVE NAMES</td>
  <td class="persondata-label">ALTERNATIVE NAMES</td>
<td>Doeville, James Johannes</td>
  <td>Doeville, James Johannes</td>
</tr>
</tr>
<tr>
<tr>
<td class="persondata-label">SHORT DESCRIPTION</td>
  <td class="persondata-label">SHORT DESCRIPTION</td>
<td>singer, actress, animal welfare advocate</td>
  <td>singer, actress, animal welfare advocate</td>
</tr>
</tr>
<tr>
<tr>
<td class="persondata-label">DATE OF BIRTH</td>
  <td class="persondata-label">DATE OF BIRTH</td>
<td><a href="/wiki/April_3" title="April 3">3 April</a> <a href="/wiki/1924" title="1924">1924</a></td>
  <td><a href="/wiki/April_3" title="April 3">3 April</a> <a href="/wiki/1924" title="1924">1924</a></td>
</tr>
</tr>
<tr>
<tr>
<td class="persondata-label">PLACE OF BIRTH</td>
  <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>
  <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>
<tr>
<tr>
<td class="persondata-label">DATE OF DEATH</td>
  <td class="persondata-label">DATE OF DEATH</td>
<td><a href="/wiki/May_22" title="May 22">22 May</a> <a href="/wiki/1977" title="1977">1977</a></td>
  <td><a href="/wiki/May_22" title="May 22">22 May</a> <a href="/wiki/1977" title="1977">1977</a></td>
</tr>
</tr>
<tr>
<tr>
<td class="persondata-label">PLACE OF DEATH</td>
  <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>
  <td><a href="/wiki/Birmingham" title="Birmingham">Birmingham</a>, <a href="/wiki/England" title="England">England</a></td>
</tr>
</tr>
</table>
</table>
</nowiki></pre>


===Suggested combination infobox, with hCard===
===Suggested combination infobox, with hCard===
(to follow)
 
<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><b>Birth&#160;name</b></td>
  <td colspan="2" class="nickname>James Johannes Doeville</td>
</tr>
<tr>
  <td><b>Born</b></td>
  <td colspan="2"><abbr class= "bday" title="1924-04-03">3 April 1924</abbr></a>, <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><b>Died</b></td>
  <td colspan="2"><abbr tclass= "dday" title="1977-05-22">22 May 1977</abbr></a>, <span "class=deathplace"><a href="/wiki/Birmingham">Birmingham</a>, <a href="/wiki/England">England</a></span></td>
</tr>
<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><b>Briefly...</b></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}}
</nowiki></pre>

Revision as of 20:10, 28 March 2007

Persondata

A comparison between Wiikipedia's persondata and the 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.

Editor: Andy Mabbett

Shared attributes

PERSONDATA hCard
HTML class names
- vcard required (outer wrapper; can not be on 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

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
DATE OF DEATH dday or dod
PLACE OF DEATH deathplace

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

<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>, <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>, <a href="/wiki/Birmingham">Birmingham</a>, <a href="/wiki/England">England</a></td>
</tr>
<tr>
<tr>
  <td><b>Website</b></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 defualt)
<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>singer, actress, animal welfare advocate</td>
</tr>
<tr>
  <td class="persondata-label">DATE OF BIRTH</td>
  <td><a href="/wiki/April_3" title="April 3">3 April</a> <a href="/wiki/1924" title="1924">1924</a></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><a href="/wiki/May_22" title="May 22">22 May</a> <a href="/wiki/1977" title="1977">1977</a></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===

<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><b>Birth name</b></td>
  <td colspan="2" class="nickname>James Johannes Doeville</td>
</tr>
<tr>
  <td><b>Born</b></td>
  <td colspan="2"><abbr class= "bday" title="1924-04-03">3 April 1924</abbr></a>, <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><b>Died</b></td>
  <td colspan="2"><abbr tclass= "dday" title="1977-05-22">22 May 1977</abbr></a>, <span "class=deathplace"><a href="/wiki/Birmingham">Birmingham</a>, <a href="/wiki/England">England</a></span></td>
</tr>
<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><b>Briefly...</b></td>
  <td colspan="2" class="note">Treacle-bender and spaghetti-knitter</td>
</tr>
</table>
<nowiki><pre>

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