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

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
==== Creating Semantic Properties ====
<noinclude>This a template for creating an event. Parameters:
Create the following semantic properties to allow creation of calendar items:
;name: name of event
* '''Has event''' (text -- the name of the event)
;start: start date/time
* '''Has event start '''(date)
;end: end date/time
* '''Has event end '''(date)
;type: one of: Meeting, Presentation, Talk
* '''Has event description''' (text)
;location: location
* '''Has event location '''(text)
==See also ==
* '''Has event type''' (text)
[[Form:Event]]
* '''Has event icon''' (page)
==Example ==
* '''Has event color '''(text)
{{#formlink:form=Event calendar item|link text=Create event|link type=button}}
__NOCACHE__
</noinclude><includeonly>
==== Semantic Template ====
=== 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.
;Name: {{{name}}}
;Type: {{{type}}}
;Location: {{{location}}}
;Start: {{{start}}}
;End: {{{end}}}
;Description: {{{description}}}


{{Event
[[Page has default form::Event| ]]{{#subobject:
|event=Massa ac metus porttitor neque
|Has event={{{event|}}}
|start=01 May 2014
|Has event start={{{start|}}}
|end=02 May 2014
|Has event end={{{end|}}}
|type=Presentation
|Has event type={{{type|}}}
|location=Albert Hall
|Has event location={{{location|}}}
|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 icon={{#switch: {{{type|}}}|Meeting =File:Event-meeting-icon.png|Presentation=File:Event-presentation-icon.png|Talk=File:Event-talk-icon.png }}
|Has event color={{#switch: {{{type|}}}|Meeting=#E9AF32|Presentation=#A0D8F1|Talk=#BF381A|Party=#E07628 }}
|Has event description={{{description|}}} 
}}
}}
 
</includeonly>
{{#ask:[[Has event::+]]
|?Has event
|?Has event start
|?Has event end               
|?Has event description=Description   
|?Has event icon           
|?Has event color
|?Has event location
|format=eventcalendar
|start=earliest           
|defaultview=month
|limit= 
|link=subject
|legend=pane
|firstday=Monday
|dayview=yes
|headers=show
|theme=vector
}}
 
 
__SHOWFACTBOX__
[[Email::drobbins@funtoo.org]]

Revision as of 00:24, May 24, 2014

This a template for creating an event. Parameters:

name
name of event
start
start date/time
end
end date/time
type
one of: Meeting, Presentation, Talk
location
location

See also

Form:Event

Example