Difference between revisions of "Template:DatedObjects"

From Wikispooks
Jump to navigation Jump to search
(Display image instead of logo)
(Modify the date, which wasn't displaying)
 
(12 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 events which were ongoing during 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 can only be used on pages which are numerical, e.g. "1967".''' It does not yet support pages such as 1967/May.<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.''
  
[[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
|captionSingular=Event
+
|caption_singular=Event
|captionPlural=Events
+
|caption_plural=Events
 
|mainlabel = Event
 
|mainlabel = Event
|properties=Display image/Display date/Has eventType/Description
+
|properties=Start/End/Description
|headers=Image/Date/Type/Description
+
|headers=Start/End/Description
 
}}{{SMWDocSection
 
}}{{SMWDocSection
 
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 
|sort=Start
 
|sort=Start
|captionSingular=A New Group
+
|caption_singular=A New Group
|captionPlural=New Groups
+
|caption_plural=New Groups
 
|mainlabel = Group
 
|mainlabel = Group
|properties=Display image/Display date/Has groupType/Description
+
|properties=Display image2/Display date/Has groupType/Description
 
|headers=Image/Date/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}}]]
 
|sort=Start
 
|sort=Start
|captionSingular=New Website
+
|caption_singular=New Website
|captionPlural=New Websites
+
|caption_plural=New Websites
 
|mainlabel = Event
 
|mainlabel = Event
|properties=Display image/Display date/Has URL/Description
+
|properties=Display image2/Display date/Has URL/Description
 
|headers=Image/Date/URL/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}}]]
 
|sort=Start
 
|sort=Start
|captionSingular=A Group that was Wound Up
+
|caption_singular=A Group that was Wound Up
|captionPlural=Groups that were Wound Up
+
|caption_plural=Groups that were Wound Up
 
|mainlabel = Group
 
|mainlabel = Group
|properties=Display image/Display date/Has groupType/Description
+
|properties=Display image2/Display date/Has groupType/Description
 
|headers=Image/Date/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}}]]
 
|sort=Start
 
|sort=Start
|captionSingular=A Website that Closed
+
|caption_singular=A Website that Closed
|captionPlural=Closed Websites
+
|caption_plural=Closed Websites
 
|mainlabel = Event
 
|mainlabel = Event
|properties=Display image/Display date/Has URL/Description
+
|properties=Display image2/Display date/Has URL/Description
 
|headers=Image/Date/URL/Description
 
|headers=Image/Date/URL/Description
}}</includeonly>
+
}}{{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>

Latest revision as of 16:11, 12 March 2022

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.