Template:Event: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Class template|class=Event|category=Events}}
<noinclude>{{Class template|class=Event|category=Events}}
== TemplateData ==
<templatedata>
<templatedata>
{
{
Line 21: Line 22:
"description": "A list of links for the event.",
"description": "A list of links for the event.",
"type": "url"
"type": "url"
},
"start_date": {
"label": "Start Date",
"description": "Start date of the event.",
"type": "date"
},
"end_date": {
"label": "End date",
"description": "End date of the event.",
"type": "date"
},
"venue": {
"label": "Venue",
"description": "The name of the venue (can link to a page if there is an associated location, otherwise appears as a red link).",
"type": "wiki-page-name"
},
"address": {
"label": "Location",
"description": "The address of the event (or main address if there are multiple). This can be a full street address or broader region.",
"type": "string"
},
"city": {
"label": "City",
"description": "The city of the event (used for sorting, not address display).",
"type": "string"
},
"country": {
"label": "Country",
"description": "The country of the event (used for sorting, not address display).",
"type": "wiki-page-name",
"required": true
},
"coordinates": {
"label": "Coordinates",
"description": "The latitude and longitude coordinates of the space (optional, to support map display).",
"example": "47.621937, -122.351746",
"type": "string",
"suggested": true
},
"application_link": {
"label": "Application link",
"description": "A link to the application form/process for the event.",
"type": "url"
},
"application_deadline": {
"label": "Application deadline",
"description": "The deadline for application submissions.",
"type": "date"
},
},
"poster": {
"poster": {
Line 85: Line 38:
],
],
"suggested": true
"suggested": true
},
"state_province": {
"label": "State/province",
"description": "The state/province of the event (used for sorting, not address display).",
"type": "string"
},
},
"frequency": {
"frequency": {
Line 126: Line 74:
"websites",
"websites",
"poster",
"poster",
"instances",
"instances"
"start_date",
"end_date",
"venue",
"address",
"city",
"state_province",
"country",
"coordinates",
"application_link",
"application_deadline"
]
]
}
}
Line 147: Line 85:
| status              = {{{status|}}}
| status              = {{{status|}}}
| frequency            = {{{frequency|}}}
| frequency            = {{{frequency|}}}
| years_held          = {{{years_held|}}}
| websites            = {{{websites|}}}
| websites            = {{{websites|}}}
| poster              = {{{poster|}}}
| poster              = {{{poster|}}}
| venue                = {{{venue|}}}
| location            = {{{address|}}}
| city                = {{{city|}}}
| city                = {{{city|}}}
| state_province      = {{{state_province|}}}
| state_province      = {{{state_province|}}}
| country              = {{{country|}}}
| country              = {{{country|}}}
<!-- DEPRECATED FIELDS BELOW (NOW HELD IN SUBOBJECTS) -->
| venue                = {{{venue|}}}
| location            = {{{address|}}}
| coordinates          = {{{coordinates|}}}
| coordinates          = {{{coordinates|}}}
| start_date          = {{{start_date|}}} <!-- DEPRECATED -->
| start_date          = {{{start_date|}}} <!-- DEPRECATED -->
Line 159: Line 99:
| 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]]
-->[[Category:Events]]<!--
{{#if:{{{event_type|}}}|
-->{{#if:{{#show:{{PAGENAME}}|?Has event type#}}|
   {{#arraymap:{{{event_type}}}|,|@@@@|
   {{#arraymap:{{#show:{{PAGENAME}}|?Has event type#}}|,|@@@@|
     <!-- General Place Type -->
     <!-- General Place Type -->
     [[Category:{{#switch:{{lc:@@@@}}
     [[Category:{{#switch:{{lc:@@@@}}
Line 182: Line 114:
       | conference = Conferences
       | conference = Conferences
     }}]]
     }}]]
   }}
   |}}
}}<!--
-->{{#invoke:Geography|geoCategories
  | 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=-}}
}}<!--
}}<!--
-->{{#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 127:
| Has short name          = {{{short_name|}}}
| Has short name          = {{{short_name|}}}
| Has frequency            = {{{frequency|}}}
| Has frequency            = {{{frequency|}}}
| At venue                = {{{venue|}}}
| In city                  = {{{city|}}}
<!-- | Has address              = {{#if:{{{address|}}}
| In state/province        = {{{state_province|}}}
| {{{address}}}{{#if:{{{city|}}}|, {{{city}}}}}{{#if:{{{country|}}}|, {{{country}}}}}
| {{#if:{{{city|}}}
    | {{{city}}}{{#if:{{{country|}}}|, {{{country}}}}}
    | {{{country|}}}
  }}
}} -->
| At location              = {{{address|}}}
| At coordinates          = {{{coordinates|}}}
| In city                  = {{{city|}}}  
| 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 -->
<!-- DEPRECATED FIELDS BELOW (NOW HELD IN SUBOBJECTS) -->
| Has application deadline = {{{application_deadline|}}} <!-- DEPRECATED -->
| At coordinates          = {{{coordinates|}}}
| Has end date            = {{{end_date|}}} <!-- DEPRECATED -->
| Has application URL      = {{{application_link|}}}
| Has start date          = {{{start_date|}}} <!-- DEPRECATED -->
| Has application deadline = {{{application_deadline|}}}
}}<!--
| Has end date            = {{{end_date|}}}
| Has start date          = {{{start_date|}}}
}}{{{instances|}}}<!--
--></includeonly>
--></includeonly>

Latest revision as of 11:16, 20 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.

TemplateData

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