Difference between revisions of "Template:Calendar"

From ToorCamp Wiki
Jump to navigation Jump to search
ccc>Wikiadmin
(initial import of content)
 
m (41 revisions imported)
 
(40 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
Usage:
 
Usage:
 
  <nowiki>{{</nowiki>{{PAGENAME}}|<FILTER><nowiki>}}</nowiki>
 
  <nowiki>{{</nowiki>{{PAGENAME}}|<FILTER><nowiki>}}</nowiki>
 
  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
+
{{#ask:[[Has object type::Event]]{{{1}}}
<div class="cal">
+
| ?Has event title=Session
<div class="cal-refine">
+
| ?Has start time=Start
{{Calendar/Refine}}
+
| ?Has duration=Duration
</div>
+
| ?Has session location=Location
 
+
| mainlabel=Has event title
<div class="cal-ical" style="text-align: right;">
 
{{#ask: [[Has object type::Event]] {{{1}}}
 
| ?Has event title = summary
 
| ?Has start time = start
 
| ?Has end time = end
 
| ?Has session location = location
 
| ?Has url=url
 
| ?Has description = description
 
| format=icalendar
 
| icalendartitle=Semantic
 
| searchlabel=Export this calendar as iCal
 
 
| limit=2342
 
| limit=2342
}}
+
| sort=Has start time
</div>
+
| format=broadtable
 
 
<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}}
 
{{Refresh}}
</div>
 
</div>
 
 
 
</includeonly>
 
</includeonly>

Latest revision as of 07:39, 4 March 2020


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

Usage:

{{Calendar|<FILTER>}}