Difference between revisions of "Template:DatedObjects"
Jump to navigation
Jump to search
(Modify the date, which wasn't displaying) |
|||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude> | + | <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 | + | 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.'' | ||
− | + | [[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}}}}]] | |
− | + | |sort=Start | |
− | [[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection | + | |caption_singular=Event |
− | |expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[ | + | |caption_plural=Events |
− | |sort= | ||
− | |||
− | | | ||
− | | | ||
|mainlabel = Event | |mainlabel = Event | ||
− | |properties=Display date/Description | + | |properties=Start/End/Description |
− | |headers=Date/Description | + | |headers=Start/End/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> |
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.