Difference between revisions of "Semantic MediaWiki Events"

(Undo revision 3954 by Drobbins (talk))
Line 1: Line 1:
 +
==== 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 [[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.
 +
 
{{#ask:[[Category:Events]]
 
{{#ask:[[Category:Events]]
|?Has event
+
|?Has event=title
|?Has event start
+
|?Has event start=Start Date
|?Has event end        
+
|?Has event end=End Date               
|?Has event description  
+
|?Has event description=Description   
|?Has event icon          
+
|?Has event icon=icon             
|?Has event color
+
|?Has event color=color
 
|?Has event location
 
|?Has event location
 
|format=eventcalendar
 
|format=eventcalendar

Revision as of 23:40, May 23, 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.

 titleStart DateEnd DateDescriptioniconcolorHas event location
CalendarTest/Event11 May 2014


Event

Event
{{{event}}}
Type
Presentation
Location
Albert Hall
Start
2012/09/12
End
2012/09/12
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



drobbins@funtoo.org