Template:EventTemplate: Difference between revisions

From Regenerate Willamette Valley
No edit summary
Tag: Reverted
m Reverted edits by Admin (talk) to last revision by TH
Tag: Rollback
 
(9 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{#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}}
 
{{#template_display:_format=table}}
{| class="wikitable"
|-
! 📅 Date
| {{{event_date}}}
|-
! ⏰ Time
| {{{event_time}}}
|-
! 📍 Location
| {{{event_location}}}
|-
! 📝 Description
| {{{event_description}}}
|}
 
<div style="margin-top: 10px;">
[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>

Latest revision as of 18:13, 22 May 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.