Difference between revisions of "Template:DatedObjects"

From Wikispooks
Jump to navigation Jump to search
(Fix)
(Display image instead of logo)
Line 16: Line 16:
 
|captionPlural=Events
 
|captionPlural=Events
 
|mainlabel = Event
 
|mainlabel = Event
|properties=Display date/Has eventType/Description
+
|properties=Display image/Display date/Has eventType/Description
|headers=Date/Type/Description
+
|headers=Image/Date/Type/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
 
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
Line 24: Line 24:
 
|captionPlural=New Groups
 
|captionPlural=New Groups
 
|mainlabel = Group
 
|mainlabel = Group
|properties=Display date/Has logo/Has groupType/Description
+
|properties=Display image/Display date/Has groupType/Description
|headers=Date/Logo/Type/Description
+
|headers=Image/Date/Type/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
 
|expression=[[Has objectClass::Website]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 
|expression=[[Has objectClass::Website]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
Line 32: Line 32:
 
|captionPlural=New Websites
 
|captionPlural=New Websites
 
|mainlabel = Event
 
|mainlabel = Event
|properties=Display date/Has URL/Has logo/Description
+
|properties=Display image/Display date/Has URL/Description
|headers=Date/URL/Logo/Description
+
|headers=Image/Date/URL/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
 
|expression=[[Has objectClass::Group]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
 
|expression=[[Has objectClass::Group]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
Line 40: Line 40:
 
|captionPlural=Groups that were Wound Up
 
|captionPlural=Groups that were Wound Up
 
|mainlabel = Group
 
|mainlabel = Group
|properties=Display date/Has logo/Has groupType/Description
+
|properties=Display image/Display date/Has groupType/Description
|headers=Date/Logo/Type/Description
+
|headers=Image/Date/Type/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
 
|expression=[[Has objectClass::Website]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
 
|expression=[[Has objectClass::Website]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
Line 48: Line 48:
 
|captionPlural=Closed Websites
 
|captionPlural=Closed Websites
 
|mainlabel = Event
 
|mainlabel = Event
|properties=Display date/Has URL/Has logo/Description
+
|properties=Display image/Display date/Has URL/Description
|headers=Date/URL/Logo/Description
+
|headers=Image/Date/URL/Description
 
}}</includeonly>
 
}}</includeonly>

Revision as of 12:01, 5 January 2016

Bug1.jpg This template has problems: This sometimes creates blank sections. See, for example, 2009 Use the discussion page to see the debate about this.

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 takes no parameters and makes some or all of the following 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.