Difference between revisions of "hatom-cheatsheet"

From Microformats Wiki
Jump to navigation Jump to search
m (changed cardinality on AUTHOR because there can be multiple authors per entry)
(replace bold with {1}, where appropriate)
Line 5: Line 5:
 
*hfeed?
 
*hfeed?
 
**''[[rel-tag]]''*
 
**''[[rel-tag]]''*
**'''''hentry'''''+
+
**hentry+
***'''author'''+ ([[hcard|hCard]]) {5} ([[hatom#Entry_Author|default rule]])
+
***author+ ([[hcard|hCard]]) // if absent, defaults as described at [[hatom#Entry_Author]]
***'''[[rel-bookmark]]''' {5} ([[hatom#Entry_Permalink|default rule]])
+
***'''[[rel-bookmark]]''' {1} // if absent, defaults as described at [[hatom#Entry_Permalink]]
***'''entry-title'''
+
***'''entry-title''' {1}
 
***''entry-content''*
 
***''entry-content''*
 
***''entry-summary''*
 
***''entry-summary''*
 
***published ([[datetime-design-pattern |ISO date]])?
 
***published ([[datetime-design-pattern |ISO date]])?
***'''updated''' ([[datetime-design-pattern |ISO date]]) {5} ([[hatom#Entry_Updated|default rule]])
+
***'''updated''' ([[datetime-design-pattern |ISO date]]) {1} // if absent, defaults as described at [[hatom#Entry_Updated]]
 
***''[[rel-tag]]''*
 
***''[[rel-tag]]''*
  
 
{{cheatsheet-key}}
 
{{cheatsheet-key}}
;{5}:'''required, but with default rule'''
 
  
 
==Notes==
 
==Notes==

Revision as of 19:13, 5 December 2006

hAtom cheatsheet

Properties

Key

Based on Perl's standard quantifiers:

bold {1} MUST be present exactly once
italic* OPTIONAL, and MAY occur more than once
+ MUST be present, and MAY occur more than once
? OPTIONAL, but MUST NOT occur more than once
[square brackets] list of common values
(parentheses) data format
# comment
! awaiting documentation

Notes

Related pages