Template:cheatsheet-key: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(comment entry)
m (Reverted edits by C4tdoMcool (Talk) to last version by AndyMabbett)
 
(15 intermediate revisions by 8 users not shown)
Line 1: Line 1:
===Key===
===Key===
Uses Perl's [http://www.perl.com/doc/manual/html/pod/perlre.html standard quantifiers]:
Based on Perl's [http://www.perl.com/doc/manual/html/pod/perlre.html standard quantifiers]:
{| border="1" cellpadding="2"
{| border="1" cellpadding="2"
| '''bold''' {1} || Must be present exactly once
| '''bold''' {1} || {{must}} be present exactly once
|-  
|-  
| ''italic''<nowiki>*</nowiki> || Match 0 or more times
| ''italic''<nowiki>*</nowiki> || {{optional}}, and {{may}} occur more than once
|-  
|-  
| + || Match 1 or more times
| + || {{must}} be present, and {{may}} occur more than once
|-  
|-  
| ? || Match 1 or 0 times
| ? || {{optional}}, but {{must-not}} occur more than once
|-  
|-  
| [square brackets] || list of common values  
| [square brackets] || list of common values  
Line 14: Line 14:
| (parentheses) || data format  
| (parentheses) || data format  
|-  
|-  
| // || comment  
| # || comment  
|-
| ! || awaiting documentation
|}
|}

Latest revision as of 22:11, 20 December 2008

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