Template:Event/instance: Difference between revisions
| Robertbaxter (talk | contribs) No edit summary | Robertbaxter (talk | contribs)  No edit summary | ||
| Line 53: | Line 53: | ||
| 				"Remote" | 				"Remote" | ||
| 			], | 			], | ||
| 			" | 			"suggested": true | ||
| 		}, | |||
| 		"location": { | |||
| 			"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" | |||
| 		}, | |||
| 		"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 | |||
| 		}, | |||
| 		"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 | 			"suggested": true | ||
| 		} | 		} | ||
| Line 64: | Line 91: | ||
| 		"access_type", | 		"access_type", | ||
| 		"venue", | 		"venue", | ||
| 		"location", | |||
| 		"city", | |||
| 		"state_province", | |||
| 		"country", | |||
| 		"coordinates", | |||
| 		"application_link", | 		"application_link", | ||
| 		"application_deadline" | 		"application_deadline" | ||
| Line 78: | Line 110: | ||
| | Has access type          = {{{access_type|}}} | | Has access type          = {{{access_type|}}} | ||
| | At venue                 = {{{venue|}}} | | At venue                 = {{{venue|}}} | ||
| | At location              = {{{location|}}} | |||
| | At coordinates           = {{{coordinates|}}} | |||
| | In city                  = {{{city|}}} | |||
| | In state/province        = {{{state_province|}}} | |||
| | In country               = {{{country|}}} | |||
| | In region                = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}} | |||
| | Has application URL      = {{{application_link|}}} | | Has application URL      = {{{application_link|}}} | ||
| | Has application deadline = {{{application_deadline|}}} | | Has application deadline = {{{application_deadline|}}} | ||
| }}<!-- | }}<!-- | ||
| --></includeonly> | --></includeonly> | ||
Revision as of 18:23, 2 January 2025
This is a helper function for Template:Event, it handles the semantic assignment of properties for a single instance of an event. It should not need to be invoked directly—it is the output for the people values in Form:Event.
It generates no direct display, however the values it assigns are displayed with queries through Template:Infobox place/event.
TemplateData
Support function for the "Event" class to make semantic annotations for an instance.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Unique name of the instance (if different from the event page name). | String | optional | 
| Start date | start_date | Start date of the instance. | Date | required | 
| End date | end_date | End date of the instance (can be left blank for one-day events). | Date | optional | 
| Website | website | A link for the event. | URL | optional | 
| Access type | access_type | How the event is/was attended (in-person, online, or both). 
 | String | suggested | 
| Venue | venue | The name of the venue for the instance (can link to a page if there is an associated location, otherwise appears as a red link). | Page name | optional | 
| Location | location | The address of the event (or main address if there are multiple). This can be a full street address or broader region. | 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 | 
| Coordinates | coordinates | The latitude and longitude coordinates of the space (optional, to support map display). 
 | String | suggested | 
| Application link | application_link | A link to the application form/process for the event. | URL | optional | 
| Application deadline | application_deadline | The deadline for application submissions. | Date | optional |