Template:Event: Difference between revisions

From stencil.wiki
No edit summary
(Moving category assignment to Event/categories)
Line 149: Line 149:
| websites            = {{{websites|}}}
| websites            = {{{websites|}}}
| poster              = {{{poster|}}}
| poster              = {{{poster|}}}
<!-- DEPRECATED FIELDS BELOW (NOW HELD IN SUBOBJECTS) -->
| venue                = {{{venue|}}}
| venue                = {{{venue|}}}
| location            = {{{address|}}}
| location            = {{{address|}}}
Line 159: Line 160:
| application_deadline = {{{application_deadline|}}} <!-- DEPRECATED -->
| application_deadline = {{{application_deadline|}}} <!-- DEPRECATED -->
| application_link    = {{{application_link|}}} <!-- DEPRECATED -->
| application_link    = {{{application_link|}}} <!-- DEPRECATED -->
<!--| event_type      = {{#arraymap:{{{event_type|}}}|,|x|[[event_type::x]]}} -->
<!--| address          = {{#if:{{{address|}}}
      | {{{address}}}{{#if:{{{city|}}}|, {{{city}}}}}{{#if:{{{country|}}}|, {{{country}}}}}
      | {{#if:{{{city|}}}
        | {{{city}}}{{#if:{{{country|}}}|, {{{country}}}}}
        | {{{country|}}}
      }}
    }} -->
}}<!--
}}<!--
-->{{{instances|}}}{{Event/upcoming}}<!--
-->{{Event/upcoming}}<!--
-->[[Category:Events]]
-->{{Event/categories}}<!--
{{#if:{{{event_type|}}}|
  {{#arraymap:{{{event_type}}}|,|@@@@|
    <!-- General Place Type -->
    [[Category:{{#switch:{{lc:@@@@}}
      | art book fair = Art book fairs
      | class = Classes
      | exhibition = Exhibitions
      | zine fest = Zine fests
      | meetup = Meetups
      | comics expo = Comics expos
      | conference = Conferences
    }}]]
  |}}
}}<!--
-->{{#if:{{{city|}}}|[[Category:Events in {{{city}}}]]}}<!--
-->{{#if:{{{state_province|}}}|[[Category:Events in {{{state_province}}}]]}}<!--
-->{{#if:{{{country|}}}|[[Category:Events in {{{country}}}]]}}<!--
-->{{#if:{{{country|}}}|[[Category:Events in {{CountryRegionMapping|country={{{country}}}}}]]}}<!--
-->{{#set:
-->{{#set:
   Has event type          = {{{event_type|}}}
   Has event type          = {{{event_type|}}}
Line 193: Line 168:
| Has short name          = {{{short_name|}}}
| Has short name          = {{{short_name|}}}
| Has frequency            = {{{frequency|}}}
| Has frequency            = {{{frequency|}}}
<!-- DEPRECATED FIELDS BELOW (NOW HELD IN SUBOBJECTS) -->
| At venue                = {{{venue|}}}
| At venue                = {{{venue|}}}
| At location              = {{{address|}}}  
| At location              = {{{address|}}}
| At coordinates          = {{{coordinates|}}}
| At coordinates          = {{{coordinates|}}}
| In city                  = {{{city|}}}  
| In city                  = {{{city|}}}
| In state/province        = {{{state_province|}}}    
| In state/province        = {{{state_province|}}}
| In country              = {{{country|}}}
| In country              = {{{country|}}}
| In region                = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}}
| In region                = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}}
| Has application URL      = {{{application_link|}}} <!-- DEPRECATED -->
| Has application URL      = {{{application_link|}}}
| Has application deadline = {{{application_deadline|}}} <!-- DEPRECATED -->
| Has application deadline = {{{application_deadline|}}}
| Has end date            = {{{end_date|}}} <!-- DEPRECATED -->
| Has end date            = {{{end_date|}}}
| Has start date          = {{{start_date|}}} <!-- DEPRECATED -->
| Has start date          = {{{start_date|}}}
}}<!--
}}{{{instances|}}}<!--
--></includeonly>
--></includeonly>

Revision as of 18:12, 2 January 2025

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
Statusstatus

The status of the event.

Suggested values
Active Inactive Paused
Stringsuggested
Short name/acronymshort_name

A shortened version of the event name (used to generate event names for recurring events, e.g. SABF 2024, SABF 2025).

Stringsuggested
Frequencyfrequency

How frequently the event occurs.

Suggested values
Once Annually Biennially Semiannually Monthly Weekly Abstract
Stringoptional
Websiteswebsites

A list of links for the event.

URLoptional
Poster/imageposter

A key image or poster for the event.

Fileoptional
Instancesinstances

A list of the instances of the event. These are implemented with Template:Event/instance—please use the page form Form:Event to edit them.

Contentoptional
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
Locationaddress

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

Stringoptional
Citycity

The city of the event (used for sorting, not address display).

Stringoptional
State/provincestate_province

The state/province of the event (used for sorting, not address display).

Stringoptional
Countrycountry

The country of the event (used for sorting, not address display).

Page namerequired
Coordinatescoordinates

The latitude and longitude coordinates of the space (optional, to support map display).

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