Skip to content

Instantly share code, notes, and snippets.

@chssweb
Last active December 19, 2015 21:38
Show Gist options
  • Save chssweb/6021181 to your computer and use it in GitHub Desktop.
Save chssweb/6021181 to your computer and use it in GitHub Desktop.
Microdate markup
[Event itemscope itemtype="http://schema.org/Event"]
Title (itemprop="name")
URL (itemprop="url")
Image (itemprop="image")
description (itemprop="description")
Start Date (itemprop="startDate" content="ISO 8601 date format")
End Date (itemprop="endDate" content="ISO 8601 date format")
[Venue (itemprop="location" itemscope itemtype="http://schema.org/Place")]
Name (itemprop="name")
URL (itemprop="url")
[Address (itemprop="address" itemscope itemtype="http://schema.org/PostalAddress")]
Street Address (itemprop="streetAddress)
City/Town (itemprop="addressLocality")
Region (itemprop="addressRegion")
Postal Code (itemprop="postalCode")
[Country (itemprop="addressCountry" itemscope itemtype="http://schema.org/Country")]
Country (itemprop="name")
[/Country]
[/Address]
[/Venue]
[Contact-Point (itemprop="ContactPoint" itemscope itemtype="http://schema.org/ContactPoint")]
Email (itemprop="email")
Telephone (itemprop="telephone")
[/Contact-Point]
[/Event]
[NewsArticle itemscope itemtype="http://schema.org/NewsArticle"]
Title (itemprop="name")
Teaser (itemprop="description")
URL (itemprop="url")
Image (itemprop="image")
[Article itemscop itemtype="Article"]
Body (itemprop="articleBody")
Section (itemprop="articleSection") (a tax. reference to the location taxonomy)
[/Article]
[CreativeWork itemscope itemtype="http://schema.org/CreativeWork"]
Byline (itemprop="alternativeHeadline")
Published on (itemprop="dateCreated")
Modified on (itemprop="dateModified")
[/CreativeWork]
[/NewsArticle]
[Event vocab="http://schema.org/" typeof="Event"]
Title (property="name")
URL (property="url")
Image (property="image")
description (property="description")
Start Date (property="startDate" content="ISO 8601 date format")
End Date (property="endDate" content="ISO 8601 date format")
[Venue (property="location" vocab="http://schema.org/" typeof="Place")]
Name (property="name")
URL (property="url")
[Address (property="address" vocab="http://schema.org/" typeof="PostalAddress")]
Street Address (property="streetAddress)
City/Town (property="addressLocality")
Region (property="addressRegion")
Postal Code (property="postalCode")
[Country (property="addressCountry" vocab="http://schema.org/" typeof="Country")]
Country name (property="name")
[/Country]
[/Address]
[/Venue]
[Contact-Point (property="ContactPoint" vocab="http://schema.org/" typeof="ContactPoint")]
Email (property="email")
Telephone (property="telephone")
[/Contact-Point]
[/Event]
http://schema.org/
http://manu.sporny.org/2012/mythical-differences/
http://lin-clark.com/blog/drupal-8-now-has-schemaorg-rdf-mappings-dont-pop-champagne-yet
http://www.ibm.com/developerworks/library/x-drupalhtml5/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment