Différences entre les versions de « Recurring events »
De Semantic MediaWiki - Sandbox
(chg) |
m (→iCalendar) |
||
(7 versions intermédiaires par 3 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
+ | == Example data == | ||
<pre> | <pre> | ||
{{#set_recurring_event:some | {{#set_recurring_event:some | ||
Ligne 4 : | Ligne 5 : | ||
|Has page=Recurring events | |Has page=Recurring events | ||
|Has text=Simple recurring events text | |Has text=Simple recurring events text | ||
− | |start=June 8, | + | |start=June 8, 2022 |
− | |unit= | + | |unit=week |
|period=1 | |period=1 | ||
|limit=10 | |limit=10 | ||
|duration=7200 | |duration=7200 | ||
− | |include=March 16, | + | |include=March 16, 2012;March 23, 2023|+sep=; |
− | |exclude=March 15, | + | |exclude=March 15, 2012;March 22, 2023|+sep=; |
}} | }} | ||
</pre> | </pre> | ||
Ligne 17 : | Ligne 18 : | ||
|Has page=Recurring events | |Has page=Recurring events | ||
|Has text=Simple recurring events text | |Has text=Simple recurring events text | ||
− | |start=June 8, | + | |start=June 8, 2022 |
− | |unit= | + | |unit=week |
|period=1 | |period=1 | ||
|limit=10 | |limit=10 | ||
|duration=7200 | |duration=7200 | ||
− | |include=March 16, | + | |include=March 16, 2012;March 23, 2013|+sep=; |
− | |exclude=March 15, | + | |exclude=March 15, 2012;March 22, 2013|+sep=; |
}} | }} | ||
+ | |||
== Example query == | == Example query == | ||
=== broadtable === | === broadtable === | ||
Ligne 76 : | Ligne 78 : | ||
|format=eventcalendar | |format=eventcalendar | ||
|start=latest | |start=latest | ||
+ | }} | ||
+ | |||
+ | == iCalendar == | ||
+ | {{#ask: | ||
+ | [[Has page::Recurring events]] | ||
+ | |?Has page | ||
+ | |?Has text=summary | ||
+ | |?Has date=start | ||
+ | |limit=5 | ||
+ | |format=table | ||
+ | |title=Recurring events calendar | ||
+ | |description=A test calender for recurring events as subobjects | ||
+ | }} | ||
+ | {{#ask: | ||
+ | [[Has page::Recurring events]] | ||
+ | |?Has page | ||
+ | |?Has text=summary | ||
+ | |?Has date=start | ||
+ | |limit=5 | ||
+ | |format=iCalendar | ||
+ | |title=Recurring events calendar | ||
+ | |description=A test calender for recurring events as subobjects | ||
+ | |searchlabel=Export for iCalendar | ||
}} | }} | ||
[[Category:Sample pages]] | [[Category:Sample pages]] | ||
[[Category:Main Page sample pages]] | [[Category:Main Page sample pages]] | ||
+ | [[Category:Semantic MediaWiki example]] | ||
[[Category:Semantic Result Formats example]] | [[Category:Semantic Result Formats example]] |
Dernière version du 27 mars 2023 à 09:05
Example data
{{#set_recurring_event:some |property=has date |Has page=Recurring events |Has text=Simple recurring events text |start=June 8, 2022 |unit=week |period=1 |limit=10 |duration=7200 |include=March 16, 2012;March 23, 2023|+sep=; |exclude=March 15, 2012;March 22, 2023|+sep=; }}
Example query
broadtable
{{#ask: [[Has page::Recurring events]] |?Has date |limit=5 |format=broadtable }}
Has date | |
---|---|
Recurring events | 17 août 2022 |
Recurring events | 6 juillet 2022 |
Recurring events | 23 mars 2013 |
Recurring events | 29 juin 2022 |
Recurring events | 3 août 2022 |
... autres résultats |
or
{{#ask: [[Has page::Recurring events]] |?Has date#ISO |limit=5 |format=broadtable }}
Has date | |
---|---|
Recurring events | 2022-08-17 |
Recurring events | 2022-07-06 |
Recurring events | 2013-03-23 |
Recurring events | 2022-06-29 |
Recurring events | 2022-08-03 |
... autres résultats |
eventcalendar
In case the format=eventcalendar
is available then the results will be as displayed as calendar otherwise a simple table is used.
{{#ask: [[Has page::Recurring events]] |?Has text |?Has date |limit=5 |format=eventcalendar |start=latest }}
iCalendar
Has page | summary | start | |
---|---|---|---|
Recurring events | Recurring events | Simple recurring events text | 17 août 2022 |
Recurring events | Recurring events | Simple recurring events text | 6 juillet 2022 |
Recurring events | Recurring events | Simple recurring events text | 23 mars 2013 |
Recurring events | Recurring events | Simple recurring events text | 29 juin 2022 |
Recurring events | Recurring events | Simple recurring events text | 3 août 2022 |
... autres résultats |