Template:EventTemplate: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{#template_params:event_date (label=Date)|event_time (label=Time)|event_location (label=Location)|event_description (label=Description)}} | {{#template_params:event_date (label=Date)|event_time (label=Time)|event_location (label=Location)|event_description (label=Description)}} | ||
{{#cargo_declare:_table=events|event_date=List (,) of Date|event_time=List (,) of Text|event_location=List (,) of Text|event_description=Text}} | {{#cargo_declare:_table=events|event_date=List (,) of Date|event_time=List (,) of Text|event_location=List (,) of Text|event_description=Text}} | ||
</noinclude><includeonly>{{#cargo_store:_table=events}} | </noinclude><includeonly> | ||
{{# | {{#cargo_store:_table=events}} | ||
'''📅 Date:''' {{{event_date}}} | |||
'''⏰ Time:''' {{{event_time}}} | |||
'''📍 Location:''' {{{event_location}}} | |||
'''📝 Description:''' {{{event_description}}} | |||
== Add to Google Calendar == | |||
<span style="display:inline-block; margin-top:10px;"> | |||
[https://calendar.google.com/calendar/render?action=TEMPLATE | |||
&text={{#urlencode:{{{event_description}}}}} | |||
&dates={{#time:Ymd\THisZ|{{{event_date}}} {{{event_time}}}}}/{{#time:Ymd\THisZ|{{{event_date}}} {{{event_time}}} +1 hour}} | |||
&details={{#urlencode:{{{event_description}}}}} | |||
&location={{#urlencode:{{{event_location}}}}} | |||
&sf=true | |||
&src=4bf57b4b257e6194276c26a5298aa113d1f303a886ba227b821eece2b03d3a98@group.calendar.google.com | |||
<span style="background-color:#4285F4; color:white; padding:8px 12px; border-radius:6px; text-decoration:none; font-weight:bold;">➕ Add to Google Calendar</span>] | |||
</span> | |||
[[Category:Events]] | [[Category:Events]] | ||
</includeonly> | </includeonly> |
Revision as of 19:59, 9 April 2025
This is the "EventTemplate" template.
It should be called in the following format:
{{EventTemplate |event_date= |event_time= |event_location= |event_description= }}
Edit the page to see the template text.
This template defines the table "events". View table.