adr-cheatsheet: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
mNo edit summary
m (Reverted edits by SitcaDomri (Talk) to last version by Brian)
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<h1>adr cheatsheet</h1>
<h1>adr cheatsheet</h1>


==Properties==
[[adr]] properties and how to use them.


*class="'''[[adr]]'''" (1)
==Properties (Class Names)==
**class="type" [work|home|pref|postal|dom|intl] (3)
**class="post-office-box" (3)
**class="''street-address''" (4)
**class="extended-address" (3)
**class="locality" (3)
**class="region" (3)
**class="postal-code" (3)
**class="country-name" (3)


==Key==
*'''[[adr]]''' {1}
:1 - '''Single occurrence required'''
**type[work|home|pref|postal|dom|intl]?
:2 - '''''One or more, required''''' (n/a)
**post-office-box?
:3 - single occurrence optional
**''street-address''*
:4 - ''zero or more occurrence''
**extended-address?
:[square brackets ] - list of permitted values
**locality?
**region?
**postal-code?
**country-name?


:pref = preferred
{{cheatsheet-key}}
:dom = domestic
{| border="1" cellpadding="2"
:intl = international
| pref || preferred
|-
| dom || domestic
|-
| intl || international
|}
 
===Notes===
*{{rfc-2119-intro}}
{{adr-note}}


==Related pages==
==Related pages==
{{adr}}
{{adr-related-pages}}
*{{cheatsheets}}

Latest revision as of 22:08, 20 December 2008

adr cheatsheet

adr properties and how to use them.

Properties (Class Names)

  • adr {1}
    • 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

Notes

  • The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
  • At least one child-property MUST be present in adr.
  • If an adr-child (e.g street-address) is present it will ONLY be considered part of the adr data IF it is inside an adr.
  • FAQ: "why 'adr'?"

Related pages