Recurring events: Difference between revisions

From Vipassana Explanations
(Created page with "{{Welcome}} <div style="position:relative; margin: 15px 0 0.5em 1em; border-collapse: collapse; background: #fff; float: right; clear: right; width: 250px; "> <div> {{Video |provider=YouTube |description=Semantic MediaWiki for Beginners |id=1CaNJLsAI2A |type=Tutorial video }} </div> <div> {{Video |provider=YouTube |description=Semantic MediaWiki for Beginners |id=N5rlX9yCqDo |type=Tutorial video }} </div> </div> == How to create a quality example? == If you have...")
 
No edit summary
 
Line 1: Line 1:
{{Welcome}}
== Example data ==
<div style="position:relative; margin: 15px 0 0.5em 1em; border-collapse: collapse; background: #fff; float: right; clear: right; width: 250px; ">
<pre>
<div>
{{#set_recurring_event:some           
{{Video
  |property=has date         
  |provider=YouTube
  |Has page=Recurring events
  |description=Semantic MediaWiki for Beginners
  |Has text=Simple recurring events text
  |id=1CaNJLsAI2A
  |start=June 8, 2022                                   
  |type=Tutorial video
|unit=week                           
|period=1           
|limit=10     
|duration=7200
|include=March 16, 2012;March 23, 2023|+sep=;
|exclude=March 15, 2012;March 22, 2023|+sep=;
}}
}}
</div>
</pre>
<div>
{{#set_recurring_event:some           
{{Video
|property=has date         
  |provider=YouTube
|Has page=Recurring events
  |description=Semantic MediaWiki for Beginners
|Has text=Simple recurring events text
  |id=N5rlX9yCqDo
|start=June 8, 2022                                   
  |type=Tutorial video
|unit=week                           
  |period=1           
  |limit=10     
  |duration=7200
  |include=March 16, 2012;March 23, 2013|+sep=;
|exclude=March 15, 2012;March 22, 2013|+sep=;
}}
}}
</div>
</div>
== How to create a quality example? ==
If you have encountered an issue and you would like to make that observation public to other participants then please have a look at the help page on "[[How to create a quality example]]".


== Localization and multilingual content ==
== Example query ==
This wiki uses "French" as its global [https://www.semantic-mediawiki.org/wiki/Content,_page_and_user_language content language] (site language) for the purpose of testing different solutions in connection with [https://www.semantic-mediawiki.org/wiki/Localization_and_multilingual_content localization and multilingual content] aspects.
=== broadtable ===
 
<pre>
If you are adding examples where numbers contain <code>.</code> as decimal yet French expects <code>,</code> as separator, the simple solution is to let the individual page know that you are writing in English (or any other language, see the [[Berlin]] page for more information on how to change the page content language).
{{#ask:
 
[[Has page::Recurring events]]
== Sample pages ==
|?Has date
* '''{{#ask: [[Category:Main Page sample pages|+depth=0]] }}''' demonstrate the usage of in-text annotations for most user-defined properties.
|limit=5
* '''[[John Doe]]''' shows to usage of imported vocabularies.
|format=broadtable
* [[Export]] collects pages that can be exported via [[Special:Export]]
}}
 
</pre>
=== Extension related examples and tutorials ===
{{#ask:
* [[:Category:Examples]]
[[Has page::Recurring events]]
* [[:Category:Tutorials]]
|?Has date
 
|limit=5
== Sandbox provided user-defined properties ==
|format=broadtable
}}
or
<pre>
{{#ask:
[[Has page::Recurring events]]
|?Has date#ISO
|limit=5
|format=broadtable
}}
</pre>
{{#ask:
{{#ask:
[[Property:+]]
[[Has page::Recurring events]]
[[Category:Lorem ipsum]]
  |?Has date#ISO
  |?Has property description=Description |+lang=en
  |limit=5
|?Has type=Datatype
  |mainlabel=Property
  |format=broadtable
  |format=broadtable
|class=smwtable-clean sortable
}}
}}


== Sandbox provided user-defined fixed properties ==
=== eventcalendar ===
In case the <code>format=eventcalendar</code> is available then the results will be as displayed as calendar otherwise a simple table is used.
<pre>
{{#ask:
{{#ask:
[[Property:+]]
[[Has page::Recurring events]]
  [[Category:Fixed property]]
|?Has text
  |?Has property description=Description |+lang=en
|?Has date
  |?Has type=Datatype
|limit=5
  |mainlabel=Property
|format=eventcalendar
  |format=broadtable
|start=latest
  |class=smwtable-clean sortable
}}
</pre>
{{#ask:
  [[Has page::Recurring events]]
  |?Has text
  |?Has date
  |limit=5
  |format=eventcalendar
  |start=latest
}}
}}


== Sandbox provided imported vocabulary ==
== 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:
{{#ask:
  [[Property:+]]
  [[Has page::Recurring events]]
  [[Category:Imported vocabulary]]
  |?Has page
  |?Has property description=Description |+lang=en
  |?Has text=summary
  |?Has type=Datatype
  |?Has date=start
  |mainlabel=Property
  |limit=5
  |format=broadtable
  |format=iCalendar
  |class=smwtable-clean sortable
|title=Recurring events calendar
|description=A test calender for recurring events as subobjects
  |searchlabel=Export for iCalendar
}}
}}


[[Category:Sandbox]]
[[Category:Sample pages]]
__SHOWFACTBOX__ {{Nobreadcrumblinks}}
[[Category:Main Page sample pages]]
[[Category:Semantic MediaWiki example]]
[[Category:Semantic Result Formats example]]

Latest revision as of 18:10, 30 January 2025

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 events20 July 2022
Recurring events17 August 2022
Recurring events10 August 2022
Recurring eventsMarch 23, 2013
Recurring events29 June 2022
... further results

or

{{#ask:
[[Has page::Recurring events]]
 |?Has date#ISO
 |limit=5
 |format=broadtable
}}
 Has date
Recurring events20 July 2022
Recurring events17 August 2022
Recurring events10 August 2022
Recurring eventsMarch 23, 2013
Recurring events29 June 2022
... further results

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
}}
 Has textHas date
Recurring eventsSimple recurring events text20 July 2022
Recurring eventsSimple recurring events text17 August 2022
Recurring eventsSimple recurring events text10 August 2022
Recurring eventsSimple recurring events textMarch 23, 2013
Recurring eventsSimple recurring events text29 June 2022
... further results

iCalendar

 Has pagesummarystart
Recurring eventsRecurring eventsSimple recurring events text20 July 2022
Recurring eventsRecurring eventsSimple recurring events text17 August 2022
Recurring eventsRecurring eventsSimple recurring events text10 August 2022
Recurring eventsRecurring eventsSimple recurring events textMarch 23, 2013
Recurring eventsRecurring eventsSimple recurring events text29 June 2022
... further results
 Has pagesummarystart
Recurring eventsRecurring eventsSimple recurring events text20 July 2022
Recurring eventsRecurring eventsSimple recurring events text17 August 2022
Recurring eventsRecurring eventsSimple recurring events text10 August 2022
Recurring eventsRecurring eventsSimple recurring events textMarch 23, 2013
Recurring eventsRecurring eventsSimple recurring events text29 June 2022
Export for iCalendar