Template:Event: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 99: Line 99:
}}<!--
}}<!--
-->{{Event/upcoming}}<!--
-->{{Event/upcoming}}<!--
-->{{Event/categories}}<!--
-->[[Category:Events]]<!--
-->{{#if:{{#show:{{PAGENAME}}|?Has event type#}}|
  {{#arraymap:{{#show:{{PAGENAME}}|?Has 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
    }}]]
  |}}
}}<!--
-->{{#invoke:Geography|categories
  | class = event
  | country = {{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:Instances]]|?In country#|format=plainlist|headers=hide|mainlabel=-}}
  | state_province = {{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:Instances]]|?In state/province#|format=plainlist|headers=hide|mainlabel=-}}
  | city = {{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:Instances]]|?In city#|format=plainlist|headers=hide|mainlabel=-}}
}}<!--
-->{{#set:
-->{{#set:
   Has event type          = {{{event_type|}}}
   Has event type          = {{{event_type|}}}

Revision as of 00:37, 12 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