Template:Calendar entry: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== TemplateData == | == TemplateData == | ||
<templatedata> | <templatedata> | ||
Line 9: | Line 9: | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Art | "Art book fair", | ||
"Comics | "Comics expo", | ||
"Conference", | "Conference", | ||
"Exhibition", | "Exhibition", | ||
"Meetup", | "Meetup", | ||
"Zine | "Zine fest" | ||
], | ], | ||
"required": true | "required": true | ||
}, | }, | ||
" | "city": { | ||
"label": " | "label": "City", | ||
"description": "The | "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 | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"description": "Unique name of the event.", | |||
"type": "string" | |||
}, | |||
"website": { | |||
"label": "Website", | |||
"description": "A link for the event.", | |||
"type": "url" | |||
}, | |||
"start_date": { | |||
"label": "Start date", | |||
"description": "Start date of the instance.", | |||
"type": "date", | |||
"required": true | |||
}, | |||
"end_date": { | |||
"label": "End date", | |||
"description": "End date of the instance (can be left blank for one-day events).", | |||
"type": "date" | |||
}, | |||
"coordinates": { | |||
"label": "Coordinates", | |||
"description": "The latitude and longitude coordinates of the space (optional, to support map display).", | |||
"example": "47.621937, -122.351746", | |||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "application_link": { | ||
"label": " | "label": "Application link", | ||
"description": "A | "description": "A link to the application form/process for the event.", | ||
"type": " | "type": "url" | ||
}, | |||
"application_deadline": { | |||
"label": "Application deadline", | |||
"description": "The deadline for application submissions.", | |||
"type": "date" | |||
}, | }, | ||
" | "venue": { | ||
"label": " | "label": "Venue", | ||
"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" | |||
}, | }, | ||
" | "access_type": { | ||
"label": " | "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": " | "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" | |||
} | } | ||
}, | }, | ||
"description": "The main template for the \" | "description": "The main template for the \"Calendar entry\" semantic #subobject declaration (holding scheduling data for fairs, conferences, meetups, etc.). This is a simplified test to replace the instance used with the \"Event\" class which only handles data that is imported from the old wiki.", | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"event_type", | "event_type", | ||
" | "name", | ||
" | "start_date", | ||
"end_date", | |||
"website", | |||
"access_type", | |||
"venue", | |||
"location", | |||
"city", | "city", | ||
"state_province", | "state_province", | ||
"country" | "country", | ||
"coordinates", | |||
"application_link", | |||
"application_deadline" | |||
] | ] | ||
} | } | ||
Line 58: | Line 115: | ||
</noinclude><!-- | </noinclude><!-- | ||
--><includeonly><!-- | --><includeonly><!-- | ||
-->{{ | -->{{#subobject:|@category=Calendar entries | ||
| | | Has parent = {{PAGENAME}} | ||
| | | Has name = {{{name|}}} | ||
| | | Has event type = {{{event_type|}}} | ||
| | | Has URL = {{{website|}}} | ||
| | | Has access type = {{{access_type|}}} | ||
| | | At venue = {{{venue|}}} | ||
| At location = {{{location|}}} | |||
| Has start date = {{{start_date|}}} | |||
| Has end date = {{{end_date|{{{start_date|}}}}}} | |||
| At coordinates = {{{coordinates|}}} | |||
} | |||
} | |||
| | |||
| In city = {{{city|}}} | | In city = {{{city|}}} | ||
| In state/province = {{{state_province|}}} | | In state/province = {{{state_province|}}} | ||
| In country = {{{country|}}} | | In country = {{{country|}}} | ||
| In region = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}} | | In region = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}} | ||
}}{{{ | | Has application URL = {{{application_link|}}} | ||
| Has application deadline = {{{application_deadline|}}} | |||
}}<nowiki/></includeonly> |
Latest revision as of 13:36, 3 September 2025
TemplateData
The main template for the "Calendar entry" semantic #subobject declaration (holding scheduling data for fairs, conferences, meetups, etc.). This is a simplified test to replace the instance used with the "Event" class which only handles data that is imported from the old wiki.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Event type | event_type | Type of event.
| String | required |
Name | name | Unique name of the event. | 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 |