Jump to content

Template:Event: Difference between revisions

From VassarWiki
formatting
fixing some errors
Line 1: Line 1:
<div style="display:inline-block; vertical-align:top; border:1px solid var(--vw-border); padding:0.6em 0.8em; margin:0.4em; width:220px; background: var(--vw-bg-subtle);">
<div style="display:inline-block; vertical-align:top; border:1px solid var(--vw-border); padding:0.6em 0.8em; margin:0.4em; width:220px; background: var(--vw-bg-subtle); overflow-wrap:break-word;">
{{#if:{{{image|}}}|<div style="text-align:center; margin-bottom:0.4em;">[[File:{{{image}}}|210px]]</div>}}
{{#if:{{{image|}}}|<div style="text-align:center; margin-bottom:0.4em;">[[File:{{{image}}}|210px]]</div>}}
<div style="font-weight:bold; font-size:1.15em; margin-bottom:0.2em;">{{{name}}}</div>
<div style="font-weight:bold; font-size:1.15em; margin-bottom:0.2em;">{{{name}}}</div>
{{#if:{{{description|}}}|<div style="font-style:italic; font-size:0.85em; line-height:1;">{{{description|}}}</div>}}
{{#if:{{{description|}}}|<div style="font-style:italic; font-size:0.85em; line-height:1;">{{{description|}}}</div>}}
{{#if:{{{organizers|}}}|<div>👥 {{{organizers}}}</div>}}
{{#if:{{{organizers|}}}|<div>👥 {{{organizers}}}</div>}}
<div>{{#if:{{{date|}}}|📅 {{#time:F j|{{{date}}}}}}}{{#if:{{{time|}}}|<span style="white-space:nowrap"> 🕐 {{{time}}}</span>}}</div>
<div>{{#if:{{{date|}}}|<span style="white-space:nowrap">📅 {{#time:F j|{{{date}}}}}</span>}}{{#if:{{{time|}}}|<span style="white-space:nowrap; margin-left:1em;">🕐 {{{time}}}</span>}}</div>
{{#if:{{{place|}}}|<div>📍 {{{place}}}</div>}}
{{#if:{{{place|}}}|<div>📍 {{{place}}}</div>}}
</div><noinclude>{{Documentation}}</noinclude>
</div><noinclude>{{Documentation}}</noinclude>

Revision as of 20:15, 29 April 2026

{{{name}}}


Documentation[edit documentation]

For more general help using templates, see VassarWiki:Templates.

Displays a compact event card for use on club pages. Automatically placed on the Upcoming Events page.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Event namename

no description

Stringrequired
Organizersorganizers

All organizer(s), whether they're individuals, orgs, departments, etc. Wikilink if possible.

Example
[[Vastards]]
Stringsuggested
Datedate

Date in YYYY-MM-DD format

Example
2027-01-30
Daterequired
Timetime

no description

Stringsuggested
Placeplace

Location of the event, wikilinked if possible

Example
Rocky 300
Stringoptional
Imageimage

Image filename, without the File: prefix.

Example
Flyer.png
Fileoptional
descriptiondescription

very brief description or extra info (anything substantial should go on a page!)

Stringoptional

Example

{{Poster
| name = Best Event Ever
| organizers = VassarWiki
| date = 2027-01-01
| time = 1 pm
| place = Rocky 300
| image = wompwomp.png
}}
Best Event Ever
👥 VassarWiki
📅 January 1🕐 1 pm
📍 Rocky 300