Template:EventTemplate: Difference between revisions

From Regenerate Willamette Valley
No edit summary
mNo edit summary
 
Line 4: Line 4:
</noinclude><includeonly>
</noinclude><includeonly>


<!-- Step 1: Retrieve event data from the Cargo table (this should be outside of includeonly) -->
<!-- Step 1: Retrieve event data from the Cargo table (correctly populate the fields) -->
{{#cargo_query:
{{#cargo_query:
   table=events
   table=events
Line 12: Line 12:
}}
}}


<!-- Step 2: Display event info -->
<!-- Step 2: Create a Google Form pre-filled link -->
{| class="wikitable"
{{#vardefine:event_date_encoded|{{#urlencode:{{#var:event_date}}}}}}
|-
{{#vardefine:event_time_encoded|{{#urlencode:{{#var:event_time}}}}}}
! 📅 Date:
{{#vardefine:event_location_encoded|{{#urlencode:{{#var:event_location}}}}}}
| {{#var:event_date}}
{{#vardefine:event_description_encoded|{{#urlencode:{{#var:event_description}}}}}}
|-
! ⏰ Time:
| {{#var:event_time}}
|-
! 📍 Location:
| {{#var:event_location}}
|-
! 📝 Description:
| {{#var:event_description}}
|}


<!-- Step 3: Pre-filled Google Form submission link -->
<!-- Step 3: Display the Google Form pre-fill link for submitting events -->
[https://docs.google.com/forms/d/e/1FAIpQLSf_OtfXtaGQ8kl9WrBz8UL7f2WjPI6WhmuoaeV-F3ZWKJbeUg/viewform?usp=pp_url&entry.26084320={{#urlencode:{{#var:event_date}}}}&entry.973803386={{#urlencode:{{#var:event_time}}}}&entry.792169663={{#urlencode:{{#var:event_location}}}}&entry.1604572264={{#urlencode:{{#var:event_description}}}} 📤 Submit this event to the Regenerate Willamette Valley Calendar]
[https://docs.google.com/forms/d/e/1FAIpQLSf_OtfXtaGQ8kl9WrBz8UL7f2WjPI6WhmuoaeV-F3ZWKJbeUg/viewform?usp=pp_url&entry.26084320={{#var:event_date_encoded}}&entry.973803386={{#var:event_time_encoded}}&entry.792169663={{#var:event_location_encoded}}&entry.1604572264={{#var:event_description_encoded}} 📤 Submit this event to the Regenerate Willamette Valley Calendar]


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

Latest revision as of 21:23, 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.