Template:Event calendar: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Semantic display template}} | <noinclude>{{Semantic display template}} | ||
This template displays any ''calendar entries'' defined on the [[:Category:Events]] page it is included within (all ''Events'' pages should end with this template)—these are defined with the [[Form:Event]] form and declared in [[Template:Calendar entry]] templates. The data must be stored as semantic <code>#subobject @category=Calendar entries</code> via <code>#set</code> on the page.</noinclude> | This template displays any ''calendar entries'' defined on the [[:Category:Events]] page it is included within (all ''Events'' pages should end with this template)—these are defined with the [[Form:Event]] form and declared in [[Template:Calendar entry]] templates. The data must be stored as semantic <code>#subobject @category=Calendar entries</code> via <code>#set</code> on the page.</noinclude><!-- | ||
--><includeonly><!-- | |||
-->{{clear float}} | |||
== Event list == | |||
{{#ask: | |||
[[Category:Calendar entries]] | |||
[[-Has subobject::{{FULLPAGENAME}}]] | |||
|?Has name=name | |||
|?In city=city | |||
|?In country=country | |||
|?In region=region | |||
|?has event type=event_type | |||
|?Has start date=start_date | |||
|?Has end date=end_date | |||
|?Has application deadline=application_deadline | |||
|?Has application URL=application_link | |||
|?Has parent=parent | |||
|?Has URL=website | |||
|format=plainlist | |||
|introtemplate=Event table/header | |||
|template=Event table/row | |||
|outrotemplate=Event table/footer | |||
|headers=show | |||
|mainlabel=Event | |||
|sort=Has start date | |||
|order=descending | |||
|named args=yes | |||
|searchlabel=View more events | |||
|link=none | |||
|limit=25 | |||
|cache=300 | |||
}}<!-- | |||
--></includeonly> |
Latest revision as of 09:32, 8 September 2025
This template displays any calendar entries defined on the Category:Events page it is included within (all Events pages should end with this template)—these are defined with the Form:Event form and declared in Template:Calendar entry templates. The data must be stored as semantic #subobject @category=Calendar entries
via #set
on the page.