Wikiproject Microformats

with geo information are yummy hack fodder ...

    marking up data in a predictable manner is a great way to allow developers to play with your information. (Chris Heilmann, Yahoo Developer Network)

Project aims

  • To encourage the deployment of microformats in Wikipedia
    • by marking-up templates
  • To share the resulting experience with other-language Wikipedias and other wiki-projects
    • by harmonizing metadata template formats across projects
    • by facilitating interwiki transfer of metadata between projects
  • To document microformats in the article space, to the best possible standards
    • To maintain a plain-language guide to using Wikipedia's microformats
  • To give feedback to the microformat community, so that microformats can be developed to best serve both Wikipedia and the wider on-line community
  • To encourage the deployment of microformats in the Wiki application
    • including (but not only) hCard in user profiles
  • To advocate for the use of microformats by partner projects, metadata consumers, etc.
    • by ensuring that templates are parsable in the wiki source code
  • To collaborate with other efforts to improve Wikipedia's metadata and data-reuse techniques such as linked data

What are microformats?

A Microformat (sometimes abbreviated μF or uF) is a way of adding simple semantic meaning to human-readable content which is otherwise, from a machine's point of view, just plain text. They allow data items such as events, contact details or locations, on HTML (or XHTML) web pages, to be meaningfully detected and the information in them to be extracted by software, and indexed, searched for, saved or cross-referenced, so that it can be reused or combined.

More technically, they are items of semantic mark up, using just standard (X)HTML with a set of common class-names and rel-attributes (though the latter are not used on MediaWiki). They are open and available, freely, for anyone to use.

For example, 52.48,-1.89 is a pair of numbers which may refer to anything; but in some contexts could be understood to be a set of geographic coordinates. By wrapping them in spans (or other HTML elements) with specific class names (in this case part of the geo microformat specification):

52.48,-1.89 

... machines can be told exactly what each value represents, and can then index it, look it up on a map, export it to a GPS device, or whatever.

Other microformats allow the encoding and extraction of events, biographical/ contact information, social relationships, species names, product details, reviews, audio recordings, and so on. More are being developed.

Version 3 of the Firefox browser includes, and a future version of Internet Explorer may include, native support for microformats.

Using our microformats

Page content marked up with microformats may be extracted using various browser plugins and parsers.

How can we use Microformats on Wikipedia?

(and, more generally, in MediaWiki)?

It is easier to apply them to templates rather than individual pages. That also means that individual authors need not know the intricacies of microformat mark-up, only how to use the relevant template. Many of the templates on Wikipedia require minimal changes to use microformats to present their existing content with added meaning. While the functionality may already exist in the Wikipedia template, adding microformat mark-up will make that functionality available to people using the same tools they use when visiting other sites.

Project members

Button

Use {{User Microformats}} to show your participation in this project.

Put {{WikiProject Microformats}} on the talk page of relevant articles.

Signature

Consider adding an hCard to your signature, like this:

  • [[User:Pigsonthewing|Pigsonthewing]]; [[User talk:Pigsonthewing|talk]]

If your user name has more than one word, and is not a given-name+surname pair, use class="duhoc-kn fn nickname".

Templates

  • {{URL}} – input/ display / link = www.example.com / http://www.example.com/ / http://www.example.com/

This wraps the displayed URL with class="duhoc-kn url".

Meta templates

For articles

  • {{UF-coord-th}} – table header for columns of coordinates using {{Coord}}.
  • {{Kml}} – links to KML services for pages with multiple occurrences of Geo.
  • {{UF-timeline}} – links to siatec.net/timeline which generates a timeline of hCalendar microformats on the linking page

For talk pages

For templates

  • {{Infobox}} and {{Navbox}} have built-in support for adding microformat classes to the templates they generate.
  • {{Abbr}} and {{Abbrlink}} take a |class= parameter.

For template documentation

Categories

Articles

The following categories are not yet widely applied (see Emitting categories), and so under-represent the numbers concerned:

  • Articles with microformats – ೦
    • Articles with Adr microformats – ೦
    • Articles with hAudio microformats – ೨೨೪
    • Articles with hCalendars – ೦
    • Articles with hCards – ೬೫೫
    • Articles with Geo – ೦
    • Articles with hCards and Geo – ೦
    • Articles with hMedia microformats – ೦
    • Articles with hProducts – ೧೦
    • Articles with hRecipes – ೭೩
    • Articles with 'species' microformats – ೮೪೪

Template categories

  • ವರ್ಗ:Templates generating microformats – ೨
    • Templates generating ADR microformats – ೩
    • Templates generating hAudio microformats – ೪
    • Templates generating Geo – ೫
      • Templates generating hCalendars and Geo – ೧
      • Templates generating hCards and Geo – ೪೩
    • Templates generating hCalendars – ೩೬
      • Templates generating hCalendars and Geo – ೧
    • Templates generating hCards – ೮೩
      • Templates generating hCards and Geo – ೪೩
    • Templates generating hProduct – ೬
    • Templates generating hRecipe – ೩
    • Templates generating 'species' microformats – ೪

Parser functions

The following may be of use.

  • #time (in MediaWiki version 1.6 and higher)
    • Can change date formats around. For example, {{#time: c|10 June 2007}} produces 2007-06-10T00:00:00+00:00. The 'c' indicates that ISO8601 format should be used. A 'Y' instead of 'c' would return just the four digit year. However, this might run into trouble with the date parameter values on some templates. For instance, if a range (e.g. 1954-1955) were used in the date parameter {{#time: c|1954-1955}} would return Error: Invalid time (per [೧].

To do

Volunteers needed!

  • Add hCard mark-up to templates (chiefly infoboxes) about places and people, modelled on existing examples.
  • Add or hCard mark-up to navbox templates like these: Pink Floyd, Mike Patton, Sheffield buildings
  • Add or hCard mark-up to stub templates
  • For tables like those in ವರ್ಗ:Lists of mountains, update table rows to use hCard; perhaps by introducing table-row templates.
  • Contribute to development of a policy on coordinates for linear features
  • Contribute to development of a policy or policies on in-line microformats
  • Lobby for ability to use tbody in tables
  • Lobby for ability to use class and rel attributes on internal (including File:) and external links
    • see bugs, below
  • Lobby for ability to use class attributes in img elements.
    • see bugs, below
  • Make templates emit hidden categories such as ವರ್ಗ:Articles with hCards. See Emitting categories
  • Add hAudio to templates like {{Listen}}/ {{Listen/core}}; {{Audio}}, {{Multi-listen item}}
    • needs tbody in tables; see bugs, below
  • Follow Extended Date Time Format efforts at the USA’s Library of Congress

Currently available

Geo

Geo (shortcut: WP:GEOUF) is for WGS84 coordinates (latitude;longitude).

Geo allows waypoints to be indexed ("find me all places within 2 km of X"), looked up on other websites, or uploaded to devices, such as GPS units.

{{Coord}} applies the Geo microformat to coordinates on Wiki ಕನ್ನಡ. It replaces the now-deprecated "coor *" family of templates.

Quick how to

To add 57°18′22″N 4°27′32″W / 57.30611°N 4.45889°W / 57.30611; -4.45889 to the top of an article, use {{Coord}}, thus:

    {{Coord|57|18|22|N|4|27|32|W|display=title}}

These coordinates are in degrees, minutes, and seconds of arc.

"title" means that the coordinates will be displayed next to the article's title at the top of the page and before any other text or images.

To add 44°06′45″N 87°54′47″W / 44.1124°N 87.9130°W / 44.1124; -87.9130 to the top of an article, use either

    {{Coord|44.1124|N|87.9130|W|display=title}}

(which does not require minutes or seconds but does require the user to specify north/ south and east/west) or

    {{Coord|44.1124|-87.9130|display=title}}

(in which the north and east are presumed by positive values while the south and west are negative ones) These coordinates are in decimal degrees.

  • Degrees, minutes and seconds, when used, must each be separated by a pipe ("|").
  • Map datum must be WGS84 (except for off-Earth bodies).
  • Avoid excessive precision (0.0001° is <11 m, 1″ is <31 m).
  • Maintain consistency of decimal places or minutes/seconds between latitude and longitude.
  • Latitude (N/S) must appear before longitude (E/W).

Optional coordinate parameters follow the longitude and are separated by an underscore ("_"):

  • dim: dim:N (viewing diameter in metres)
  • region: region:R (ISO 3166-1 alpha-2 or ISO 3166-2 code)
  • type: type:T (landmark or city(30,000), for example)

Other optional parameters are separated by a pipe ("|"):

  • display
      |display=inline (the default) to display in the body of the article only,
      |display=title to display at the top of the article only, or
      |display=inline,title to display in both places.
  • name
      name=X to label the place on maps (default is PAGENAME)

Thus: {{Coord|44.1172|-87.9135|dim:30_region:US-WI_type:event

      |display=inline,title|name=accident site}}

Use |display=title (or |display=inline,title) once per article, for the subject of the article, where appropriate.

  • Per WP:ORDER, the template is placed in articles after any navigation templates, but before all Categories, including the {{DEFAULTSORT}} template.
  • For full details, refer to {{Coord/doc}}.
  • Additional guidance is available: obtaining coordinates, converting coordinates


See also:

  • the Geographical coordinates Project
    • ವರ್ಗ:Articles_needing_coordinates

Geo examples on Wikipedia

See: ವರ್ಗ:Templates generating Geo

Examples:

  • Geo (microformat)#Example
  • All of the articles using {{template:coord}} . Examples:
  • GeoTemplate, which is called by many thousands of other Wikipedia pages.
    • Example: click on the coordinates (top right) in Great Barr
  • Lists of coordinates using Geo in hCard:
    • Manchester Ship Canal
    • Netherton Tunnel Branch Canal
  • Robert Baden-Powell, 1st Baron Baden-Powell Featured Article uses {{Coord}}, both "title" and "inline".

Extensions

There are three active proposals, none mutually exclusive, and all backwards-compatible, to extend the geo microformat:

  • geo-extension – adds class="duhoc-kn body", for representing coordinates on other planets, moons etc.; and a class for non-WSG84 schema. See, for example;
  • geo-elevation – for representing altitude
  • geo-waypoint – for representing routes and boundaries, using waypoints

Export to KML

Pages marked with {{Coord}} can be exported as KML (for use in Google Earth, for example) via Brian Suda's site, in this format:

The same URL can be pasted into Google Maps as a search, and will show the locations, as push-pins on a map

The template: {{Kml}} has been created for this purpose (and was immediately nominated for deletion!).

hAudio

hAudio is for audio recordings; with or without audio files (we cannot currently link to audio files in hAudio, because Wikipedia editors cannot use the rel attribute; see bug 23225).

hCard

hCard is for contact details of people (both article subjects and user profiles/sigs), organisations and venues.

See Wikipedia:WikiProject Microformats/ for more.

Adr

The microformat for postal addresses and their individual components is a sub-set of hCard. See the above page for more information, or ವರ್ಗ:Templates generating ADR microformats.

{{Mf-adr}} generates an inline adr, either standalone or for placing within an existing HTML tag with class="duhoc-kn adr" via the inparamter.

hCalendar

  • hCalendar is for events – so that they can be added directly to calendar or diary programmes or websites (including as recurring events, so that the anniversaries of historic events may be celebrated); or charted in timelines. See ವರ್ಗ:Templates generating hCalendars (note also Wikipedia:Selected anniversaries).
  • Start and end dates of events. Editors have choices of two families of templates. Both emit microformat dates required for events.
    • {{Start date}} and {{ISO date}} emits the required ISO8601 date with class="duhoc-kn dtstart", and {{End date}} and {{ISO end date}} emit the date with class="duhoc-kn dtend" (not yet working for exclusive whole-day dates).
    • {{Start date and years ago}} – as above
    • {{Start-date}}, {{End-date}} family (note dashes in name)
      • {{Start-date}}, and {{Bday}} emit the required ISO8601 date with class="duhoc-kn dtstart". bday emits the class bday for s.
      • {{End-date}} emits the date with class="duhoc-kn dtend". Dates are adjusted +1 unit of time, where unit of time is dependent on the precision. EG: {{end-date|December 31, 1976}} would generate 1977-01-01Z, whereas {{end-date|1939}} would generate 1940. In contravention of the hCalendar spec.
  • {{Timeline-item}} (with {{Timeline-start}} and {{Timeline-end}}) generate a definition list for a series of dated events, each being wrapped in an hCalendar microformat.
  • {{Timeline-event}} for use in ordinary lists, etc.
  • {{Timeline-links}} passes a page's set of hCalendar events to external timeline-generating and other hCalendar-using websites.

hCalendar should not be used for years outside the range 1583–9999 CE.

hAtom

hAtom is for marking feeds.

It will not be possible to use hAtom in Wikipedia until it is possible to have an address element on pages. See Wikipedia:Village_pump_(technical)#address_element.

{{Start date}} and {{ISO date}} now emit the required ISO8601 date with class="duhoc-kn updated".

hMedia

hMedia is for video media.

hReview

hReview is for marking up reviews, and could be used by, for example, Template:Infobox Album.

hProduct

hProduct is for marking up products.

hRecipe

hRecipe is for marking up recipes and, by logical extension, singular foodstuffs.

Other

Microformat-like formats

For microformat-style schemes developed elsewhere, see:

Though not formally microformats (because they have not been developed using the "microformats process", and/ or involve hidden metadata), the following are related:

  • COinS
    • See COinS in Wikipedia

Classes

See /classes

Under development

Species

See /Species

Forthcoming

Citations

The proposed citation microformat will be very relevant to Wikipedia, both for on-page citations and bibliographies, and for allowing people to cite Wikipedia, elsewhere. See Template talk:Cite book#Use in Bibliography and COinS in Wikipedia for work which is laying some of the groundwork for application of that microformat, once it is ready.

Citation microformats would allow the look-up of cited articles or books in libraries or shops, and the extraction of citation data for the page being voted, if it is to be cited elsewhere.

Currency

The proposed currency microformat may be useful, especially if the suggestion to include a date field for historical amounts is included., for example, on 1922 in Germany

Despite the ending of cash payments for the rest of 1922, the main cause of Germany's inability to pay, the steady depreciation of the mark, was ongoing. Towards the end of the year it assumed a disastrous rapidity. On August 1, the US Dollar still stood at 643 Marks to the Dollar and the British Pound at 2,850 Marks to the Pound. But on September 5 the dollar had already risen to 1,440 Marks and the pound to 6,525 Marks, and in December the pound was worth between 30,000 and 40,000 marks and the dollar between 7,000 and 9,000.

Currency would allow automatic conversion of amounts into other currencies ("how much is that in dollars?") or time ("how much would that be today?")

Other MediaWiki uses

Wikitravel

Wikitravel is using microformats, not least in Wikitravel listings

MediaWiki issues

  • We need to be able to add classes and rel attributes to internal and external links, to generate, for example:

or:

or a combination of both, where "xxx" is a valid microformat attribute such as "url" and "yyy" is a valid rel attribute such as "directory", "tag" or "colleague" (the latter from XFN).

  • We need to be able to add tbody elements, with classes, to groups of table rows.

For other issues encountered when adding microformats to Wikipedia and other pages, using Media Wiki mark-up, see [೨]

Bugs

Yahoo! Query Language

"Yahoo! Query Language" can be used to extract microformats from Wikipedia pages.

References

External watchlist

Tags:

Wikiproject Microformats Project aimsWikiproject Microformats What are microformats?Wikiproject Microformats How can we use Microformats on Wikipedia?Wikiproject Microformats Project membersWikiproject Microformats TemplatesWikiproject Microformats Meta templatesWikiproject Microformats CategoriesWikiproject Microformats Parser functionsWikiproject Microformats RelatedWikiproject Microformats To doWikiproject Microformats Currently availableWikiproject Microformats ClassesWikiproject Microformats Under developmentWikiproject Microformats ForthcomingWikiproject Microformats Other MediaWiki usesWikiproject Microformats MediaWiki issuesWikiproject Microformats Yahoo! Query LanguageWikiproject Microformats External watchlistWikiproject Microformats

🔥 Trending searches on Wiki ಕನ್ನಡ:

ಭಾರತದ ಧಾರ್ಮಿಕ ಮತ್ತು ಸಾಮಾಜಿಕ ಸುಧಾರಕರುಮಾದಕ ವ್ಯಸನಸಂದರ್ಶನಭಾರತದ ಜನಸಂಖ್ಯೆಯ ಬೆಳವಣಿಗೆಶಬ್ದಮಾರ್ಕ್ಸ್‌ವಾದಗೋತ್ರ ಮತ್ತು ಪ್ರವರಮೈಗ್ರೇನ್‌ (ಅರೆತಲೆ ನೋವು)ಸಾಮ್ರಾಟ್ ಅಶೋಕಅಶೋಕನ ಶಾಸನಗಳುಮುದ್ದಣಶಾತವಾಹನರುಕಲ್ಯಾಣ್ಶೈಕ್ಷಣಿಕ ಮನೋವಿಜ್ಞಾನಜಯಪ್ರಕಾಶ್ ಹೆಗ್ಡೆಮಾನವ ಹಕ್ಕುಗಳುಜ್ಞಾನಪೀಠ ಪ್ರಶಸ್ತಿಭಾರತದ ರಾಷ್ಟ್ರೀಯ ಶಿಕ್ಷಣ ನೀತಿ ೨೦೨೦ಕನ್ನಡ ವ್ಯಾಕರಣಬಂಜಾರಜ್ವರವಾಯು ಮಾಲಿನ್ಯಮೂಕಜ್ಜಿಯ ಕನಸುಗಳು (ಕಾದಂಬರಿ)ಚಪ್ಪಾಳೆಮಹೇಂದ್ರ ಸಿಂಗ್ ಧೋನಿಹಸ್ತ ಮೈಥುನಭಾರತದ ಪ್ರಧಾನ ಮಂತ್ರಿಗಳ ಪಟ್ಟಿರಾಮಾಚಾರಿ (ಕನ್ನಡ ಧಾರಾವಾಹಿ)ರಂಗಭೂಮಿಆದಿಚುಂಚನಗಿರಿಭಾರತದಲ್ಲಿ ಮೀಸಲಾತಿಕೃಷ್ಣದೇವರಾಯಕೇಂದ್ರೀಯ ಮಾಧ್ಯಮಿಕ ಶಿಕ್ಷಣ ಮಂಡಳಿತಾಳಗುಂದ ಶಾಸನಚಂದ್ರಗುಪ್ತ ಮೌರ್ಯಜಾತ್ಯತೀತತೆರಾಯಲ್ ಚಾಲೆಂಜರ್ಸ್ ಬೆಂಗಳೂರುಬಂಡಾಯ ಸಾಹಿತ್ಯಐಹೊಳೆಜಿಡ್ಡು ಕೃಷ್ಣಮೂರ್ತಿಕರ್ನಾಟಕ ಹೈ ಕೋರ್ಟ್ವಿದ್ಯಾರಣ್ಯಕ್ರಿಯಾಪದಪರಿಣಾಮಹಿಂದೂ ಮಾಸಗಳುಬಾದಾಮಿ೨೦೨೪ರಲ್ಲಿ ಕೆನಡಾದ ಕ್ರಿಕೆಟ್ ತಂಡದ ಅಮೇರಿಕ ಸಂಯುಕ್ತ ಸಂಸ್ಥಾನ ಪ್ರವಾಸಈಸೂರುಸಮುದ್ರಗುಪ್ತಭಾರತೀಯ ರಾಷ್ಟ್ರೀಯ ಕಾಂಗ್ರೆಸ್ಹಳೆಗನ್ನಡ೧೬೦೮ಮಲ್ಲಿಕಾರ್ಜುನ್ ಖರ್ಗೆಜಾತ್ರೆನಂಜುಂಡೇಶ್ವರ ದೇವಸ್ಥಾನ, ನಂಜನಗೂಡುಎಳ್ಳೆಣ್ಣೆಎಂ. ಕೆ. ಇಂದಿರಕಂದಮಂಜುಳಜರಾಸಂಧವಿನಾಯಕ ಕೃಷ್ಣ ಗೋಕಾಕಜಗನ್ನಾಥದಾಸರುಅಂಬಿಗರ ಚೌಡಯ್ಯಸುದೀಪ್ಭಾರತೀಯ ಸಂವಿಧಾನದ ತಿದ್ದುಪಡಿಧರ್ಮಮಂಡಲ ಹಾವುಭಾರತದಲ್ಲಿನ ಚುನಾವಣೆಗಳುಕಲಿಯುಗನಾಡ ಗೀತೆಹತ್ತಿಪಿ.ಲಂಕೇಶ್ಕಾಮಸೂತ್ರಮಿಲಾನ್ಕರ್ನಾಟಕದ ಅಣೆಕಟ್ಟುಗಳುವಿಜಯ ಕರ್ನಾಟಕ🡆 More