Help talk:Recurring events
From semantic-mediawiki.org
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| How to get all future ''end'' dates of a recurring event? | 1 | 18:56, 2 January 2019 |
How can I #ask for recurring end dates that come in the future? Is it possible?
Probably identical to this thread.
If this is about getting all future events do something like
{{#ask:
[[Eventname::John Doe]]
[[Has date::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]]
|?Has date#ISO
|sort=Has date
|order=ascending
|format=table
}}
If this is about getting just the last of the future events do something like:
{{#ask:
[[Eventname::John Doe]]
[[Has date::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]]
|?Has date#ISO
|sort=Has date
|order=ascending
|format=table
|offset={{#expr:
{{#ask:
[[Eventname::John Doe]]
[[Has date::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]]
|format=count
}}
-1
}}
}}
See here for a live example.