Calendar Tags

The <Calendar> container is useful for generating date-organized links to days with posts. The Calendar takes the form…

<Calendar>
<$MonthLabel$>
<WeekDays><$WeekDay$></WeekDays> <CalendarWeek>
<CalendarDay>
<IfCurrentDay> </IfCurrentDay>
<IfDayHasNoEntries><$DayOfMonth$><$DateOfDay$></IfDayHasNoEntries>
<IfDayHasEntries><$EntryArchivePage$><$EntryID$><$DayOfMonth$><$DateOfDay$></IfDayHasEntries>
<IfEmptySpace></IfEmptySpace>
</CalendarDay>
</CalendarWeek>
</Calendar>

The Calendar container is comprised of the following template elements…

The CalendarWeek container is comprised of the following optional conditional tags…

Tags which have meaning between the above "IfDay…" tags:

Tags which have meaning inside the <IfDayHasEntries> container:

Tags that have meaning inside the <WeekDays> container:

The <WeekDays> container can take the optional attribue "long" which, if true, prints the week days in long format (Sunday, Monday, Tuesday, etc)

Syntax:
<WeekDays><$WeekDay$></WeekDays>

Syntax (Long weekday names):
<WeekDays long="1"><$WeekDay$></WeekDays>

The Calendar container is flexible enough to generate various types of calendars. The following example demonstrates how to generate a typical calendar month using an HTML table.

<Calendar>
<table border="0" cellspacing="4" cellpadding="0">
<caption><$MonthLabel$></caption>
<tr>
<th align="center">Sun</th>
<th align="center">Mon</th>
<th align="center">Tue</th>
<th align="center">Wed</th>
<th align="center">Thu</th>
<th align="center">Fri</th>
<th align="center">Sat</th>
</tr>
<CalendarWeek>
<tr>
<CalendarDay>
<td align="center" <IfCurrentDay>bgcolor="silver"</IfCurrentDay>>
<IfDayHasNoEntries><$DayOfMonth$></IfDayHasNoEntries>
<IfDayHasEntries><a href="<$EntryArchivePage$>#<$EntryID$>"><$DayOfMonth$></a></IfDayHasEntries>
<IfEmptySpace>&nbsp;</IfEmptySpace></td>
</CalendarDay>
</tr>
</CalendarWeek>
</table>
</Calendar>

Note: The <Calendar> containers have no meaning on the Feed Template