Pages which use this template are listed at Category:Events.
Template:Event: Difference between revisions
Robertbaxter (talk | contribs) (Created page with "<noinclude>{{Class template|class=Event2|category=Event2s}} == TemplateData == <templatedata> { "params": { "event_type": { "label": "Event type", "description": "Type of event.", "type": "string", "suggestedvalues": [ "Art Book Fair", "Comics Expo", "Conference", "Exhibition", "Meetup", "Zine Fest" ], "required": true }, "websites": { "label": "Websites", "description": "A list of links for the event.", "type": "...") |
Robertbaxter (talk | contribs) m (Robertbaxter moved page Template:Event2 to Template:Event without leaving a redirect) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Class template|class= | <noinclude>{{Class template|class=Event|category=Events}} | ||
== TemplateData == | == TemplateData == | ||
<templatedata> | <templatedata> | ||
Line 6: | Line 6: | ||
"event_type": { | "event_type": { | ||
"label": "Event type", | "label": "Event type", | ||
"description": "Type of event | "description": "Type of event (comma separated list)", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
Line 18: | Line 18: | ||
"required": true | "required": true | ||
}, | }, | ||
" | "website": { | ||
"label": " | "label": "Website", | ||
"description": " | "description": "An external link for the event.", | ||
"type": "url" | "type": "url" | ||
}, | }, | ||
"status": { | "status": { | ||
Line 44: | Line 39: | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | |||
"frequency": { | |||
"label": "Frequency", | |||
"description": "How frequently the event occurs.", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Once", | |||
"Annually", | |||
"Biennially", | |||
"Semiannually", | |||
"Monthly", | |||
"Weekly", | |||
"Abstract" | |||
] | |||
}, | |||
"recurring": { | |||
"label": "Recurring", | |||
"description": "Whether or not this is a recurring event, or a one-off one.", | |||
"type": "boolean", | |||
"required": true | |||
}, | |||
"city": { | |||
"label": "City", | |||
"description": "The city of the event (used for sorting, not address display).", | |||
"type": "string" | |||
}, | |||
"state_province": { | |||
"label": "State/province", | |||
"description": "The state/province of the event (used for sorting, not address display).", | |||
"type": "wiki-page-name" | |||
}, | |||
"country": { | |||
"label": "Country", | |||
"description": "The country of the event (used for sorting, not address display).", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"flag": { | |||
"label": "Flag", | |||
"description": "One or more flags from the import/parsing process—used to display specific mboxes on events of imported status (comma separated list).", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 52: | Line 88: | ||
"status", | "status", | ||
"short_name", | "short_name", | ||
" | "website", | ||
" | "recurring", | ||
"frequency", | |||
"city", | |||
"state_province", | |||
"country", | |||
"flag" | |||
] | ] | ||
} | } | ||
Line 59: | Line 100: | ||
</noinclude><!-- | </noinclude><!-- | ||
--><includeonly><!-- | --><includeonly><!-- | ||
-->{{Infobox | -->{{#switch:{{{status|}}} | ||
| Imported={{Imported event}} | |||
}}<!-- | |||
-->{{Infobox event | |||
| title = {{PAGENAME}} | | title = {{PAGENAME}} | ||
| short_name = {{{short_name|}}} | |||
| event_type = {{{event_type|}}} | | event_type = {{{event_type|}}} | ||
| status = {{{status|}}} | | status = {{{status|}}} | ||
| recurring = {{{recurring|}}} | |||
| frequency = {{{frequency|}}} | | frequency = {{{frequency|}}} | ||
| website = {{{website|}}} | | website = {{{website|}}} | ||
| city = {{{city|}}} | | city = {{{city|}}} | ||
| state_province = {{{state_province|}}} | | state_province = {{{state_province|}}} | ||
| country = {{{country|}}} | | country = {{{country|}}} | ||
}} | }}<!-- | ||
-->[[Category: | -->[[Category:Events]]<!-- | ||
-->{{#if:{{#show:{{PAGENAME}}|?Has event type#}}| | -->{{#if:{{#show:{{PAGENAME}}|?Has event type#}}| | ||
{{#arraymap:{{#show:{{PAGENAME}}|?Has event type#}}|,|@@@@| | {{#arraymap:{{#show:{{PAGENAME}}|?Has event type#}}|,|@@@@| | ||
<!-- General | <!-- General Event Type --> | ||
{{#switch:{{lc:@@@@}} | |||
| art book fair = Art book fairs | | art book fair = [[Category:Art book fairs]] | ||
| class = Classes | | class = [[Category:Classes]] | ||
| exhibition = Exhibitions | | exhibition = [[Category:Exhibitions]] | ||
| zine fest = Zine fests | | zine fest = [[Category:Zine fests]] | ||
| meetup = Meetups | | meetup = [[Category:Meetups]] | ||
| comics expo = Comics expos | | comics expo = [[Category:Comics expos]] | ||
| conference = Conferences | | conference = [[Category:Conferences]] | ||
}} | | unknown = [[Category:Events of unknown type]] | ||
}} | |||
|}} | |}} | ||
}}<!-- | }}<!-- | ||
Line 92: | Line 138: | ||
}}<!-- | }}<!-- | ||
-->{{#set: | -->{{#set: | ||
Has event type = {{{event_type|}}} | Has event type = {{{event_type|}}}|+sep=, | ||
| Has status = {{{status|}}} | | Has status = {{{status|}}} | ||
| Has short name = {{{short_name|}}} | | Has short name = {{{short_name|}}} | ||
| Is recurring = {{{recurring|}}} | |||
| Has frequency = {{{frequency|}}} | |||
| Has URL = {{{website|}}} | |||
| 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 flag = {{{flag|}}}|+sep=, | |||
}}<nowiki/></includeonly> |
Latest revision as of 00:00, 7 September 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 (comma separated list)
| 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 |
Website | website | An external link for the event. | URL | optional |
Recurring | recurring | Whether or not this is a recurring event, or a one-off one. | Boolean | required |
Frequency | frequency | How frequently the event occurs.
| String | optional |
City | city | The city of the event (used for sorting, not address display). | String | optional |
State/province | state_province | The state/province of the event (used for sorting, not address display). | Page name | optional |
Country | country | The country of the event (used for sorting, not address display). | Page name | required |
Flag | flag | One or more flags from the import/parsing process—used to display specific mboxes on events of imported status (comma separated list). | String | optional |