Template:Simple event: Difference between revisions

From stencil.wiki
(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",...")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Class template|class=Event|category=Events}}
<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><!--
-->{{Infobox simple event
| title                = {{PAGENAME}}
| event_type          = {{{event_type|}}}
| status              = {{{status|}}}
| city                = {{{city|}}}
| state_province      = {{{state_province|}}}
| country              = {{{country|}}}
}}<!--
-->{{Simple event/upcoming}}<!--
-->[[Category:Simple events]]<!--
-->{{#if:{{#show:{{PAGENAME}}|?Has event type#}}|
  {{#arraymap:{{#show:{{PAGENAME}}|?Has event type#}}|,|@@@@|
    <!-- General Place Type -->
    [[Category:{{#switch:{{lc:@@@@}}
      | art book fair = Art book fairs
      | class = Classes
      | exhibition = Exhibitions
      | zine fest = Zine fests
      | meetup = Meetups
      | comics expo = Comics expos
      | conference = Conferences
    }}]]
  |}}
}}<!--
-->{{#invoke:Geography|geoCategories
  | class = event
  | country = {{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:Instances]]|?In country#|format=plainlist|headers=hide|mainlabel=-}}
  | state_province = {{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:Instances]]|?In state/province#|format=plainlist|headers=hide|mainlabel=-}}
  | city = {{#ask:[[-Has subobject::{{PAGENAME}}]][[Category:Instances]]|?In city#|format=plainlist|headers=hide|mainlabel=-}}
}}<!--
-->{{#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}}}}}|}}
}}{{{instances|}}}<!--
}}</includeonly>
--></includeonly>

Latest revision as of 16:12, 13 August 2025

Warning: Class template
This is the main template for the Simple event class—it should primarily be used with Form:Simple event to create or edit associated pages, and not invoked in other circumstances. Most of the content can be edited with the VisualEditor, but for best functionality please use the specified form.

Pages which use this template are listed at Category:Simple events.

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Event typeevent_type

Type of event.

Suggested values
Art Book Fair Comics Expo Conference Exhibition Meetup Zine Fest
Stringrequired
Statusstatus

The status of the event.

Suggested values
Active Inactive Paused
Stringsuggested
Instancesinstances

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.

Contentoptional
Citycity

no description

Unknownoptional
State/provincestate_province

no description

Unknownoptional
Countrycountry

no description

Unknownoptional