mfcomment: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
No edit summary
 
m (Reverted edits by C4tliDarla (Talk) to last version by AndyMabbett)
 
(9 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{DeprecatedHistoricalPage}}
If you are interested in using microformats to markup your comments, [[hatom|hAtom]] is recommended.
== Author ==
* [http://an9.org/devdev Andy Smith]
== Introduction ==
== Introduction ==
I'm no spec draft lawyer, so just take this as being "in the same vein" as hReview, hCalendar and the like.
I'm no spec draft lawyer, so just take this as being "in the same vein" as hReview, hCalendar and the like. I feel the examples are pretty self-explanatory.
 


== Examples ==
The big example, using as many properties as seemed could apply to a comment:
The big example, using as many properties as seemed could apply to a comment:
<pre><nowiki>
  &lt;div class="mfcomment"&gt;
  &lt;div class="mfcomment"&gt;
     &lt;span class="version"&gt;0.1&lt;/span&gt;
     &lt;span class="version"&gt;0.1&lt;/span&gt;
Line 20: Line 27:
     &lt;a class="url" rel="self bookmark" href="http://sxore.com/comment/view/14"&gt;link to this comment&lt;/a&gt;
     &lt;a class="url" rel="self bookmark" href="http://sxore.com/comment/view/14"&gt;link to this comment&lt;/a&gt;
  &lt;/div&gt;
  &lt;/div&gt;
 
</nowiki></pre>
The small example, using a minimum set of data:
The small example, using a minimum set of data:
<pre><nowiki>
  &lt;div class="mfcomment"&gt;
  &lt;div class="mfcomment"&gt;
     &lt;a class="url" rel="target" href="http://an9.org/blog/2005/06/07/super-sekret-project/"&gt;Super Sekret Project&lt;/a&gt;
     &lt;a class="url" rel="target" href="http://an9.org/blog/2005/06/07/super-sekret-project/"&gt;Super Sekret Project&lt;/a&gt;
Line 31: Line 39:
     &lt;a class="url" rel="self bookmark" href="http://sxore.com/comment/view/14"&gt;link to this comment&lt;/a&gt;
     &lt;a class="url" rel="self bookmark" href="http://sxore.com/comment/view/14"&gt;link to this comment&lt;/a&gt;
  &lt;/div&gt;
  &lt;/div&gt;
</nowiki></pre>

Latest revision as of 10:40, 5 January 2009

This page is deprecated because it doesn't follow the process, but it is left here for historical purposes. If you are interested in using microformats to markup your comments, hAtom is recommended.

Author

Introduction

I'm no spec draft lawyer, so just take this as being "in the same vein" as hReview, hCalendar and the like. I feel the examples are pretty self-explanatory.

Examples

The big example, using as many properties as seemed could apply to a comment:

 <div class="mfcomment">
    <span class="version">0.1</span>
    <span> Regarding: <a class="url" rel="target" href="http://an9.org/blog/2005/06/07/super-sekret-project/">Super Sekret Project</a></span>
    By: <span class="commenter"> <!-- I'm an hCard -->
        <a class="url nickname" href="http://anarkystic.com/blog">termie</a>
        <span class="fn">Andy Smith</a>
        <img class="photo" src="http://an9.org/images/small_andy.png" alt="Photo of Andy Smith" /> 
    </span>
    <a class="url" rel="thread parent" href="http://sxore.com/comment/view/14">parent</a>
    <div class="summary">Just a comment...</div>
    <abbr class="dtcommented" title="20050612T21:30-0700"><!-- I'm the same as dtreviewed for hReview -->June 12th, 2005</abbr>
    <div class="description">
        <p>Boy, I really like that thing</p>
    </div>
    <a class="url" rel="self bookmark" href="http://sxore.com/comment/view/14">link to this comment</a>
 </div>

The small example, using a minimum set of data:

 <div class="mfcomment">
    <a class="url" rel="target" href="http://an9.org/blog/2005/06/07/super-sekret-project/">Super Sekret Project</a>
    <span class="commenter">anonymous</span>
    <abbr class="dtcommented" title="20050612T21:30-0700">June 12th, 2005</abbr>
    <div class="description">
        <p>Gosh, this is neat.</p>
    </div>
    <a class="url" rel="self bookmark" href="http://sxore.com/comment/view/14">link to this comment</a>
 </div>