Template:Event: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 96: Line 96:
   }}  
   }}  
}}
}}
| location            = {{{address|}}}
| city                = {{{city|}}}
| city                = {{{city|}}}
| state_province      = {{{state_province|}}}
| country              = {{{country|}}}
| country              = {{{country|}}}
| coordinates          = {{{coordinates|}}}
| coordinates          = {{{coordinates|}}}
Line 140: Line 142:
}}<!--
}}<!--
-->{{#set:
-->{{#set:
    Has place type             = {{{event_type|}}}|+sep=,
  Has event type           = {{{event_type|}}}
    | At venue                = {{{venue|}}}
| At venue                = {{{venue|}}}
    | Has address              = {{#if:{{{address|}}}  
| Has address              = {{#if:{{{address|}}}  
  | {{{address}}}{{#if:{{{city|}}}|, {{{city}}}}}{{#if:{{{country|}}}|, {{{country}}}}}  
  | {{{address}}}{{#if:{{{city|}}}|, {{{city}}}}}{{#if:{{{country|}}}|, {{{country}}}}}  
  | {{#if:{{{city|}}}  
  | {{#if:{{{city|}}}  
Line 149: Line 151:
   }}  
   }}  
}}
}}
    | At coordinates          = {{{coordinates|}}}
| At location              = {{{address|}}}
    | Has application link    = {{{application_link|}}}
| At coordinates          = {{{coordinates|}}}
    | Has application deadline = {{{application_deadline|}}}
| Has application link    = {{{application_link|}}}
    | Has end date            = {{{end_date|}}}
| Has application deadline = {{{application_deadline|}}}
    | Has event type           = {{{event_type|}}}
| Has end date            = {{{end_date|}}}
    | Has start date          = {{{start_date|}}}
| Has start date           = {{{start_date|}}}
    | In city                  = {{{city|}}}     
| In city                  = {{{city|}}}  
    | In country              = {{{country|}}}
| In state/province        = {{{state_province|}}}     
    | In region                = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}}
| In country              = {{{country|}}}
| In region                = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}}
  }}<!--
  }}<!--
-->
-->


</includeonly>
</includeonly>

Revision as of 01:56, 19 December 2024

Warning: Class template
This is the main template for the Event class—it should primarily be used with Form:Event to create or edit associated pages, and not invoked in other circumstances. Most of the content can be edited with the VisualEditor, but for best functionality please use the specified form.

Pages which use this template are listed at Category:Events.

The main template for the "Event" class (fairs, conferences, meetups, etc.). This template handles semantic annotation and transcludes display templates for the data (mainly Template:Infobox event).

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Event typeevent_type

Type of event.

Suggested values
Art Book Fair Comics Expo Conference Exhibition Meetup Zine Fest
Stringrequired
Websiteswebsites

A list of links for the event.

URLoptional
Start Datestart_date

Start date of the event.

Dateoptional
End dateend_date

End date of the event.

Dateoptional
Venuevenue

The name of the venue (can link to a page if there is an associated location, otherwise appears as a red link).

Page nameoptional
Addressaddress

The address of the event (or main address if there are multiple). This should be a full street address.

Stringoptional
Citycity

The city of the event.

Stringoptional
Countrycountry

The country of the event.

Stringrequired
Coordinatescoordinates

The latitude and longitude coordinates of the space (optional, to support map display). Formatted with a comma, no space.

Example
47.621937,-122.351746
Stringsuggested
Application linkapplication_link

A link to the application form/process for the event.

URLoptional
Application deadlineapplication_deadline

The deadline for application submissions.

Dateoptional
Poster/imageposter

A key image or poster for the event.

Fileoptional