Pages which use this template are listed at Category:Simple events.
Template:Simple event: Difference between revisions
Robertbaxter (talk | contribs) (Created page with "<noinclude>{{Class template|class=Event|category=Events}} == TemplateData == <templatedata> { "params": { "event_type": { "label": "Event type", "description": "Type of event.", "type": "string", "suggestedvalues": [ "Art Book Fair", "Comics Expo", "Conference", "Exhibition", "Meetup", "Zine Fest" ], "required": true }, "status": { "label": "Status", "description": "The status of the event.", "type": "string",...") |
Robertbaxter (talk | contribs) No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Class template|class= | <noinclude>{{Class template|class=Simple event|category=Simple events}} | ||
== TemplateData == | == TemplateData == | ||
<templatedata> | <templatedata> | ||
Line 33: | Line 33: | ||
"description": "A list of the instances of the event. These are implemented with Template:Event/instance—please use the page form Form:Simple event to edit them.", | "description": "A list of the instances of the event. These are implemented with Template:Event/instance—please use the page form Form:Simple event to edit them.", | ||
"type": "content" | "type": "content" | ||
}, | |||
"city": { | |||
"label": "City" | |||
}, | |||
"state_province": { | |||
"label": "State/province" | |||
}, | |||
"country": { | |||
"label": "Country" | |||
} | } | ||
}, | }, | ||
"description": "The main template for the \"Simple event\" class (fairs, conferences, meetups, etc.). This template handles semantic annotation and transcludes display templates for the data (mainly Template:Infobox simple event).", | "description": "The main template for the \"Simple event\" class (fairs, conferences, meetups, etc.). This template handles semantic annotation and transcludes display templates for the data (mainly Template:Infobox simple event). This is a simplified test to replace the \"Event\" class which only handles data that is imported from the old wiki.", | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"event_type", | "event_type", | ||
"status", | "status", | ||
"instances" | "instances", | ||
"city", | |||
"state_province", | |||
"country" | |||
] | ] | ||
} | } | ||
Line 46: | Line 58: | ||
</noinclude><!-- | </noinclude><!-- | ||
--><includeonly><!-- | --><includeonly><!-- | ||
-->{{#set: | -->{{#set: | ||
Has event type = {{{event_type|}}} | Has name = {{{name|}}} | ||
| Has event type = {{{event_type|}}} | |||
| Has status = {{{status|}}} | | Has status = {{{status|}}} | ||
| Has URL = {{{website|}}} | |||
| 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}}}}}|}} | ||
}} | }}</includeonly> | ||
Latest revision as of 16:12, 13 August 2025
TemplateData
The main template for the "Simple event" class (fairs, conferences, meetups, etc.). This template handles semantic annotation and transcludes display templates for the data (mainly Template:Infobox simple event). This is a simplified test to replace 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 |
Status | status | The status of the event.
| String | suggested |
Instances | instances | A list of the instances of the event. These are implemented with Template:Event/instance—please use the page form Form:Simple event to edit them. | Content | optional |
City | city | no description | Unknown | optional |
State/province | state_province | no description | Unknown | optional |
Country | country | no description | Unknown | optional |