Difference between pages "Template:Event" and "Semantic MediaWiki Events"

(Difference between pages)
 
 
Line 1: Line 1:
<noinclude>This a template for creating an event. Parameters:
+
==== Creating Semantic Properties ====
;name: name of event
+
Create the following semantic properties to allow creation of calendar items:
;start: start date/time
+
* '''Has event''' (text -- the name of the event)
;end: end date/time
+
* '''Has event start '''(date)
;type: one of: Meeting, Presentation, Talk
+
* '''Has event end '''(date)
;location: location
+
* '''Has event description''' (text)
==See also ==
+
* '''Has event location '''(text)
[[Form:Event]]
+
* '''Has event type''' (text)
==Example ==
+
* '''Has event icon''' (page)
{{#formlink:form=Event calendar item|link text=Create event|link type=button}}
+
* '''Has event color '''(text)
</noinclude><includeonly>
+
__NOCACHE__
=== Event ===
+
==== Semantic Template ====
;Event: {{{event}}}
+
Use the [[Template:Event|event template]] to create a new event on a page. The event will be stored as an internal sub-object on the page.
;Type: {{{type}}}
+
;Location: {{{location}}}
+
;Start: {{{start}}}
+
;End: {{{end}}}
+
;Description: {{{description}}}
+
  
[[Page has default form::Event| ]]{{#subobject:{{{event}}}
+
{{Event
|Has event={{{event|}}}
+
|event=Massa ac metus porttitor neque
|Has event start={{{start|}}}
+
|start=01 May 2014
|Has event end={{{end|}}}
+
|end=02 May 2014
|Has event type={{{type|}}}
+
|type=Presentation
|Has event location={{{location|}}}
+
|location=Albert Hall
|Has event icon={{#switch: {{{type|}}}|Meeting =File:Event-meeting-icon.png|Presentation=File:Event-presentation-icon.png|Talk=File:Event-talk-icon.png }}
+
|description=Massa ac metus porttitor neque vitae purus quis ac enim semper. Habitasse tempor sit tortor id quis congue porta lacinia cursus justo. Justo accumsan orci estab
|Has event color={{#switch: {{{type|}}}|Meeting=#E9AF32|Presentation=#A0D8F1|Talk=#BF381A|Party=#E07628 }}
+
|Has event description={{{description|}}} 
+
 
}}
 
}}
</includeonly>
+
 
 +
{{#ask:[[Has event::+]]
 +
|?Has event description
 +
|?Has event start
 +
|?Has event end 
 +
|?Has event description   
 +
|?Has event icon           
 +
|?Has event color
 +
|?Has event location
 +
|format=eventcalendar
 +
|start=earliest           
 +
|defaultview=month
 +
|mainlabel=-
 +
|limit= 
 +
|link=subject
 +
|legend=pane
 +
|firstday=Monday
 +
|dayview=yes
 +
|headers=show
 +
|theme=vector
 +
}}
 +
 
 +
 
 +
__SHOWFACTBOX__
 +
[[Email::drobbins@funtoo.org]]

Revision as of 01:37, 24 May 2014

Creating Semantic Properties

Create the following semantic properties to allow creation of calendar items:

  • Has event (text -- the name of the event)
  • Has event start (date)
  • Has event end (date)
  • Has event description (text)
  • Has event location (text)
  • Has event type (text)
  • Has event icon (page)
  • Has event color (text)

Semantic Template

Use the event template to create a new event on a page. The event will be stored as an internal sub-object on the page.


Event

Event
Massa ac metus porttitor neque
Type
Presentation
Location
Albert Hall
Start
01 May 2014
End
02 May 2014
Description
Massa ac metus porttitor neque vitae purus quis ac enim semper. Habitasse tempor sit tortor id quis congue porta lacinia cursus justo. Justo accumsan orci estab



Loading...


drobbins@funtoo.org