Template:Infobox event: Difference between revisions
(Debugging cargo.) |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 62: | Line 62: | ||
|header10 = |
|header10 = |
||
|label10 = Subscribe |
|label10 = Subscribe |
||
|data10 = {{# |
|data10 = {{#cargo_query: |
||
tables=CommunityEvents |
|||
[[Eventstartdate::>{{#time: Y-m-d | -2 days }}]] |
|||
|fields=CommunityEvents._pageName, CommunityEvents.NextDateStart |
|||
[[Eventstartdate::<{{#time: Y-m-d | {{CURRENTYEAR}}-12-31}}]] |
|||
|where=COALESCE(NextDateEnd,NextDateStart) > DATE_ADD(NOW(), INTERVAL -2 DAY) and _pageName = '{{FULLPAGENAME}}' |
|||
[[{{FULLPAGENAME}}]] |
|||
|order by=CommunityEvents.NextDateStart ASC |
|||
[[Status::Active]] |
|||
|format=feed |
|||
|? Eventstartdate#ISO = date |
|||
|feed type=rss |
|||
|link text=RSS |
|||
|sort=Eventstartdate |
|||
| ⚫ | |||
|order=ASC |
|||
|feed description=A feed of upcoming {{FULLPAGENAME}} events. |
|||
|searchlabel= RSS |
|||
}} {{b|·}} {{#cargo_query: |
|||
| ⚫ | |||
tables=CommunityEvents |
|||
| ⚫ | |||
|fields=CommunityEvents._pageName, CommunityEvents.NextDateStart, CommunityEvents.NextDateEnd |
|||
}} {{b|·}} {{#ifexpr: {{#ask: [[Eventstartdate::+]] [[{{FULLPAGENAME}}]] [[Status::Active]] |format=count}} > 0 |
|||
|where=COALESCE(NextDateEnd,NextDateStart) > DATE_ADD(NOW(), INTERVAL -2 DAY) and _pageName = '{{FULLPAGENAME}}' |
|||
|order by=CommunityEvents.NextDateStart ASC |
|||
| {{#ask: |
|||
|format=icalendar |
|||
[[Eventstartdate::>{{#time: Y-m-d | -2 days }}]] |
|||
|link text=iCal |
|||
[[Eventstartdate::<{{#time: Y-m-d | {{CURRENTYEAR}}-12-31}}]] |
|||
|filename=calendar.ics |
|||
[[{{FULLPAGENAME}}]] |
|||
| ⚫ | |||
[[Status::Active]] |
|||
|icalendar description=A calendar of upcoming {{FULLPAGENAME}} events |
|||
|? Eventstartdate = start |
|||
|? Eventenddate = end |
|||
|format=iCalendar |
|||
|sort=eventstartdate |
|||
|order=ASC |
|||
|searchlabel=iCal |
|||
|title={{FULLPAGENAME}} |
|||
}} |
|||
| <span class="error">No iCal available.</span> |
|||
}} |
}} |
||
|belowstyle = background:#ddf; |
|belowstyle = background:#ddf; |
||
Latest revision as of 03:39, 17 April 2026
This template defines the table "CommunityEvents". View table.
![]() Caption goes here | |
| Organizer(s) | Organizer(s) |
|---|---|
| Status | Active |
| First held on | February 2, 2008 |
| Last held on | February 28, 2008 |
| Setting | Camping |
| Website | |
| Subscribe | RSS · iCal |
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| image | image | no description | Unknown | optional |
| url | url | no description | Unknown | optional |
| caption | caption | no description | Unknown | optional |
| organizer | organizer | no description | Unknown | optional |
| status | status | no description | Unknown | optional |
| country | country | no description | Unknown | optional |
| city | city | no description | Unknown | optional |
| state | state | no description | Unknown | optional |
| attendees | attendees | no description | Unknown | optional |
| nextdate | nextdate | no description | Unknown | optional |
| nextends | nextends | no description | Unknown | optional |
| began | began | no description | Unknown | optional |
| lastheld | lastheld | no description | Unknown | optional |
| setting | setting | no description | Unknown | optional |
| eventtype | eventtype | no description | Unknown | optional |
