Pages which use this template are listed at Category:Event2s.
Template:Event: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
Line 75: | Line 75: | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"required": true | "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 88: | Line 93: | ||
"city", | "city", | ||
"state_province", | "state_province", | ||
"country" | "country", | ||
"flag" | |||
] | ] | ||
} | } | ||
Line 97: | Line 103: | ||
| title = {{PAGENAME}} | | title = {{PAGENAME}} | ||
| short_name = {{{short_name|}}} | | short_name = {{{short_name|}}} | ||
| event_type = {{{event_type|}}} | | event_type = {{{event_type|}}} | ||
| status = {{{status|}}} | | status = {{{status|}}} | ||
| recurring = {{{recurring|}}} | | recurring = {{{recurring|}}} | ||
Line 128: | Line 134: | ||
}}<!-- | }}<!-- | ||
-->{{#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|}}} | ||
Line 137: | Line 143: | ||
| In country = {{{country|}}} | | In country = {{{country|}}} | ||
| In region = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}} | | In region = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}} | ||
| Has flag = {{{flag|}}}|+sep=, | |||
}}</includeonly> | }}</includeonly> |
Revision as of 15:31, 31 August 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 event2).
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 |