Difference between revisions of "Template:Calendar"

From ToorCamp Wiki
Jump to navigation Jump to search
ccc>Wikiadmin
(initial import of content)
 
ccc>Twi
Line 8: Line 8:
  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 +
 +
{{#ask: [[Has object type::Event]] [[Has start time::~{{1}}]]
 +
| ?Has event title=Event Title
 +
| ?Has start time=Start
 +
| ?Has duration=Duration
 +
| ?Has session location=location
 +
| mainlabel=Session
 +
| limit=2342
 +
| sort=Has start time
 +
}}
 +
{{Refresh}}
 +
  
 
<div class="cal">
 
<div class="cal">
Line 15: Line 27:
  
 
<div class="cal-ical" style="text-align: right;">
 
<div class="cal-ical" style="text-align: right;">
{{#ask: [[Has object type::Event]] {{{1}}}
+
{{#ask: [[Has object type::Event]] [[Has start time::~{{1}}]]
 
| ?Has event title = summary
 
| ?Has event title = summary
 
| ?Has start time = start
 
| ?Has start time = start
Line 29: Line 41:
 
</div>
 
</div>
  
<div class="cal-calendar">
 
{{#if: {{#ask: [[Has object type::Event]] {{{1}}} }} | | This calendar has no events yet. }}
 
{{#ask: [[Has object type::Event]] {{{1}}}
 
| ?Has event title=title
 
| ?Has start time=Start time
 
| ?Has end time=End time
 
| ?Has color=color
 
| ?Has session location=location
 
| ?Held in language=language
 
| ?Is organized by=person
 
| ?Has description=Description
 
| ?Has url=url
 
| ?Has event track=track
 
| format=eventcalendar
 
| limit=2342
 
| defaultview=agendaday
 
| dayview=yes
 
}}
 
{{Refresh}}
 
</div>
 
 
</div>
 
</div>
  
 
</includeonly>
 
</includeonly>

Revision as of 15:10, 13 July 2019


This template adds a default calendar to the site using it.

Usage:

{{Calendar|<FILTER>}}