Help talk:Recurring events

From semantic-mediawiki.org

Contents

Thread titleRepliesLast modified
How to get all future ''end'' dates of a recurring event?118: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?

15: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.

18:41, 2 January 2019