Template:Event: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
(fucking timezones how do they work)
No edit summary
Line 1: Line 1:
<includeonly><span class="vevent"><span class="dtstart" style="display:none">{{#time: c|{{{time}}} America/Los_Angeles}}</span>'''{{#time: l, F j, H:i|{{{time}}}}}''': [[{{{title}}}|<span class="summary">{{{title}}}</span>]], <span class="description">{{{description}}}</span></span></includeonly><noinclude>
<noinclude>
If you use this template when listing events on the wiki, [http://microformats.org/wiki/hcalendar hcalendar] markup will be generated which will allow some calendar software to do useful things with the data!


:''This is a work in progress. You probably shouldn't use this template yet.''
This is a work in progress. You maybe shouldn't use this template yet. Feel free to improve it, though!


If you use this template to list events on the wiki, [http://microformats.org/wiki/hcalendar hcalendar] markup will be generated which will allow some calendar software to do useful things with the data!
So far I've only applied the template to upcoming non-recurring events. [[User:Leif|Leif]] ([[User talk:Leif|talk]]) 04:57, 16 June 2013 (UTC)


=== Example usage ===
Here is an example of how it can be used:
Here is an example of how it can be used:
<pre><nowiki>
<pre><nowiki>
Line 12: Line 14:
|time=1970-01-01 12:00:00
|time=1970-01-01 12:00:00
|}}
|}}
=== References ===
* http://microformats.org/wiki/hcalendar
* http://microformats.org/wiki/validators
* https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time
</nowiki></pre>
</nowiki></pre>
</noinclude>
</noinclude><includeonly><span class="vevent"><span class="dtstart" style="display:none">{{#time: c|{{{time}}} America/Los_Angeles}}</span>'''{{#time: l, F j, H:i|{{{time}}}}}''': [[{{{title}}}|<span class="summary">{{{title}}}</span>]], <span class="description">{{{description}}}</span></span></includeonly>

Revision as of 21:57, 15 June 2013

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

This is a work in progress. You maybe shouldn't use this template yet. Feel free to improve it, though!

So far I've only applied the template to upcoming non-recurring events. Leif (talk) 04:57, 16 June 2013 (UTC)

Example usage

Here is an example of how it can be used:

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

=== References ===
* http://microformats.org/wiki/hcalendar
* http://microformats.org/wiki/validators
* https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time