Difference between revisions of "Template:DatedObjects"

From Wikispooks
Jump to navigation Jump to search
(Image tweak)
(Only run this on Objects of type 'Year' (where it seems not to give errors))
Line 10: Line 10:
 
''The pages are listed underneath, sorted by date.''
 
''The pages are listed underneath, sorted by date.''
  
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
+
[[Category:Semantic Templates]]</noinclude><includeonly>{{#if: {{Has objectClass|Year}}|{{SMWDocSection
 
|expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Event]][[Start::<<{{PAGENAME}}]][[End::>{{#expr: {{PAGENAME}}}}]]
 
|expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Event]][[Start::<<{{PAGENAME}}]][[End::>{{#expr: {{PAGENAME}}}}]]
 
|sort=Start
 
|sort=Start
Line 50: Line 50:
 
|properties=Display image2/Display date/Has URL/Description
 
|properties=Display image2/Display date/Has URL/Description
 
|headers=Image/Date/URL/Description
 
|headers=Image/Date/URL/Description
}}</includeonly>
+
}}}}</includeonly>

Revision as of 10:37, 31 August 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 objects relevant to the year {{PAGENAME}}.

The template should only be used on pages which are numerical, e.g. "1967". It does not yet support pages such as 1967/May, but might do one day.
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.