Template:UF-hcal-geo: Difference between revisions

Jump to navigation Jump to search
imported>CommonsDelinker
m (Removing "Hcal-microformat-button.png", it has been deleted from Commons by O because: licence used is incompatible with Commons.)
imported>PineApple1298
m (1 revision imported)
 
(20 intermediate revisions by 12 users not shown)
Line 1: Line 1:
The HTML markup produced by this template includes an [[hCalendar|hCalendar microformat]], which makes the event details [[parsing|parsable]] by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. Within the hCalendar is a [[Geo (microformat)|Geo microformat]], which additionally makes the [[geographic coordinate system|coordinates]] (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a [[Global Positioning System|GPS]] unit. For more information about the use of [[microformat]]s on Wikipedia, please see [[Wikipedia:WikiProject Microformats|the microformat project]].


[[Image:Geo-microformat-button.png|right|button to indicate the presence of a Geo microformat]]
Dates will only be included if you use {{tl|Start date}} or {{tl|End date}} (use the former for single dates, [[Wikipedia:WikiProject Microformats/dates|but do not use any of these if the date is before 1583 CE]]). {{tl|End date}} requires that a time be specified, but display of this time may be suppressed by adding {{para|nodate|yes}} to the end.
The HTML mark up produced by this template includes an [[HCalendar|hCalendar microformat]], which makes the event details [[Parsing|parsable]] by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calenadar or dairy applciation. Within the hCalendar is a [[WP:GEOUF|Geo microformat]], which additionally makes the [[Geographic coordinate system|coordinates]] (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a [[Global Positioning System|GPS]] unit. For more information about the use of [[microformat]]s on Wikipedia, please see [[WP:UF|the microformat project]].


Dates will only appear if you use {{tl|Start date}} or {{tl|End date}} (use the former for single dates).
To include a URL, use {{tl|URL}}.


hCalendar uses HTML classes including:
hCalendar uses HTML classes including:
<div class="horizontal">
 
*"dtend"
{{Flatlist/microformat|indent=1|
*"dtstart"
*attendee
*"location"
*dtend
*"summary"
*dtstart
*"vevent"
*location
</div>
*summary
*url
*vevent
}}


Geo is produced by calling {{tl|coord}}, and uses HTML classes:
Geo is produced by calling {{tl|coord}}, and uses HTML classes:


<div class="horizontal">
{{Flatlist/microformat|indent=1|
*"geo"
*geo
*"latitude"
*latitude
*"longitude"
*longitude
</div>
}}
 
'''Please do not rename or remove these classes.'''


When giving coordinates, please don't be [[Wikipedia:WikiProject Geographical coordinates#Precision|overly precise]].
'''Please do not rename or remove these classes nor collapse nested elements which use them.'''<br/>Also, when giving coordinates, please don't be [[wikipedia:WikiProject Geographical coordinates#Precision|overly precise]].
<includeonly>{{#ifeq:{{SUBPAGENAME}}|doc | |{{#ifeq:{{SUBPAGENAME}}|sandbox | |[[Category:Templates generating hCalendars and Geo|{{PAGENAME}}]]}} }}</includeonly><noinclude>


[[Category:Templates generating hCalendars and Geo|{{PAGENAME}}]]<noinclude>
[[Category:Microformat (uF) message templates]]
</noinclude>
</noinclude>

Latest revision as of 21:07, 27 January 2021

The HTML markup produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. Within the hCalendar is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Dates will only be included if you use {{Start date}} or {{End date}} (use the former for single dates, but do not use any of these if the date is before 1583 CE). {{End date}} requires that a time be specified, but display of this time may be suppressed by adding |nodate=yes to the end.

To include a URL, use {{URL}}.

hCalendar uses HTML classes including:

  • attendee
  • dtend
  • dtstart
  • location
  • summary
  • url
  • vevent

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.
Also, when giving coordinates, please don't be overly precise.