Template:Event: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
mNo edit summary
(use time parser function, can it be this easy?)
Line 1: Line 1:
<includeonly><span class="vevent"><span class="dtstart" style="display:none">{{{time}}}</span><!-- can pretty-print timestamps using the ParserFunctions extension later -->'''{{{time}}}''': [[{{{title}}}|<span class="summary">{{{title}}}</span>]], <span class="description">{{{description}}}</span></span></includeonly><noinclude>
<includeonly><span class="vevent"><span class="dtstart" style="display:none">{{#time: r|{{{time}}}}}</span><!-- can pretty-print timestamps using the ParserFunctions extension later -->'''{{{time}}}''': [[{{{title}}}|<span class="summary">{{{title}}}</span>]], <span class="description">{{{description}}}</span></span></includeonly><noinclude>


:''This is a work in progress. You probably shouldn't use this template yet.''
:''This is a work in progress. You probably shouldn't use this template yet.''
Line 13: Line 13:
|}}
|}}
</nowiki></pre>
</nowiki></pre>
The date and time must be specified in [http://www.cl.cam.ac.uk/~mgk25/iso-time.html ISO8601 format]. In the future we'll make this template print human-friendly representations (including day of week).
</noinclude>
</noinclude>

Revision as of 21:13, 15 June 2013


This is a work in progress. You probably shouldn't use this template yet.

If you use this template to list events on the wiki, hcalendar markup will be generated which will allow some calendar software to do useful things with the data!

Here is an example of how it can be used:

{{event
|title=Event name
|description=event description
|time=1970-01-01 12:00:00
|}}