Template:Event/instance: Difference between revisions

From stencil.wiki
(Created page with "<noinclude>{{Class subtemplate}} 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 == <templatedata> { "description": "Support function for...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
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"
},
"access_type": {
"label": "Access type",
"description": "How the event is/was attended (in-person, online, or both).",
"type": "string",
"suggestedvalues": [
"In-person",
"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
}
}
}
},
"paramOrder": [
"name",
"start_date",
"end_date",
"website",
"access_type",
"venue",
"location",
"city",
"state_province",
"country",
"coordinates",
"application_link",
"application_deadline"
]
}
}
</templatedata>!
</templatedata>
</noinclude><!--
</noinclude><!--
--><includeonly><!--
--><includeonly><!--
-->{{#subobject:{{{name|{{{start_date|}}}}}}|@category=Instances
-->{{#subobject:{{{name|{{{start_date|}}}}}}|@category=Instances
| Has name                = {{{name|}}}
| Has name                = {{{name|}}}
| Has parent event        = {{PAGENAME}}
| Has event type          = {{{event_type|}}}
| Has start date          = {{{start_date|}}}
| Has start date          = {{{start_date|}}}
| Has end date            = {{{end_date|}}}
| Has end date            = {{{end_date|{{{start_date|}}}}}}
| Has URL                  = {{{website|}}}
| 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 deadline = {{{application_deadline|}}}
}}<!--
}}<!--
--></includeonly>
--></includeonly>

Latest revision as of 12:25, 20 January 2025

Warning: Class subtemplate
This is a support template for the main class template Template:Event—it should not invoked in other circumstances.

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

Unique name of the instance (if different from the event page name).

Stringoptional
Start datestart_date

Start date of the instance.

Daterequired
End dateend_date

End date of the instance (can be left blank for one-day events).

Dateoptional
Websitewebsite

A link for the event.

URLoptional
Access typeaccess_type

How the event is/was attended (in-person, online, or both).

Suggested values
In-person Remote
Stringsuggested
Venuevenue

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 nameoptional
Locationlocation

The address of the event (or main address if there are multiple). This can be a full street address or broader region.

Stringoptional
Citycity

The city of the event (used for sorting, not address display).

Stringoptional
State/provincestate_province

The state/province of the event (used for sorting, not address display).

Page nameoptional
Countrycountry

The country of the event (used for sorting, not address display).

Page namerequired
Coordinatescoordinates

The latitude and longitude coordinates of the space (optional, to support map display).

Example
47.621937, -122.351746
Stringsuggested
Application linkapplication_link

A link to the application form/process for the event.

URLoptional
Application deadlineapplication_deadline

The deadline for application submissions.

Dateoptional