Difference between revisions of "adr-cheatsheet"

From Microformats Wiki
Jump to navigation Jump to search
m (cheatsheet template)
Line 1: Line 1:
 
<h1>adr cheatsheet</h1>
 
<h1>adr cheatsheet</h1>
  
==Properties==
+
==Properties (Class Names)==
  
*class="'''[[adr]]'''" (1)
+
*'''[[adr]]'''
**class="type" [work|home|pref|postal|dom|intl] (3)
+
**type[work|home|pref|postal|dom|intl]?
**class="post-office-box" (3)
+
**post-office-box?
**class="''street-address''" (4)
+
**''street-address''*
**class="extended-address" (3)
+
**extended-address?
**class="locality" (3)
+
**locality?
**class="region" (3)
+
**region?
**class="postal-code" (3)
+
**postal-code?
**class="country-name" (3)
+
**country-name?
  
===Key===
+
{{cheatsheet-key}}
:1 - '''Single occurrence required'''
+
;pref:preferred
:2 - '''''One or more, required''''' (n/a)
+
;dom:domestic
:3 - single occurrence optional
+
;intl:international
:4 - ''zero or more occurrence''
 
:[square brackets ] - list of permitted values
 
 
 
:pref = preferred
 
:dom = domestic
 
:intl = international
 
  
 
==Related pages==
 
==Related pages==
 
{{adr-related-pages}}
 
{{adr-related-pages}}
 
*{{cheatsheets}}
 
*{{cheatsheets}}

Revision as of 23:56, 4 December 2006

adr cheatsheet

Properties (Class Names)

  • adr
    • type[work|home|pref|postal|dom|intl]?
    • post-office-box?
    • street-address*
    • extended-address?
    • locality?
    • region?
    • postal-code?
    • country-name?

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
pref
preferred
dom
domestic
intl
international

Related pages