Difference between revisions of "Template:DatedObjects"

From Wikispooks
Jump to navigation Jump to search
(Fix <)
(Add Ongoing events and reorder sections)
Line 12: Line 12:
  
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 +
|expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Event]][[Start::<<{{PAGENAME}}]][[End::>{{#expr: {{PAGENAME}}+1}}]]
 +
|sort=Start
 +
|captionSingular=Event
 +
|captionPlural=Events
 +
|mainlabel = Event
 +
|properties=Display date/Has eventType/Description
 +
|headers=Date/Type/Description
 +
}}{{SMWDocSection
 
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 
|sort=Start
 
|sort=Start
Line 19: Line 27:
 
|properties=Display date/Has logo/Has groupType/Description
 
|properties=Display date/Has logo/Has groupType/Description
 
|headers=Date/Logo/Type/Description
 
|headers=Date/Logo/Type/Description
 +
}}{{SMWDocSection
 +
|expression=[[Has objectClass::Website]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 +
|sort=Start
 +
|captionSingular=New Website
 +
|captionPlural=New Websites
 +
|mainlabel = Event
 +
|properties=Display date/Has URL/Has logo/Description
 +
|headers=Date/URL/Logo/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
 
|expression=[[Has objectClass::Group]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
 
|expression=[[Has objectClass::Group]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
Line 27: Line 43:
 
|properties=Display date/Has logo/Has groupType/Description
 
|properties=Display date/Has logo/Has groupType/Description
 
|headers=Date/Logo/Type/Description
 
|headers=Date/Logo/Type/Description
}}{{SMWDocSection
 
|expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Event]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
 
|sort=Start
 
|captionSingular=Event
 
|captionPlural=Events
 
|mainlabel = Event
 
|properties=Display date/Has eventType/Description
 
|headers=Date/Type/Description
 
}}{{SMWDocSection
 
|expression=[[Has objectClass::Website]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 
|sort=Start
 
|captionSingular=New Website
 
|captionPlural=New Websites
 
|mainlabel = Event
 
|properties=Display date/Has URL/Has logo/Description
 
|headers=Date/URL/Logo/Description
 
 
}}{{SMWDocSection
 
}}{{SMWDocSection
 
|expression=[[Has objectClass::Website]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
 
|expression=[[Has objectClass::Website]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]

Revision as of 15:52, 1 February 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.

It makes some or all of the followings sections:

New Group(s)

Group(s) that were wound up

Event(s)

New Website(s)

Website(s) that closed

The pages are listed underneath, sorted by date.