Help:Navigation using time based information

From semantic-mediawiki.org
Semantic extension(s): Semantic MediaWiki
Further extension(s): Variables
Keyword(s): time · navigation

Description:

In our wiki we do have quite a lot of time based informations (like protocols of meetings, planned events, ...)

All of them have some kind of date information. To give users an easy way to navigate thru those pages I add something like the following to the pages

<div style="float:right">
Last minutes:
{{#ask:
 [[Category:Minutes]]
 [[isAbout::{{{PROJECT}}}]]
 [[hasDate::<{{{DATE}}}]]
 | format=list
 | sort=hasDate
 | order=desc
 | offset=1
 | limit=1
 | searchlabel=
}}

Next minutes:
{{#ask:
 [[Category:Minutes]]
 [[isAbout::{{{PROJECT}}}]]
 [[hasDate::>{{{DATE}}}]]
 | format=list
 | sort=hasDate
 | order=asc
 | offset=1
 | limit=1
 | searchlabel=
}}
</div>

This of course is used in a template that provides the following vars

{{{PROJECT}}}
{{{DATE}}}

And of course the template is filled with Semantic Forms