Difference between revisions of "Template:DatedObjects"

From Wikispooks
Jump to navigation Jump to search
(remove image from events)
(Births and Deaths)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{TemplateProblem|This sometimes creates blank sections. See, for example, [[2009]]}}'''This template creates a section listing the objects relevant to the year <nowiki>{{PAGENAME}}</nowiki>.<br/>
+
<noinclude>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.<br/>
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.<br/>
 
 
It takes no parameters and makes some or all of the following sections:
 
It takes no parameters and makes some or all of the following sections:
 
__NOTOC__
 
__NOTOC__
Line 8: Line 7:
 
==New Website(s)==
 
==New Website(s)==
 
==Website(s) that closed==
 
==Website(s) that closed==
 +
==Death(s)==
 +
==Birth(s)==
 
''The pages are listed underneath, sorted by date.''
 
''The pages are listed underneath, sorted by date.''
  
Line 16: Line 17:
 
|caption_plural=Events
 
|caption_plural=Events
 
|mainlabel = Event
 
|mainlabel = Event
|properties=Display date/Has eventType/Description
+
|properties=Display date/Description
|headers=Date/Type/Description
+
|headers=Date/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
 
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
Line 50: Line 51:
 
|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
 +
}}{{SMWDocSection
 +
|expression=[[Has objectClass::Quotation]][[Has publicationDate::>{{PAGENAME}}]][[Has publicationDate::<<{{#expr: {{PAGENAME}}+1}}]]
 +
|sort=Start
 +
|caption_singular=A Quotation
 +
|caption_plural=Quotations
 +
|mainlabel = Title
 +
|properties=Has publicationDate/Has author/Has text
 +
|headers=Date/Author(s)/Text
 +
}}{{SMWDocSection
 +
|expression=[[Died on::~*{{PAGENAME}}*]]
 +
|sort=Died on
 +
|caption_singular=A Death
 +
|caption_plural=Deaths
 +
|mainlabel = Title
 +
|properties=Born on/Died on/Has deathPlace/Has deathCause/Constitutes/Description
 +
|headers=Born/Died/Place of death/Cause of death/Summary/Description
 +
}}{{SMWDocSection
 +
|expression=[[Born on::~*{{PAGENAME}}*]]
 +
|sort=Born on
 +
|caption_singular=A Birth
 +
|caption_plural=Births
 +
|mainlabel = Title
 +
|properties=Born on/Has birthPlace/Died on/Constitutes/Description
 +
|headers=Born/Place of birth/Died/Summary/Description
 
}}}}</includeonly>
 
}}}}</includeonly>

Revision as of 11:52, 16 April 2019

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

Death(s)

Birth(s)

The pages are listed underneath, sorted by date.