Template:Event/instance: Difference between revisions
| Robertbaxter (talk | contribs) No edit summary | Robertbaxter (talk | contribs)  No edit summary | ||
| Line 24: | Line 24: | ||
| 			"description": "End date of the instance (can be left blank for one-day events).", | 			"description": "End date of the instance (can be left blank for one-day events).", | ||
| 			"type": "date" | 			"type": "date" | ||
| 		}, | |||
| 		"website": { | |||
| 			"label": "Website", | |||
| 			"description": "A link for the event.", | |||
| 			"type": "url" | |||
| 		}, | 		}, | ||
| 		"venue": { | 		"venue": { | ||
| Line 29: | Line 34: | ||
| 			"description": "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).", | 			"description": "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).", | ||
| 			"type": "wiki-page-name" | 			"type": "wiki-page-name" | ||
| 		}, | |||
| 		"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" | |||
| 		} | 		} | ||
| 	} | 	} | ||
| Line 39: | Line 54: | ||
| | Has start date           = {{{start_date|}}} | | Has start date           = {{{start_date|}}} | ||
| | Has end date             = {{{end_date|{{{start_date|}}}}}} | | Has end date             = {{{end_date|{{{start_date|}}}}}} | ||
| | Has URL                  = {{{website|}}} | |||
| | At venue                 = {{{venue|}}} | | At venue                 = {{{venue|}}} | ||
| | Has application URL      = {{{application_link|}}} | |||
| | Has application deadline = {{{application_deadline|}}} | |||
| }}<!-- | }}<!-- | ||
| --></includeonly> | --></includeonly> | ||
Revision as of 04:53, 20 December 2024
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 | 
| 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 | 
| 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 |