Difference between revisions of "Template:DatedObjects"

From Wikispooks
Jump to navigation Jump to search
(New Websites section)
(Better dates)
Line 16: Line 16:
  
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]]
+
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Group]][[End::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]]
 
|sort=Start
 
|sort=Start
 
|captionSingular=A New Group
 
|captionSingular=A New Group
Line 24: Line 24:
 
|headers=Date/Logo/Type/Description
 
|headers=Date/Logo/Type/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
|expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]]
+
|expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[Start::<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Event]][[End::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]]
 
|sort=Start
 
|sort=Start
 
|captionSingular=Event
 
|captionSingular=Event
Line 32: Line 32:
 
|headers=Date/Type/Description
 
|headers=Date/Type/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
|expression=[[Has objectClass::Website]][[Start::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]]
+
|expression=[[Has objectClass::Website]][[Start::>{{PAGENAME}}]][[Start::<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Website]][[End::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]]
 
|sort=Start
 
|sort=Start
 
|captionSingular=New Website
 
|captionSingular=New Website

Revision as of 05:45, 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 groups were founded during the page name, it makes a section:

New Group(s)

Plus a table of new group(s) underneath, sorted by start date.

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:

If any groups were founded during the page name, it makes a section:

New Website(s)

Plus a table of new website(s) underneath, sorted by start date.