Difference between revisions of "Template:DatedObjects"

From Wikispooks
Jump to navigation Jump to search
(Better dates)
(More sections)
Line 3: Line 3:
 
It no parameters.
 
It no parameters.
  
If any [[group]]s were founded during the page name, it makes a section:
+
It makes some or all of the followings sections:
 
==''New Group(s)''==
 
==''New Group(s)''==
Plus a table of new group(s) underneath, sorted by start date.
+
==''Group(s) that were wound up''==
 
 
If any [[event]]s were ongoing during the page name, it makes a section:
 
 
==''Event(s)''==
 
==''Event(s)''==
Plus a table of event(s) underneath, sorted by start date:
 
 
If any [[group]]s were founded during the page name, it makes a section:
 
 
==''New Website(s)''==
 
==''New Website(s)''==
Plus a table of new website(s) underneath, sorted by start date.
+
==''Website(s) that closed''==
 +
The pages are listed underneath, sorted by date.
  
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Group]][[End::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]]
+
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<{{#expr: {{PAGENAME}}+1}}]]
 
|sort=Start
 
|sort=Start
 
|captionSingular=A New Group
 
|captionSingular=A New Group
 
|captionPlural=New Groups
 
|captionPlural=New Groups
 +
|mainlabel = Group
 +
|properties=Display date/Has logo/Has groupType/Description
 +
|headers=Date/Logo/Type/Description
 +
}}{{SMWDocSection
 +
|expression=[[Has objectClass::Group]][[End::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]]
 +
|sort=Start
 +
|captionSingular=A Group that was Wound Up
 +
|captionPlural=Groups that were Wound Up
 
|mainlabel = Group
 
|mainlabel = Group
 
|properties=Display date/Has logo/Has groupType/Description
 
|properties=Display date/Has logo/Has groupType/Description
Line 32: Line 36:
 
|headers=Date/Type/Description
 
|headers=Date/Type/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
|expression=[[Has objectClass::Website]][[Start::>{{PAGENAME}}]][[Start::<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Website]][[End::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]]
+
|expression=[[Has objectClass::Website]][[Start::>{{PAGENAME}}]][[Start::<{{#expr: {{PAGENAME}}+1}}]]
 
|sort=Start
 
|sort=Start
 
|captionSingular=New Website
 
|captionSingular=New Website
 
|captionPlural=New Websites
 
|captionPlural=New Websites
 +
|mainlabel = Event
 +
|properties=Display date/Has URL/Has logo/Description
 +
|headers=Date/URL/Logo/Description
 +
}}{{SMWDocSection
 +
|expression=[[Has objectClass::Website]][[End::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]]
 +
|sort=Start
 +
|captionSingular=A Website that Close
 +
|captionPlural=Closed Websites
 
|mainlabel = Event
 
|mainlabel = Event
 
|properties=Display date/Has URL/Has logo/Description
 
|properties=Display date/Has URL/Has logo/Description
 
|headers=Date/URL/Logo/Description
 
|headers=Date/URL/Logo/Description
 
}}</includeonly>
 
}}</includeonly>

Revision as of 05:51, 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.

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.