Template:UF-hcal: Difference between revisions
meta>Sardanaphalus category |
meta>OwenBlacker Made it possible to hide the section "Sub-templates" by providing the parameter `hide_subtemplates` |
||
Line 1: | Line 1: | ||
The HTML markup produced by this template includes an [[HCalendar|hCalendar microformat]], which makes the event details [[ | 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 articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. For more information about the use of [[microformat]]s on Wikipedia, please see [[Wikipedia:WikiProject Microformats|the microformat project]]. | ||
{{#if:{{{hide_subtemplates}}}|<noinclude>|}}=== Sub-templates === | |||
=== Sub-templates === | |||
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]]). | 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]]). | ||
Line 7: | Line 6: | ||
URLs will only be included if you use {{Tl|URL}}. | URLs will only be included if you use {{Tl|URL}}. | ||
'''Please do not remove instances of these sub-templates.''' | '''Please do not remove instances of these sub-templates.'''{{#if:{{{hide_subtemplates}}}|</noinclude>|}} | ||
=== Classes === | === Classes === | ||
Revision as of 22:27, 30 August 2014
The HTML markup produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
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).
URLs will only be included if you use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCalendar uses HTML classes including:
- attendee
- contact
- description
- dtend
- dtstart
- location
- organiser
- summary
- url
- vevent
Please do not rename or remove these classes nor collapse nested elements which use them.
Common documentation for these templates.