Template:Event/instance: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 44: Line 44:
"description": "The deadline for application submissions.",
"description": "The deadline for application submissions.",
"type": "date"
"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"
],
"default": "In-person",
"suggested": true
}
}
}
},
"paramOrder": [
"name",
"start_date",
"end_date",
"website",
"access_type",
"venue",
"application_link",
"application_deadline"
]
}
}
</templatedata>
</templatedata>
Line 55: Line 76:
| Has end date            = {{{end_date|{{{start_date|}}}}}}
| Has end date            = {{{end_date|{{{start_date|}}}}}}
| Has URL                  = {{{website|}}}
| Has URL                  = {{{website|}}}
| Has access type          = {{{access_type|}}}
| At venue                = {{{venue|}}}
| At venue                = {{{venue|}}}
| Has application URL      = {{{application_link|}}}
| Has application URL      = {{{application_link|}}}

Revision as of 18:17, 2 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
Default
In-person
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
Application linkapplication_link

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

URLoptional
Application deadlineapplication_deadline

The deadline for application submissions.

Dateoptional