<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><trimlines preparse>
<comment>
Trimlines will eradicate useless empty lines from this template
instead of passing them on to the reading browser. Just a cosmetic
thing, and not a feature of this module, really -- it's a generic
Roxen Macro Language (RXML) tag.
</comment>

<define tag=date><weekday capitalize> the <ordered> of <monthname capitalize>, <year></define>
<define tag=dash>&nbsp;-&nbsp;</define>
<comment>
These define two RXML macros or "user-defiuned tags" which will be
used later on in the template. The first is constituted of some tags
added by the module. To get more info about a tag, try <tagname help>
in this template.
</comment>

<title>My diary, <date></title>
<comment>
See how we use our freshly defined tag here? It's not the only time...
</comment>

<style type="text/css"><!--
 a:link    {text-decoration: none}
 a:visited {text-decoration: none}
--></style>
<comment>
This is a stylesheet marker that will remove the underline from links,
which IMHO looks a whole lot better. You may or may not agree.
</comment>

</head>
<body bgcolor=white text=black vlink="#69116A" link="#4C2DFA" alink="#FF0000">
<p align=center>
Last modified: <lastmodified mostrecent> (<lastmodified mostrecent href>)
</p>
<comment>
This will show the date when the entire diary was latest changed, and
a link to the date that was changed then. Try the help argument for
more info.
</comment>

<table align=left border=3 cellspacing=0 cellpadding=10><tr><td align=center valign=top>

<first alt="First"><dash><prev alt="Previous"><dash><next alt="Next"><dash><last alt="Last">
<comment>
This will make a link panel with navigation to the first entry
present, the previous entry, next and the most recent entry:

First Previous Next Last

<first alt="<img src=first.gif>"> et cetera could be used if you'd
prefer to use images for these links.
</comment>

<hr noshade><br>
<lastmonth>&nbsp;<monthname capitalize>&nbsp;<year>&nbsp;<nextmonth><br>
<comment>
Month navigation panel:

<= April 1999 =>
</comment>

<monthmap capitalize>
<comment>
The panel of dates in this month; something like:

Mo Tu We Th Fr Sa Su
          1  2  3  4
 5  6  7  8  9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24   
</comment>
<hr noshade>

<lastyear><dash><b><year></b><dash><nextyear><hr noshade>
<comment>
Similar to the month navigation panel, this does basically the same
for the years:

1998 - 1999 - 2000

Yes -- the module is Y2K safe, but there is still trouble from year
2036 onwards. Hopefully that won't matter to you. :-)
</comment>

<table><tr><td align=left>
<jan><br><feb><br><mar><br><apr>
</td><td align=center>
<may><br><jun><br><jul><br><aug>
</td><td align=right>
<sep><br><oct><br><nov><br><dec>
</td></tr></table>
<comment>

Yet another navigation panel, showing all months of this year like
this:

January    May  September
February  June    October
March     July   November
April    August  December

</comment>

<hr noshade><small>
<if prestate=all>
<alldays modulo=3><br>
<apre -all>Get rid of these dates!</apre>
<otherwise>
<apre all>Show a list of <em>all</em> dates!</apre>
</if>
</small>
<comment>
Line up all date entries, in three columns,
using some conditional code to allow for this
list to be switched on or off as wanted.
(using standard RXML features)
</comment>

</td></tr></table>

<h4 align=left><date></h4>
<comment>
A suitable header for the diary entry might be its date.
</comment>

</trimlines>
<diary>
<trimlines preparse>
<comment>
Insert the diary text for this day.
We turn off the trimlines feature for this tag, since it might break
the <pre>-formatted text excerpts, when present in diary entries.
</comment>

<p>Perhaps you'd like to brag about this cool module doing all the
layout work for you, by showing the "real" source for a page served by
it? :-) This can easily be done with the raw feature. A javascript
link that toggles this prestate for you could look like this:</p>

<a href="javascript:function add(value,build,set){var hit=false;for(var p=0;p<set.length;p++)if(set[p]==value)hit=true;if(!hit)build[build.length]=value;return build;}url=''+top.location;he=url.indexOf('/',url.indexOf('://')+3);host=url.substring(0,he);path=url.substring(he,url.length);pe=path.indexOf(')/');pp=pe>2 && path.substring(0,2)=='/(';toggle=Array('raw');if(toggle.join()!=''){if(pp){pre=path.substring(2,pe).split(',');path=path.substring(pe+1,path.length);np=new Array();for(i=0;i<toggle.length;i++)np=add(toggle[i],np,pre);for(i=0;i<pre.length;i++)np=add(pre[i],np,toggle);pre=np;}else pre=toggle;pp=pre.length!=0;}top.location='view-source:'+host+(pp?'/('+pre.join()+')':'')+path">Use the source, Luke!</a>
<comment>
Sure, this is a bit overkill, but it should work perfectly. :-)
I used my "prestate toggler", slightly modified. It only requires
javascript 1.0, and should work on any browser suppporting that and
the view-source: "protocol" (ie Netscape? :-).
</comment>

<p>More javascript bookmarks like this can be found at
<a href="http://a205.ryd.student.liu.se/(Javascript.Mayhem)/docs/">The
module author's site</a>.</p>
</trimlines></body></html>