Difference between revisions of "Template:HCalendar event/rule"
Jump to navigation
Jump to search
(changing from ifeq to if) |
(Seems to function as intended, prepping for move) |
||
Line 6: | Line 6: | ||
:''It will be necessary to view the source code of this article to see the output.'' | :''It will be necessary to view the source code of this article to see the output.'' | ||
* Weekly event: <nowiki>{{ | * Weekly event: <nowiki>{{hCalendar event/rule | ||
|freq=WEEKLY | |freq=WEEKLY | ||
|interval=1 | |interval=1 | ||
|byday=TU | |byday=TU | ||
}}</nowiki>{{ | }}</nowiki>{{hCalendar event/rule | ||
|freq=WEEKLY | |freq=WEEKLY | ||
|interval=1 | |interval=1 | ||
Line 16: | Line 16: | ||
}} | }} | ||
* Weekly event with human-readable text: <nowiki>{{ | * Weekly event with human-readable text: <nowiki>{{hCalendar event/rule | ||
|freq=WEEKLY | |freq=WEEKLY | ||
|interval=1 | |interval=1 | ||
|byday=TU | |byday=TU | ||
|readable=every Tuesday | |readable=every Tuesday | ||
}}</nowiki>{{ | }}</nowiki>{{hCalendar event/rule | ||
|freq=WEEKLY | |freq=WEEKLY | ||
|interval=1 | |interval=1 | ||
Line 27: | Line 27: | ||
|readable=every Tuesday | |readable=every Tuesday | ||
}} | }} | ||
[[Category:hCalendar Templates|rule]] | |||
</noinclude> | </noinclude> |
Revision as of 07:50, 7 July 2010
This template attempts to implement the RRULE and EXRULE elements as described in the hCalendar 1.1 draft specification.
- The template defaults to behave as an RRULE via class="rrule". To alter the behaviour to an EXRULE, specify type=ex when using the template.
Examples
- It will be necessary to view the source code of this article to see the output.
- Weekly event: {{hCalendar event/rule |freq=WEEKLY |interval=1 |byday=TU }}
- Weekly event with human-readable text: {{hCalendar event/rule |freq=WEEKLY |interval=1 |byday=TU |readable=every Tuesday }}every Tuesday