Help talk:Recurring events

From semantic-mediawiki.org

Contents

Thread titleRepliesLast modified
How to get all future ''end'' dates of a recurring event?119:56, 2 January 2019

How to get all future ''end'' dates of a recurring event?

How can I #ask for recurring end dates that come in the future? Is it possible?

16:57, 9 November 2018

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.

19:41, 2 January 2019