Pages which use this template are listed at Category:Events.
Template:Event: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
(19 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 22: | Line 23: | ||
"type": "url" | "type": "url" | ||
}, | }, | ||
" | "poster": { | ||
"label": " | "label": "Poster/image", | ||
"description": " | "description": "A key image or poster for the event.", | ||
"type": " | "type": "wiki-file-name" | ||
}, | }, | ||
" | "status": { | ||
"label": " | "label": "Status", | ||
"description": " | "description": "The status of the event.", | ||
"type": " | "type": "string", | ||
"suggestedvalues": [ | |||
"Active", | |||
"Inactive", | |||
"Paused" | |||
], | |||
"suggested": true | |||
}, | }, | ||
" | "frequency": { | ||
"label": " | "label": "Frequency", | ||
"description": " | "description": "How frequently the event occurs.", | ||
"type": " | "type": "string", | ||
"suggestedvalues": [ | |||
"Once", | |||
"Annually", | |||
"Biennially", | |||
"Semiannually", | |||
"Monthly", | |||
"Weekly", | |||
"Abstract" | |||
] | |||
}, | }, | ||
" | "instances": { | ||
"label": " | "label": "Instances", | ||
"description": " | "description": "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.", | ||
"type": " | "type": "content" | ||
}, | }, | ||
" | "short_name": { | ||
"label": " | "label": "Short name/acronym", | ||
"description": " | "description": "A shortened version of the event name (used to generate event names for recurring events, e.g. SABF 2024, SABF 2025).", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
} | } | ||
}, | }, | ||
"description": "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).", | "description": "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).", | ||
"format": "block" | "format": "block", | ||
"paramOrder": [ | |||
"event_type", | |||
"status", | |||
"short_name", | |||
"frequency", | |||
"websites", | |||
"poster", | |||
"instances" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
Line 86: | Line 84: | ||
| event_type = {{{event_type|}}} | | event_type = {{{event_type|}}} | ||
| status = {{{status|}}} | | status = {{{status|}}} | ||
| frequency = {{{ | | frequency = {{{frequency|}}} | ||
| years_held = {{{years_held|}}} | |||
| websites = {{{websites|}}} | | websites = {{{websites|}}} | ||
| poster = {{{poster|}}} | | poster = {{{poster|}}} | ||
| 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 --> | ||
| end_date = {{{end_date|}}} <!-- DEPRECATED --> | | end_date = {{{end_date|}}} <!-- DEPRECATED --> | ||
| application_deadline = {{{application_deadline|}}} <!-- DEPRECATED --> | |||
| application_link = {{{application_link|}}} <!-- DEPRECATED --> | |||
}}<!-- | }}<!-- | ||
-->{{ | -->{{Event/upcoming}}<!-- | ||
-->[[Category:Events]] | -->[[Category:Events]]<!-- | ||
{{#if:{{{ | -->{{#if:{{#show:{{PAGENAME}}|?Has event type#}}| | ||
{{#arraymap:{{{ | {{#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|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=-}} | |||
}}<!-- | }}<!-- | ||
-->{{#set: | -->{{#set: | ||
Has event type = {{{event_type|}}} | Has event type = {{{event_type|}}} | ||
| Has status = {{{status|}}} | | Has status = {{{status|}}} | ||
| Has short name = {{{short_name|}}} | |||
| Has frequency = {{{frequency|}}} | | Has frequency = {{{frequency|}}} | ||
| In city = {{{city|}}} | |||
| In state/province = {{{state_province|}}} | |||
| 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 | <!-- DEPRECATED FIELDS BELOW (NOW HELD IN SUBOBJECTS) --> | ||
| At coordinates = {{{coordinates|}}} | |||
| Has application URL = {{{application_link|}}} | |||
| Has application deadline = {{{application_deadline|}}} | | Has application deadline = {{{application_deadline|}}} | ||
| Has end date = {{{end_date|}}} | | Has end date = {{{end_date|}}} | ||
| Has start date = {{{start_date|}}} | | Has start date = {{{start_date|}}} | ||
}}<!-- | }}{{{instances|}}}<!-- | ||
--></includeonly> | --></includeonly> |
Latest revision as of 11:16, 20 January 2025
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).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Event type | event_type | Type of event.
| String | required |
Status | status | The status of the event.
| String | suggested |
Short name/acronym | short_name | A shortened version of the event name (used to generate event names for recurring events, e.g. SABF 2024, SABF 2025). | String | suggested |
Frequency | frequency | How frequently the event occurs.
| String | optional |
Websites | websites | A list of links for the event. | URL | optional |
Poster/image | poster | A key image or poster for the event. | File | optional |
Instances | instances | 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. | Content | optional |