Difference between revisions of "Template:DatedObjects"

From Wikispooks
Jump to navigation Jump to search
(Test)
Line 7: Line 7:
 
Plus a table of event(s) underneath, sorted by start date:
 
Plus a table of event(s) underneath, sorted by start date:
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
|expression=[[Has objectClass::Event]][[Start>::>{{PAGENAME}}]][[End::<{{#expr:{{PAGENAME}}+1}}]]
+
|expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[End::<{{#expr:{{PAGENAME}}+1}}]]
 
|sort=Has publication date
 
|sort=Has publication date
 
|order=ascending
 
|order=ascending

Revision as of 05:23, 31 January 2015

This template creates a section listing the events which were ongoing during the year {{PAGENAME}}.
The template can only be used on pages which are numerical, e.g. "1967". It does not yet support pages such as 1967/May.
It no parameters.

If any events were ongoing during the page name, it makes a section:

Event(s)

Plus a table of event(s) underneath, sorted by start date: