Difference between revisions of "Template:DatedObjects"
Jump to navigation
Jump to search
(New Groups section) |
|||
Line 1: | Line 1: | ||
<noinclude>'''This template creates a section listing the events which were ongoing during the year <nowiki>{{PAGENAME}}</nowiki>.<br/> | <noinclude>'''This template creates a section listing the events which were ongoing during the year <nowiki>{{PAGENAME}}</nowiki>.<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/> | + | 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 no parameters. | It no parameters. | ||
− | If any | + | If any [[group]]s were founded during the page name, it makes a section: |
+ | ==''New Group(s)''== | ||
+ | Plus a table of new group(s) underneath, sorted by start date. | ||
+ | |||
+ | If any [[event]]s were ongoing during the page name, it makes a section: | ||
==''Event(s)''== | ==''Event(s)''== | ||
Plus a table of event(s) underneath, sorted by start date: | Plus a table of event(s) underneath, sorted by start date: | ||
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection | [[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection | ||
+ | |expression=[[Has objectClass::Group]][[Start::>{{PAGENAME}}]] | ||
+ | |sort=Start | ||
+ | |captionSingular=A New Group | ||
+ | |captionPlural=New Groups | ||
+ | |mainlabel = Group | ||
+ | |properties=Display date/Has logo/Has groupType/Description | ||
+ | |headers=Date/Logo/Type/Description | ||
+ | }}{{SMWDocSection | ||
|expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]] | |expression=[[Has objectClass::Event]][[Start::>{{PAGENAME}}]][[End::<{{#expr: {{PAGENAME}}+1}}]] | ||
|sort=Start | |sort=Start |
Revision as of 05:34, 31 January 2015
This template creates a section listing the events which were ongoing during the year {{PAGENAME}}.
The template can only be used on pages which are numerical, e.g. "1967". It does not yet support pages such as 1967/May.
It no parameters.
If any groups were founded during the page name, it makes a section:
New Group(s)
Plus a table of new group(s) underneath, sorted by start date.
If any events were ongoing during the page name, it makes a section:
Event(s)
Plus a table of event(s) underneath, sorted by start date: