Template:Event: Difference between revisions

From Technologia Incognita
Jump to navigation Jump to search
No edit summary
iCal -> iCalendar
 
(15 intermediate revisions by the same user not shown)
Line 14: Line 14:
</noinclude><includeonly>
</noinclude><includeonly>
{{#set: PageTitle={{PAGENAME}}}}
{{#set: PageTitle={{PAGENAME}}}}
{{#set: Page_ID={{PAGEID}}}}
{| border="2" cellspacing="2" cellpadding="4" rules="all" style="float:right; clear:right; width:370px; margin:5px 0 1em 1em; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#FFFFFF; font-size:95%; empty-cells:hide"
{| border="2" cellspacing="2" cellpadding="4" rules="all" style="float:right; clear:right; width:370px; margin:5px 0 1em 1em; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#FFFFFF; font-size:95%; empty-cells:hide"
|- style="font-size:150%; background: #CCCCCC; text-align:center;"  
|- style="font-size:150%; background: #CCCCCC; text-align:center;"  
! colspan=2|  {{PAGENAME}}
! colspan=2|  {{PAGENAME}}
{{#if:{{{Start|}}}|
{{#if:{{{StartDate|}}}|
   {{!}}-
   {{!}}-
   ! style="background-color:#DDDDDD;" {{!}} Start
   ! style="background-color:#DDDDDD;" {{!}} Start
   {{!}} {{#set: StartDateTime={{{Start|}}}}} {{#set: Date={{{Start|}}}}} {{{Start|}}}
   {{!}} {{#set: Date={{{StartDate|}}} {{{StartTime|}}}}} {{#time: l j F Y H:i|{{{StartDate|}}} {{{StartTime|}}}}}
   {{!}}-
   {{!}}-
   ! style="background-color:#DDDDDD;" {{!}} End
   ! style="background-color:#DDDDDD;" {{!}} End
   {{!}} {{#set: EndDateTime={{{End|}}}}} {{{End|}}}
   {{!}} {{#if:{{{EndDate|}}}|{{#set: EndDateTime={{{EndDate|}}} {{{EndTime|}}}}} {{#time: l j F Y H:i|{{{EndDate|}}} {{{EndTime|}}}}} | {{#set: EndDateTime={{{StartDate|}}} {{{EndTime|}}}}} {{#time: l j F Y H:i|{{{StartDate|}}} {{{EndTime|}}}}} }}
 
|
|
   {{!}}-
   {{!}}-
   ! style="background-color:#DDDDDD;" {{!}} Date
   ! style="background-color:#DDDDDD;" {{!}} Date
   {{!}} [[Date::{{{Date|}}}]]
   {{!}} {{#set: Date={{{Date|}}}}} [[Date::{{{Date|}}}]]
   {{!}}-
   {{!}}-
   ! style="background-color:#DDDDDD;" {{!}} Time
   ! style="background-color:#DDDDDD;" {{!}} Time
Line 43: Line 45:
{{!}} {{#arraymap:{{{Contact|}}}|,|x|[[Contact::x]]}}
{{!}} {{#arraymap:{{{Contact|}}}|,|x|[[Contact::x]]}}
}}
}}
|-
! style="background-color:#DDDDDD;" | iCalendar
| [[Special:Ask/-5B-5BPage_ID-3A-3A{{PAGEID}}-5D-5D/?=summary/?Date=start/?EndDateTime=end/?Has-20location=Location/?Has-20description=description/mainlabel=/limit=1/offset=0/format=icalendar/sort=Date/order=desc/title={{PAGEID}}/description=Event-20happening-20at-20TechInc/{{PAGEID}}.ical|Add to calendar]]
|}
|}



Latest revision as of 00:13, 14 February 2025

This is the "Event" template. It should be called in the following format:

{{Event
|Start=
|End=
|Location=
|EventType=
|Contact=
}}

Edit the page to see the template text.