Template:EventTemplate: Difference between revisions

From Regenerate Willamette Valley
No edit summary
No edit summary
Line 4: Line 4:
</noinclude><includeonly>{{#cargo_store:_table=events}}
</noinclude><includeonly>{{#cargo_store:_table=events}}


'''📅 Date:''' {{{event_date}}}
{| class="wikitable"
'''⏰ Time:''' {{{event_time}}}
|-
'''📍 Location:''' {{{event_location}}}
! 📅 Date
'''📝 Description:''' {{{event_description}}}
| {{{event_date}}}
|-
! ⏰ Time
| {{{event_time}}}
|-
! 📍 Location
| {{{event_location}}}
|-
! 📝 Description
| {{{event_description}}}
|}


[https://calendar.google.com/calendar/render?action=TEMPLATE&text={{#urlencode:{{FULLPAGENAME}}}}&dates={{#time:Ymd\THis\Z|{{{event_date}}} {{{event_time}}}}}/{{#time:Ymd\THis\Z|{{{event_date}}} {{{event_time}}} +1 hour}}&details={{#urlencode:{{{event_description}}}}}&location={{#urlencode:{{{event_location}}}}}&sf=true&src=4bf57b4b257e6194276c26a5298aa113d1f303a886ba227b821eece2b03d3a98@group.calendar.google.com
<div style="margin-top: 10px;">
<span style="display:inline-block; background-color:#4285F4; color:white; padding:8px 12px; border-radius:5px; text-decoration:none;">➕ Add to Google Calendar</span>]
[https://calendar.google.com/calendar/render?action=TEMPLATE&text={{{event_description}}}&dates={{#time:Ymd\THis\Z|{{{event_date}}} {{{event_time}}}}}/{{#time:Ymd\THis\Z|{{{event_date}}} {{{event_time}}} +1 hour}}&details={{{event_description}}}&location={{{event_location}}}&sf=true&src=4bf57b4b257e6194276c26a5298aa113d1f303a886ba227b821eece2b03d3a98@group.calendar.google.com
<span style="background-color:#4285F4; color:white; padding:8px 12px; border-radius:4px; text-decoration:none; font-weight:bold;">➕ Add to Google Calendar</span>]
</div>


[[Category:Events]]
[[Category:Events]]
</includeonly>
</includeonly>

Revision as of 20:06, 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.