Template:cheatsheet-key: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
m (decap)
m (Reverted edits by C4tdoMcool (Talk) to last version by AndyMabbett)
 
(4 intermediate revisions by 2 users not shown)
Line 4: Line 4:
| '''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  

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