Template:Event: Difference between revisions
Jump to navigation
Jump to search
Put start of table on same line as if Tag: Reverted |
iCal -> iCalendar |
||
(34 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{#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:{{{ | {{#if:{{{StartDate|}}}| | ||
! style="background-color:#DDDDDD;" {{!}} Start | {{!}}- | ||
{{!}} {{#set: | ! style="background-color:#DDDDDD;" {{!}} 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: | {{!}} {{#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 | ||
}} | {{!}} {{#set: Date={{{Date|}}}}} [[Date::{{{Date|}}}]] | ||
{{!}}- | |||
! style="background-color:#DDDDDD;" {{!}} Time | ! style="background-color:#DDDDDD;" {{!}} Time | ||
{{!}} [[Time::{{{Time|}}}]] | {{!}} [[Time::{{{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]] | |||
|} | |} | ||
[[Category:Events]] | [[Category:Events]] | ||
</includeonly> | </includeonly> |
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.