Template:UF-hcal: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>OwenBlacker
Made it possible to hide the section "Sub-templates" by providing the parameter `hide_subtemplates`
meta>Sardanaphalus
Microformat message, Documentation
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 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]].
{{Microformat message
{{#if:{{{hide_subtemplates}}}|<noinclude>|}}=== Sub-templates ===
| format = hCalendar
| data = event details
| subsection1 = {{#if:{{{hide_subtemplates}}} |<noinclude>}}
; {{big|Subtemplates}}
Dates will only be included if you use {{tl|start date}} (for single dates) or {{tl|end date}}. Do not, however, use these templates [[Wikipedia:WikiProject Microformats/dates|if a date before 1583&nbsp;CE is involved]].


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]]).
To include URLs, use {{tl|URL}}.


URLs will only be included if you use {{Tl|URL}}.
'''''Please do not remove instances of these subtemplates.'''''
{{#if:{{{hide_subtemplates}}} |</noinclude>}}


'''Please do not remove instances of these sub-templates.'''{{#if:{{{hide_subtemplates}}}|</noinclude>|}}
|attendee |contact |description |dtend |dtstart |location |organiser |summary |url |vevent
=== Classes ===
| nocollapse = on
}}<includeonly>
{{#ifeq:{{SUBPAGENAME}}|doc | |{{#ifeq:{{SUBPAGENAME}}|sandbox | |[[Category:Templates generating hCalendars|{{PAGENAME}}]]}} }}
</includeonly><noinclude>


hCalendar uses HTML classes including:
{{Documentation |content={{Microformat message templates}}}}
 
{{Flatlist/microformat|
*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.'''<includeonly>{{#ifeq:{{SUBPAGENAME}}|doc | |{{#ifeq:{{SUBPAGENAME}}|sandbox | |[[Category:Templates generating hCalendars|{{PAGENAME}}]]}} }}</includeonly><noinclude>
 
{{Documentation
| content =
Common documentation for [{{fullurl:Special:WhatLinksHere/Template:UF-hcal|limit=500}} these templates].


[[Category:Microformat (uF) message templates]]
[[Category:Microformat (uF) message templates]]
}}<!--(end Documentation)-->
</noinclude>
</noinclude>

Revision as of 15:57, 7 September 2014

The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.

Subtemplates

Dates will only be included if you use {{start date}} (for single dates) or {{end date}}. Do not, however, use these templates if a date before 1583 CE is involved.

To include URLs, use {{URL}}.

Please do not remove instances of these subtemplates.

Classes used

The HTML classes of this microformat include:

  • 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.