Wikipedia:WikiProject Microformats/citation


 * This specification is a working draft and may change drastically, depending on input from either the Wikipedia or wider web communities.
 * See h-cite at microformats.org for further external development

A draft (or pseudo-) microformat; i.e. a set of defined HTML class names, for use in citations to allow our reader's browser tools and scripts to parse the values of the classed elements, allowing them to aggregate and reuse citations.

Use case
The benefit is to our readers, who can more easily import our citations into their aggregation tools (like Zotero for example) for use in their own documents (such as student essays) and tools (such as library catalogues); and to our editors who can "paste" a citation from such aggregators into a second article.

Addressing concerns
All this will do is add HTML classes to the existing markup - these are never seen, so the visual appearance of the citation templates would not change at all; and any change in the rendering time would be immeasurably small if not nil.

Support
Representatives of Zotero have said that if we publish and apply such a schema, then Zotero will parse it.

Classes
Per http://microformats.org/wiki/citation-brainstorming#web_citations


 * h-cite - root
 * dt-published - date published
 * p-author - author
 * p-name - common property instead of entry-title
 * u-url - a URL to access the cited work
 * u-uid - a URL/URI that uniquely/canonically identifies the cited work, canonical permalink. Needed?
 * p-publication -
 * dt-accessed - date the cited work was accessed
 * p-content for when the citation includes a quote

Additional
From elsewhere on http://microformats.org/wiki/citation-brainstorming


 * p-editor - editor
 * p-publisher - publishing house

Example
(Print-only parameters omitted and line breaks added, for clarity)

becomes:

Example 2
For:

Which renders as:



The HTML is (whitespace added; irrelevant attributes omitted, for clarity):

and could become:

by adding classes "h-cite", "u-url", "u-uid", "p-author" (twice), "p-editor" (twice), "dt-published", "p-publication", "p-name", "p-publisher" and "dt-accessed".

Mapping
Provisional mapping against properties in Module:Citation/CS1/Configuration:


 * AccessDate = dt-accessed
 * Agency =
 * AirDate = dt-published
 * ArchiveDate =
 * ArchiveFormat =
 * ArchiveURL = u-url
 * ASINTLD =
 * At =
 * Authors = p-author *
 * BookTitle =
 * Callsign =
 * Cartography =
 * Chapter =
 * ChapterFormat =
 * ChapterURL =
 * City =
 * Class =
 * Coauthors = p-author *
 * Collaboration =
 * Conference =
 * ConferenceFormat =
 * ConferenceURL =
 * Contribution =
 * Date = dt-published
 * DeadURL =
 * Degree =
 * DF =
 * DisplayAuthors = p-author *
 * DisplayEditors = p-editor *
 * Docket =
 * DoiBroken =
 * Edition =
 * Editors = p-editor *
 * Embargo =
 * Encyclopedia =
 * Episode =
 * Format =
 * ID =
 * IgnoreISBN =
 * Inset =
 * Issue =
 * Language =
 * LastAuthorAmp =
 * LayDate =
 * LayFormat =
 * LaySource =
 * LayURL =
 * MailingList =
 * Map =
 * MapFormat =
 * MapURL =
 * MessageID =
 * Minutes =
 * Mode =
 * NameListFormat =
 * Network =
 * NoPP =
 * NoTracking =
 * Number =
 * OrigYear =
 * Others =
 * Page =
 * Pages =
 * Periodical =
 * Place =
 * Program =
 * PostScript =
 * PublicationDate = dt-published
 * PublicationPlace =
 * PublisherName =
 * Quote = p-content
 * Ref =
 * RegistrationRequired =
 * Scale =
 * ScriptChapter =
 * ScriptTitle =
 * Section =
 * Season =
 * Sections =
 * Series =
 * SeriesSeparator =
 * SeriesLink =
 * SeriesNumber =
 * Sheet =
 * Sheets =
 * Station =
 * SubscriptionRequired =
 * Time =
 * TimeCaption =
 * Title = p-name
 * TitleLink =
 * TitleNote =
 * TitleType =
 * TransChapter =
 * TransMap =
 * Transcript =
 * TranscriptFormat =
 * TranscriptURL =
 * TransTitle = p-name
 * URL = u-url
 * Vauthors =
 * Veditors =
 * Via =
 * Volume =
 * Year = dt-published


 * AuthorList-First =
 * AuthorList-Last =
 * AuthorList-Link =
 * AuthorList-Mask =
 * ContributorList-First =
 * ContributorList-Last =
 * ContributorList-Link =
 * ContributorList-Mask =


 * EditorList-First =
 * EditorList-Last =
 * EditorList-Link =
 * EditorList-Mask =
 * TranslatorList-First =
 * TranslatorList-Last =
 * TranslatorList-Link =
 * TranslatorList-Mask =

To do

 * Consider date formatting (c/f Start date)
 * Wrap the author in an hCard
 * match relevant properties in Module:Citation/CS1/Configuration