<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eric Wendelin&#039;s Blog &#187; Microformats</title>
	<atom:link href="http://eriwen.com/category/microformats/feed/" rel="self" type="application/rss+xml" />
	<link>http://eriwen.com</link>
	<description>Programming productively with open-source tools</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:30:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Microformats: Add hCard to your blogroll in 2 minutes flat</title>
		<link>http://eriwen.com/microformats/add-hcard-to-blogroll/</link>
		<comments>http://eriwen.com/microformats/add-hcard-to-blogroll/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 13:48:31 +0000</pubDate>
		<dc:creator>Eric Wendelin</dc:creator>
				<category><![CDATA[Microformats]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://eriwen.com/microformats/add-hcard-to-blogroll/</guid>
		<description><![CDATA[<img alt="" src="http://static.eriwen.com/images/orange_microformat.png" style="float: left; margin: 0px 8px 4px 0px" />As a supporter of <a href="http://microformats.org" target="_blank">microformats</a>, I want to provide you some amazingly easy ways to add them to your blog. To kick this off, I'm going to tell you how you can turn your WordPress or Blogger blogroll into a list of <a href="http://microformats.org/wiki/hcard-examples#References_to_People_in_Blogrolls" target="_blank">hCard</a>s in less than 2 minutes!
 <a href="http://eriwen.com/microformats/add-hcard-to-blogroll/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://eriwen.com/microformats/what-are-microformats-and-why-do-you-care/' rel='bookmark' title='What are microformats and why do you care?'>What are microformats and why do you care?</a></li>
<li><a href='http://eriwen.com/javafx/javafx-syntaxhighlighter/' rel='bookmark' title='How to add JavaFX to SyntaxHighlighter'>How to add JavaFX to SyntaxHighlighter</a></li>
<li><a href='http://eriwen.com/javascript/measure-ems-for-layout/' rel='bookmark' title='Javascript: Measure those &#8220;em&#8221;s for your layout'>Javascript: Measure those &#8220;em&#8221;s for your layout</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://static.eriwen.com/images/orange_microformat.png" style="float: left; margin: 0px 8px 4px 0px" />As a supporter of <a href="http://microformats.org" target="_blank">microformats</a>, I want to provide you some amazingly easy ways to add them to your blog. To kick this off, I&#8217;m going to tell you how you can turn your WordPress or Blogger blogroll into a list of <a href="http://microformats.org/wiki/hcard-examples#References_to_People_in_Blogrolls" target="_blank">hCard</a>s in less than 2 minutes!</p>
<h2>WordPress</h2>
<p>Doing this in <a href="http://wordpress.org" target="_blank">WordPress</a> is dead simple. Just open up <em>wp-includes/bookmark-template.php</em> and make the following changes. I prefer to download the files here and make edits with <a href="http://www.jedit.org/" target="_blank">jEdit</a> :)</p>
<pre class="brush: plain; light: true; title: ; notranslate">
// Line 6
'show_images' =&gt; 1, 'before' =&gt; '&lt;li&gt;',

// Change to
'show_images' =&gt; 1, 'before' =&gt; '&lt;li class=&quot;vcard&quot;&gt;',
</pre>
<pre class="brush: plain; light: true; title: ; notranslate">
// Line 48 or something similar ;)
$output .= '&lt;a href=&quot;' . $the_link . '&quot;' . $rel . $title . $target. '&gt;';

// Change to
$output .= '&lt;a class=&quot;fn url&quot; href=&quot;' . $the_link . '&quot;' . $rel . $title . $target. '&gt;';
</pre>
<p>You could use the <a href="http://factorycity.net/projects/wp-microformatted-blogroll/" target="_blank">WP Microformatted Blogroll</a> plugin for WordPress, but I like this much better because it looks like it can&#8217;t be used by a dynamic sidebar and maybe I just like to code ok?</p>
<h2>Blogger</h2>
<p>For Blogger you are going to need to edit your template <abbr title="HyperText Markup Language">HTML</abbr>, and make sure you check the <em>Expand Widget Templates</em> checkbox. About 4/5ths of the way down you should see a code block like this:</p>
<pre class="brush: xml; light: true; title: ; notranslate">
&lt;b:widget id='LinkList1' locked='false' title='Blogroll' type='LinkList'&gt;
  &lt;b:includable id='main'&gt;
    &lt;b:if cond='data:title'&gt;&lt;h2&gt;&lt;data:title/&gt;&lt;/h2&gt;&lt;/b:if&gt;
    &lt;div class='widget-content'&gt;
      &lt;ul&gt;
        &lt;b:loop values='data:links' var='link'&gt;
          &lt;li&gt;&lt;a expr:href='data:link.target'&gt;&lt;data:link.name/&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;/b:loop&gt;
      &lt;/ul&gt;
    &lt;b:include name='quickedit'/&gt;
    &lt;/div&gt;
  &lt;/b:includable&gt;
&lt;/b:widget&gt;
</pre>
<p>You just need to edit the list items in the loop to add <em>&lt;li class=&#8217;vcard&#8217;</em> and <em>&lt;a class=&#8217;fn url&#8217;</em> like so:</p>
<pre class="brush: xml; light: true; title: ; notranslate">
&lt;ul&gt;
  &lt;b:loop values='data:links' var='link'&gt;
    &lt;li class='vcard'&gt;&lt;a class='fn url' expr:href='data:link.target'&gt;&lt;data:link.name/&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;/b:loop&gt;
&lt;/ul&gt;
</pre>
<p>However, to add <abbr title="XHTML Friends Network">XFN</abbr> as well you will have to remove the loop and create the &lt;li&gt; tags yourself. You can find out more about <a href="http://gmpg.org/xfn/" target="_blank">XFN here</a>.</p>
<pre class="brush: xml; light: true; title: ; notranslate">
&lt;ul&gt;
  &lt;li class=&quot;vcard&quot;&gt;
    &lt;a class=&quot;fn url&quot; href=&quot;http://davidwalsh.name&quot; rel=&quot;friend&quot;&gt;David Walsh&lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&quot;vcard&quot;&gt;
    &lt;a class=&quot;fn url&quot; href=&quot;http://casedogdesigns.com&quot; rel=&quot;friend colleague met&quot;&gt;Casey Watson&lt;/a&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>That&#8217;s all! Easy, right? What other ways have you incorporated microformats into your website or blog? <a href="http://eriwen.com/feed/">Stay tuned</a> for more simple ways you can jazz up your blog with microformats!</p>


<p>Related posts:<ol><li><a href='http://eriwen.com/microformats/what-are-microformats-and-why-do-you-care/' rel='bookmark' title='What are microformats and why do you care?'>What are microformats and why do you care?</a></li>
<li><a href='http://eriwen.com/javafx/javafx-syntaxhighlighter/' rel='bookmark' title='How to add JavaFX to SyntaxHighlighter'>How to add JavaFX to SyntaxHighlighter</a></li>
<li><a href='http://eriwen.com/javascript/measure-ems-for-layout/' rel='bookmark' title='Javascript: Measure those &#8220;em&#8221;s for your layout'>Javascript: Measure those &#8220;em&#8221;s for your layout</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eriwen.com/microformats/add-hcard-to-blogroll/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What are microformats and why do you care?</title>
		<link>http://eriwen.com/microformats/what-are-microformats-and-why-do-you-care/</link>
		<comments>http://eriwen.com/microformats/what-are-microformats-and-why-do-you-care/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 05:00:00 +0000</pubDate>
		<dc:creator>Eric Wendelin</dc:creator>
				<category><![CDATA[Microformats]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://eriwen.com/2007/08/what-are-microformats-and-why-do-you-care/</guid>
		<description><![CDATA[There seems to be a bit of buzz around <a href="http://en.wikipedia.org/wiki/Microformats" target="_blank">microformats</a> since developer teams at Mozilla and Microsoft have announced that the next version of their browsers will support them.
<h3>What are Microformats</h3>
<img src="http://eriwen.com/images/microformats.jpg" alt="microformats logo" style="float: left" id="microformats_jpg" /> According to <a href="http://microformats.org">microformats.org</a>:
<blockquote>Microformats are small bits of HTML that represent things like people, events, tags etc. in web pages.</blockquote>
These small bits of <a href="http://microformats.org/wiki/semantic-html" target="_blank">Semantic HTML</a> will allow website viewers to interact with websites in many more ways. <a href="http://eriwen.com/microformats/what-are-microformats-and-why-do-you-care/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://eriwen.com/microformats/add-hcard-to-blogroll/' rel='bookmark' title='Microformats: Add hCard to your blogroll in 2 minutes flat'>Microformats: Add hCard to your blogroll in 2 minutes flat</a></li>
<li><a href='http://eriwen.com/groovy/introducing-groovyrtm/' rel='bookmark' title='Introducing GroovyRTM: A Groovier way to Remember The Milk'>Introducing GroovyRTM: A Groovier way to Remember The Milk</a></li>
<li><a href='http://eriwen.com/javascript/highlight-search-results-with-js/' rel='bookmark' title='How to highlight search results with JavaScript and CSS'>How to highlight search results with JavaScript and CSS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There seems to be a bit of buzz around <a href="http://en.wikipedia.org/wiki/Microformats" target="_blank">microformats</a> since developer teams at Mozilla and Microsoft have announced that the next version of their browsers will support them.</p>
<h2>What are Microformats</h2>
<p><img src="http://eriwen.com/images/microformats.jpg" alt="microformats logo" style="float: left" id="microformats_jpg" /> According to <a href="http://microformats.org">microformats.org</a>:</p>
<blockquote><p>Microformats are small bits of HTML that represent things like people, events, tags etc. in web pages.</p></blockquote>
<p>These small bits of <a href="http://microformats.org/wiki/semantic-html" target="_blank">Semantic HTML</a> will allow website viewers to interact with websites in many more ways.<br />
For example:</p>
<ul>
<li><span class="firstletter">T</span>he link to my name on the right is an <a href="http://microformats.org/wiki/hcard" target="_blank">hCard</a> microformat that allows you to add me as a contact through many services (even as a vCard in Microsoft Outlook or Mozilla Thunderbird).</li>
<li><a href="http://maps.google.com" target="_blank"><span class="firstletter">G</span>oogle Maps</a> allows you to add businesses as contacts or bookmarks using hCard microformats and I suspect there will also be <a href="http://microformats.org/wiki/geo" target="_blank">geocoding</a> microformats used as well. Maybe they are even there now but I can&#8217;t detect them.</li>
<li><a href="http://upcoming.yahoo.com/" target="_blank"><span class="firstletter">U</span>pcoming.org</a>, recently changed to upcoming.yahoo.com, uses <a href="http://microformats.org/wiki/hcalendar" target="_blank">hCalendar</a> microformats for its event system. You will be able to integrate this into your favorite calendar application (Sunbird, Google Calendar).</li>
<li><span class="firstletter">S</span>ee those labels at the bottom of this post? Microformats can make these slightly more useful by integrating with your favorite services that use tagging for organization. Perhaps <a href="http://technorati.com/" target="_blank">Technorati </a>could automatically tag this blog post with HTML and microformats so users can more easily find relevant content.</li>
<li><span class="firstletter">T</span>he new <acronym title="World Wide Web">WWW</acronym> is the social WWW. A whole new layer to this exciting giant social network of a planet will could be added by the <a href="http://gmpg.org/xfn/" target="_blank">XFN</a> (XHTML Friends Network) microformats. I imagine it is not too far off until something like <a href="http://www.linkedin.com/" target="_blank">LinkedIn</a> creates human networks with these babies. The Blogroll on your right is a good example. You can also add these guys to contact management services.</li>
<li><span class="firstletter">T</span>here are many more microformats in draft (hResume, hAtom, adr, and more as of this writing). Keep up to date by watching <a href="http://microformats.org/wiki/Main_Page" target="_blank">Microformats Wiki Main Page</a>.</li>
</ul>
<p>You might ask, Eric what can I do? Can I help? Fear not dear reader, there is plenty you can do right now to prepare for the future:</p>
<ul>
<li><span class="firstletter">I</span>f you use <a href="http://www.getfirefox.com" target="_blank">Firefox</a>, get the <a href="https://addons.mozilla.org/en-US/firefox/addon/4106" target="_blank">Operator Add-on</a> and convince yourself that these things are really, really cool.</li>
<li><span class="firstletter">I</span>f you have a blog or website, start using some microformats. Steal some of my code and do it. Be a pioneer (First you need to make your website <acronym title="Plain Old Semantic HTML">POSH</acronym>.</li>
<li><span class="firstletter">S</span>pread the word. Blog about microformats or trackback to this one.</li>
<li><span class="firstletter">I</span>f you are fluent in another language, help translate the microformats.org wiki pages. They need your help to get the message into other languages.</li>
</ul>
<h2>Why you should care</h2>
<p>Notice at this point that I have not answered the &#8220;Why do you care&#8221; question. I think that Semantic HTML is going to play a major part in the future of web development. Semantic HTML encourages better design, scalability, and accessibility. On top of that, many open web services will be able to capitalize (maybe too much?) on the metadata we provide through microformats. As with many technologies, it will be ignored or explode, and right now I am guessing the latter. It is best to be informed so that you can capitalize if opportunity presents itself.</p>
<p>What do you think? Is this exciting to you? Let me hear it in the comments!</p>


<p>Related posts:<ol><li><a href='http://eriwen.com/microformats/add-hcard-to-blogroll/' rel='bookmark' title='Microformats: Add hCard to your blogroll in 2 minutes flat'>Microformats: Add hCard to your blogroll in 2 minutes flat</a></li>
<li><a href='http://eriwen.com/groovy/introducing-groovyrtm/' rel='bookmark' title='Introducing GroovyRTM: A Groovier way to Remember The Milk'>Introducing GroovyRTM: A Groovier way to Remember The Milk</a></li>
<li><a href='http://eriwen.com/javascript/highlight-search-results-with-js/' rel='bookmark' title='How to highlight search results with JavaScript and CSS'>How to highlight search results with JavaScript and CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eriwen.com/microformats/what-are-microformats-and-why-do-you-care/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

