Template:Event calendar: Difference between revisions
| Robertbaxter (talk | contribs) No edit summary | Robertbaxter (talk | contribs)  No edit summary | ||
| 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><!-- | |||
| -->{{#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 | |||
|  |format=plainlist | |||
|  |introtemplate=Event table/header | |||
|  |template=Event table/row | |||
|  |outrotemplate=Event table/footer | |||
|  |headers=show | |||
|  |mainlabel=Event | |||
|  |sort=Has start date | |||
|  |order=ascending | |||
|  |named args=yes | |||
|  |searchlabel=View more events | |||
|  |link=none | |||
|  |limit=25 | |||
|  |cache=300 | |||
| }} | |||
| </includeonly> | |||
Revision as of 15:56, 3 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.