Template:Infobox event
| Lua error in Module:Infobox_mapframe at line 198: attempt to index field 'wikibase' (a nil value). |
| This template is used on approximately 6,900 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
{{Infobox event}} should be used to specify one-off events, usually at the top of an article. For recurring events, use {{Infobox recurring event}}. For other type of events, check: Wikipedia:List of infoboxes
Usage
| Part of {{{part_of}}} | |
| [[File:{{{logo}}}|{{{logo_size}}}|alt={{{logo_alt}}}|upright={{{logo_upright}}}|{{{logo_alt}}}]] {{{logo_caption}}} | |
| [[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|upright={{{image_upright}}}|{{{image_alt}}}]] {{{image_caption}}} | |
| [[File:{{{map}}}|250px]] | |
| Lua error in Module:Location_map at line 560: Unable to find the specified location map definition: "Module:Location map/data/Earth" does not exist. | |
| Native name | {{{native_name}}} |
|---|---|
| English name | {{{english_name}}} |
| Date | {{{date}}} |
| Time | {{{time}}} ({{{timezone}}}) |
| Duration | {{{duration}}} |
| Venue | {{{venue}}} |
| Location |
|
| Also known as | {{{also_known_as}}} |
| Type | {{{type}}} |
| Theme | {{{theme}}} |
| Cause | {{{cause}}} |
| Motive | {{{motive}}} |
| Target | {{{target}}} |
| Perpetrator | {{{perpetrator}}} |
| First reporter | {{{first_reporter}}} |
| Budget | {{{budget}}} |
| Patron | {{{patrons}}} |
| Organised by | {{{organisers}}} |
| Filmed by | {{{filmed_by}}} |
| Participants | {{{participants}}} |
| Outcome | {{{outcome}}} |
| Casualties | {{{casualties}}} |
| Deaths | {{{deaths}}} |
| Injuries | {{{injuries}}} |
| Missing | {{{missing}}} |
Property damage | {{{property_damage}}} |
| Burial | {{{burial}}} |
| Displaced | {{{displaced}}} |
| Inquiries | {{{inquiries}}} |
| Inquest | {{{inquest}}} |
| Coroner | {{{coroner}}} |
| Arrests | {{{arrests}}} |
| Suspects | {{{suspects}}} |
| Accused | {{{accused}}} |
| Convicted | {{{convicted}}} |
| Charges | {{{charges}}} |
| Trial | {{{trial}}} |
| Verdict | {{{verdict}}} |
| Convictions | {{{convictions}}} |
| Sentence | {{{sentence}}} |
| Publication bans | {{{publication_bans}}} |
| Litigation | {{{litigation}}} |
| Awards | {{{awards}}} |
| Footage | {{{footage}}} |
| {{{custom_label}}} | {{{custom_data}}} |
| {{{custom_label1}}} | {{{custom_data1}}} |
| {{{custom_label2}}} | {{{custom_data2}}} |
| Website | {{{website}}} |
| {{{notes}}} | |
{{Infobox event
| name = <!-- Title to display, if other than page name -->
| image =
| image_upright =
| image_alt =
| image_caption =
| native_name =
| native_name_lang =
| english_name =
| map =
| pushpin_map = <!-- See {{Location map}} for more information -->
| pushpin_label =
| pushpin_caption =
| mapframe = <!-- See [[#Mapframe maps]] for more information -->
| time =
| timezone =
| duration = <!-- {{duration|h=x|m=x|s=x}} or {{time interval|date1|date2|options}} -->
| date = <!-- {{start date|YYYY|MM|DD}} or {{start and end dates|YYYY|MM|DD|YYYY|MM|DD}} -->
| venue =
| location =
| coordinates = <!-- {{coord|LAT|LON|region:XXXX_type:event|display=inline,title}} -->
| also_known_as =
| type =
| theme =
| cause =
| motive =
| target =
| perpetrator =
| first_reporter =
| budget =
| patrons =
| organisers = <!-- or |organizers= -->
| filmed_by =
| participants =
| outcome =
| casualties =
| deaths =
| injuries =
| missing =
| property_damage =
| burial =
| displaced =
| inquiries =
| inquest =
| coroner =
| arrests =
| suspects =
| accused =
| convicted =
| charges =
| trial =
| verdict =
| convictions =
| sentence =
| publication_bans =
| litigation =
| awards =
| website = <!-- {{URL|example.com}} -->
| notes =
}}Mapframe maps
- Basic {{Infobox mapframe}} parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no, but also modified by onByDefault
- Internal onByDefault parameter: yes, unless any of these are set:
|map=,|pushpin_map=
- Internal onByDefault parameter: yes, unless any of these are set:
- mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g.
|coord=. Default: coordinates from Wikidata d:Property:P625{{Coord|12.34|N|56.78|E}} - mapframe-caption – Caption for the map. Default: blank (or if
|mapframe-geomask=is set, "Location in geomask's label") - mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a
{{maplink}}template, or another template that generates a mapframe map, or an image name. If used, most mapframe parameters will be ignored. Default: not specified - mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
- mapframe-wikidata – Set to
yesto show all shape/line features from OpenStreetMap. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no, but also modified by onByDefault
- Customise which features are displayed:
- mapframe-point – Turn off display of point feature by setting to
none. Force point marker to be displayed by setting toon. Default: not specified - mapframe-shape – Turn off display of shape feature by setting to
none. Force display of shape by setting toon. Use an inverse shape (geomask) instead of a regular shape by setting toinverse. Default: not specified - mapframe-line – Turn off display of line feature by setting to
none. Force display of line by setting toon. Default: not specified - mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g.
P17for Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P17),P131for Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P131)). Default: not specified - mapframe-switcher – set to
autoorgeomasksorzoomsto enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto– switch geomasks found in Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P276) and Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.geomasks– switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms– switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3), "zoomed out" is1, and "zoomed midway" is the average
- mapframe-point – Turn off display of point feature by setting to
- Other optional parameters:
- mapframe-frame-width or mapframe-width – Frame width. Default: 270
- mapframe-frame-height or mapframe-height – Frame height. Default: 200
- mapframe-shape-fill – Color used to fill shape features. Default: #606060
- mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.1
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-line-stroke-color or mapframe-line-stroke-colour – Color of line features. Default: #ff0000
- mapframe-shape-stroke-color or mapframe-shape-stroke-colour – Color of outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features. Default: 2
- mapframe-shape-stroke-width – Width of outlines of shape features. Default: 2
- mapframe-line-stroke-width – Width of line features. Default: 5
- mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: not specified (i.e. blank)
- Can also be set to
blankto override any default marker symbol
- Can also be set to
- mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
- mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
- mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 1
- mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
- mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.25
- mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
- mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified / not specified / not specified / not specified
- mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
- mapframe-type – Set the type of the object, with the same usage as {{coord}}. Default: not specified
- mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified
Pushpin map
Below are the parameters used by Module:Location map to produce the pushpin map in this Infobox. These parameters are available for editors to set in articles that use this infobox.
| Parameter | Description | Default |
|---|---|---|
|pushpin_map=
|
The map(s) to display. For example, specifying England will use the values for England in Module:Location map/data/England.Multiple maps can be shown by providing a list of map names separated by #. For multiple maps, the first is shown by default. A reader can select the others with radio buttons.
|
N/A |
|pushpin_caption=
|
The text of a caption to be displayed below the map. If not provided a default caption will be generated. Multiple captions can be shown when separated by ## (that's two).
|
Location within MAPNAME |
|pushpin_relief=
|
Any non-blank value (1, yes, etc.) will cause the template to display the map specified in the map definition template as image1, which is usually a relief map; see the example at Location map+/relief. Other numerical values such as 2 or 3 will display image2 or image3, if those images are defined.
|
N/A |
|pushpin_label=
|
The text of the label to display next to the identifying mark; a wikilink can be used. You can enclose the label inside of {{nowrap}} if you want to make sure that it stays on a single line. | N/A |
|pushpin_label_size=
|
The font size to use for the label, given as a percentage of the normal font size (<100=smaller, >100=larger); the default size is 90. Do not include %. For example, use |pushpin_label_size=80, not |pushpin_label_size=80%. If set to 0, the label is only displayed when the user hovers over the mark.
|
90 |
|pushpin_label_position=
|
The position of the label relative to the identifying mark; valid values are left, right, top, bottom and none. This defaults to either left or right, depending on the coordinates of the marker and its position relative to the right border of the map image. When |pushpin_label_position=none, any defined label will not be displayed with the mark, but it will be used to create the default caption.
|
N/A |
|pushpin_mark=
|
The name of an image file to display as the identifying mark; the default is File:Blue_pog.svg File:Blue pog.svg. See examples at Commons:Location markers and Commons:Category:Map icons. | File:Blue_pog.svg File:Blue pog.svg |
|pushpin_mark_size=
|
The size of the identifying mark in pixels. Do not include px | 9 |
|pushpin_alt=
|
Alt text for map; used by screen readers. See WP:ALT. | N/A |
|pushpin_background=
|
The background color to use for the label; see Web colors. The default is no background color, which shows the map image behind the label. | N/A |
|pushpin_map_size=
|
Determines the width of the map in pixels, overriding any default values; do not include px. | N/A |
Parameters
TemplateData for Infobox event
{{Infobox event}} should be used to specify one-off events, usually at the top of an article. For recurring events, use {{Infobox recurring event}}. For other type of events, check: [[Wikipedia:List of infoboxes]]
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the event, if omitted, the page name will be used | Line | optional |
| Part of | part_of | no description | Unknown | optional |
| Logo | logo | Logo filename | File | optional |
| Logo size | logo_size | no description | Unknown | optional |
| Logo upright (scale factor) | logo_upright | no description | Unknown | optional |
| Logo alt text | logo_alt | A description of the logo intended for the blind; say what you see. No formatting.
| String | optional |
| Logo caption | logo_caption | Caption to display under the logo. | Line | optional |
| Image | image | Name of the image of the event | File | suggested |
| Image size | image_size | Image size in pixels | Unknown | deprecated |
| Image upright (scale factor) | image_upright | Image scaling factor; defaults to 1 if left empty – see [[WP:IMGSIZE]] | Unknown | optional |
| Image alt text | image_alt | A description of the logo intended for the blind; say what you see. No formatting. | String | optional |
| Image caption | caption | Optional caption of the image | Line | optional |
| Thumbnail time | thumbtime | If the image parameter is a video, this timestamp is the section of the video that will be used as a thumbnail. | Unknown | optional |
| Native name | native_name | The native name of the event, if different | Unknown | optional |
| English_name | English_name | no description | Unknown | optional |
| nongregorian | nongregorian | no description | Unknown | optional |
| map | map | no description | Unknown | optional |
| map_size | map_size | no description | Unknown | optional |
| map_alt | map_alt | no description | Unknown | optional |
| map_caption | map_caption | no description | Unknown | optional |
| pushpin_map | pushpin_map | no description | Unknown | optional |
| pushpin_caption | pushpin_caption | no description | Unknown | optional |
| Show mapframe map | mapframe | Specify yes or no to show or hide the map, overriding the default
| String | suggested |
| Mapframe caption | mapframe-caption | Caption for the map. If mapframe-geomask is set, then the default is "Location in <<geomask's label>>" | String | optional |
| Custom mapframe | mapframe-custom | Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, other mapframe parameters will be ignored. | Template | optional |
| Mapframe Wikidata item | mapframe-id id qid | Id (Q-number) of Wikidata item to use.
| String | optional |
| Mapframe coordinates | mapframe-coordinates mapframe-coord coordinates coord | Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.
| Template | optional |
| Mapframe shapes from Wikidata | mapframe-wikidata | et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter
| String | optional |
| Mapframe point feature | mapframe-point | Override display of mapframe point feature. Turn off display of point feature by setting to "none". Force point marker to be displayed by setting to "on" | String | optional |
| Mapframe shape feature | mapframe-shape | Override display of mapframe shape feature. Turn off by setting to "none". Use an inverse shape (geomask) instead of a regular shape by setting to "inverse" | String | optional |
| Mapframe width | mapframe-frame-width mapframe-width | Frame width in pixels
| Number | optional |
| Mapframe height | mapframe-frame-height mapframe-height | Frame height in pixels
| Number | optional |
| Mapframe shape fill | mapframe-shape-fill | Color used to fill shape features
| String | optional |
| Mapframe shape fill opacity | mapframe-shape-fill-opacity | Opacity level of shape fill, a number between 0 and 1
| Number | optional |
| Mapframe stroke color | mapframe-stroke-color mapframe-stroke-colour | Color of line features, and outlines of shape features
| String | optional |
| Mapframe stroke width | mapframe-stroke-width | Width of line features, and outlines of shape features
| Number | optional |
| Mapframe marker | mapframe-marker | Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options
| String | optional |
| Mapframe marker color | mapframe-marker-color mapframe-marker-colour | Background color for the marker
| String | optional |
| Mapframe geomask | mapframe-geomask | Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country, or P131 for located in the administrative territorial entity)
| Page name | optional |
| Mapframe geomask stroke color | mapframe-geomask-stroke-color mapframe-geomask-stroke-colour | Color of outline of geomask shape
| String | optional |
| Mapframe geomask stroke width | mapframe-geomask-stroke-width | Width of outline of geomask shape
| Number | optional |
| Mapframe geomask fill | mapframe-geomask-fill | Color used to fill outside geomask features
| String | optional |
| Mapframe geomask fill opacity | mapframe-geomask-fill-opacity | Opacity level of fill outside geomask features, a number between 0 and 1
| Number | optional |
| Mapframe zoom | mapframe-zoom | Set the zoom level, from "1" to "18", to used if the zoom level cannot be determined automatically from object length or area
| Number | optional |
| Mapframe length (km) | mapframe-length_km | Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area | Number | optional |
| Mapframe length (mi) | mapframe-length_mi | Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area | Number | optional |
| Mapframe area (km^2) | mapframe-area_km2 | Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area | Number | optional |
| Mapframe area (mi^2) | mapframe-area_mi2 | Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area | Number | optional |
| Mapframe frame coordinates | mapframe-frame-coordinates mapframe-frame-coord | Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}
| Template | optional |
| Mapframe switcher | mapframe-switcher | Set to "auto" or "geomasks" or "zooms" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter. IF SET TO zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average. | String | optional |
| mapframe-line | mapframe-line | no description | Unknown | optional |
| Mapframe type | mapframe-type | Type of the object rendered in the mapframe, like with {{coord}}. | String | optional |
| Language of native name | native_name_lang | ISO 639-2 code for the native name e.g. 'fr' for French | String | optional |
| date | date | {{start date|YYYY|MM|DD}} for the date of a single-day event or {{start and end dates|YYYY|MM|DD|YYYY|MM|DD}} for multi-day events | Unknown | optional |
| Time of the event | time | Time that the event occurred, in the relevant timezone. Use the Timezone parameter to display the timezone. | Unknown | optional |
| Timezone | timezone | If Time is specified, the timezone of the event. Brackets/parentheses will be added automatically.
| String | optional |
| Duration of the event | duration | no description | Unknown | optional |
| Venue | venue | name of the particular venue (alternative to location) | Unknown | optional |
| Location | location | The location of the event | Line | optional |
| Coordinates | coordinates | Use {{Coord}}, with display=inline,title
| Unknown | optional |
| Also known as | also_known_as | no description | Line | optional |
| type | type | no description | Unknown | optional |
| theme | theme | no description | Unknown | optional |
| cause | cause | no description | Unknown | optional |
| motive | motive | no description | Unknown | optional |
| Target of the event | Target | no description | String | optional |
| Perpetrator | perpetrator | The perpetrator of the event, if it was a crime | Line | optional |
| Reporter | reporter first_reporter | First or key reporter(s) | Line | optional |
| Budget | budget | The larger of budgeted income or expense | Line | optional |
| Patrons | patrons | no description | Line | optional |
| Organizers | organizers organisers | no description | Unknown | optional |
| filmed by | filmed by | no description | Unknown | optional |
| Participants | participants | The typical number of participants | Line | optional |
| Outcome | outcome | no description | Line | optional |
| First group of or total casualties | casualties1 | Use to indicate the first casualties of an event, or for the total casualties if there is only one group of casualties. Include a short explanation of that group if it is the first casualties.
| Unknown | optional |
| Second group of casualties | casualties2 | Use to indicate the second group of casualties of an event. Include a short explanation of the group.
| String | optional |
| Third group of casualties | casualties3 | Use to indicate the third group of casualties of an event. Include a short explanation of the group.
| String | optional |
| Deaths | deaths | no description | Unknown | optional |
| Injuries | injuries | no description | Line | optional |
| Missing | missing | The number of people missing | String | optional |
| Property damage | property_damage | no description | Line | optional |
| burial | burial | no description | Unknown | optional |
| Displaced | displaced | People forced to leave home | Line | optional |
| inquiries | inquiries | no description | Unknown | optional |
| inquest | inquest | no description | Unknown | optional |
| coroner | coroner | no description | Unknown | optional |
| arrests | arrests | no description | Unknown | optional |
| suspects | suspects | no description | Unknown | optional |
| accused | accused | no description | Unknown | optional |
| convicted | convicted | no description | Unknown | optional |
| charges | charges | no description | Unknown | optional |
| trial | trial | no description | Unknown | optional |
| verdict | verdict | no description | Unknown | optional |
| convictions | convictions | no description | Unknown | optional |
| sentence | sentence | no description | Unknown | optional |
| Publication bans | publication_bans | no description | Line | optional |
| litigation | litigation | no description | Unknown | optional |
| awards | awards | no description | Unknown | optional |
| Footage of the event | footage | The name and/or url of footage of the event. | Unknown | optional |
| First blank label | blank_label | Use with First blank data parameter | Unknown | optional |
| First blank data | blank_data | Use with First blank label parameter | Unknown | optional |
| Second blank label | blank1_label | Use with Second blank data parameter | Unknown | optional |
| Second blank data | blank1_data | Use with Second blank label parameter | Unknown | optional |
| Third blank label | blank2_label | Use with Third blank data parameter | Unknown | optional |
| Third blank data | blank2_data | Use with Third blank label parameter | Unknown | optional |
| Website | website | Use {{URL}}
| Unknown | optional |
| Child infobox | child | Set to "yes" if you are embedding this infobox in another one | String | optional |
| Module | module | For embedding another infobox as a child
| String | optional |
| Notes | notes | Free-form notes for the bottom of the infobox | Content | optional |
Example
| File:Bombay-Docks-aftermath1.png Smoke billowing out of the harbour | |
| Lua error in Module:Infobox_mapframe at line 198: attempt to index field 'wikibase' (a nil value). | |
| Date | 14 April 1944 |
|---|---|
| Time | 16:15 IST (10:45 UTC) |
| Location |
|
| Cause | ship fire |
| Deaths | 800+ |
| Injuries | 3,000 |
| Footage | example |
| Website | example |
{{Infobox event
| name = Bombay explosion
| image = Bombay-Docks-aftermath1.png
| image_caption = Smoke billowing out of the harbour
| date = 14 April 1944
| time = 16:15 IST (10:45 UTC)
| location = Victoria Dock, Bombay, [[British Raj|British India]]
| coordinates = {{coord|18|57|10|N|72|50|42|E|type:event_region:IN|display=inline,title}}
| cause = ship fire
| footage = {{URL|example.com}}
| deaths = 800+
| injuries = 3,000
| website = {{URL|example.com}}
}}Microformat
- Classes used
The HTML classes of this microformat include:
- attendee
- contact
- description
- dtend
- dtstart
- location
- organiser
- summary
- url
- vevent
nor collapse nested elements which use them.
Tracking categories
Template:Infobox tracking categories
See also
- Pages with script errors
- Pages with syntax highlighting errors
- Pages using gadget WikiMiniAtlas
- Lua-based templates
- Pages with broken file links
- Templates using TemplateData
- Templates generating hCalendars
- Events infobox templates
- Infobox templates with module parameter
- Templates with coordinates fields
- Embeddable templates
- Templates that add a tracking category