Difference between revisions of "Template:DatedObjects"

From Wikispooks
Jump to navigation Jump to search
(Test)
 
(Births and Deaths)
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>'''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 no parameters.
+
__NOTOC__
 +
==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.''
  
If any events were ongoing during the page name, it makes a section:
+
[[Category:Semantic Templates]]</noinclude><includeonly>{{#if: {{Has objectClass|Year}}|{{SMWDocSection
==''Event(s)''==
+
|expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]] OR [[Has objectClass::Event]][[Start::<<{{PAGENAME}}]][[End::>{{#expr: {{PAGENAME}}}}]]
Plus a table of event(s) underneath, sorted by start date:
+
|sort=Start
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
+
|caption_singular=Event
|expression=[[Has objectClass::Event]][[Start>::{{PAGENAME}}]][[Start>::{{#expr:{{PAGENAME}}+1}}]]
+
|caption_plural=Events
|sort=Has publication date
 
|order=ascending
 
|captionSingular=Event
 
|captionPlural=Events
 
 
|mainlabel = Event
 
|mainlabel = Event
 
|properties=Display date/Description
 
|properties=Display date/Description
 
|headers=Date/Description
 
|headers=Date/Description
}}</includeonly>
+
}}{{SMWDocSection
 +
|expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 +
|sort=Start
 +
|caption_singular=A New Group
 +
|caption_plural=New Groups
 +
|mainlabel = Group
 +
|properties=Display image2/Display date/Has groupType/Description
 +
|headers=Image/Date/Type/Description
 +
}}{{SMWDocSection
 +
|expression=[[Has objectClass::Website]][[Start::>{{PAGENAME}}]][[Start::<<{{#expr: {{PAGENAME}}+1}}]]
 +
|sort=Start
 +
|caption_singular=New Website
 +
|caption_plural=New Websites
 +
|mainlabel = Event
 +
|properties=Display image2/Display date/Has URL/Description
 +
|headers=Image/Date/URL/Description
 +
}}{{SMWDocSection
 +
|expression=[[Has objectClass::Group]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
 +
|sort=Start
 +
|caption_singular=A Group that was Wound Up
 +
|caption_plural=Groups that were Wound Up
 +
|mainlabel = Group
 +
|properties=Display image2/Display date/Has groupType/Description
 +
|headers=Image/Date/Type/Description
 +
}}{{SMWDocSection
 +
|expression=[[Has objectClass::Website]][[End::>{{PAGENAME}}]][[End::<<{{#expr: {{PAGENAME}}+1}}]]
 +
|sort=Start
 +
|caption_singular=A Website that Closed
 +
|caption_plural=Closed Websites
 +
|mainlabel = Event
 +
|properties=Display image2/Display date/Has 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>

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.