Usage

edit
{{{title}}}
Part of {{{partof}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright={{{image_upright}}}]]
{{{caption}}}
[[File:{{{map}}}|{{{map_size}}}|alt={{{map_alt}}}]]
{{{map_caption}}}
Native name{{{native_name}}}
Location{{{___location}}}
Coordinates{{{coordinates}}}
Date{{{date}}}
{{{time}}}
{{{time-begin}}} – {{{time-end}}} ({{{timezone}}})
Target{{{target}}}
Attack type
{{{type}}}
Weapon{{{weapon}}}
Deaths{{{fatalities}}}
Injured{{{injuries}}}
Victims{{{victims}}}
Perpetrators{{{perpetrators}}}
No. of participants
{{{numparts}}}
Defenders{{{dfens}}}
Motive{{{motive}}}
Website{{{website}}}
{{{notes}}}
{{Infobox civilian attack
| title         = 
| partof        = 
| image         = 
| image_size    = 
| image_upright = 
| alt           = 
| caption       = 
| map           = 
| map_size      = 
| map_alt       = 
| map_caption   = 
| mapframe = yes<!-- see below for more parameters -->
| ___location      = 
| target        = 
| coordinates   = 
| date          = <!-- {{start date|YYYY|MM|DD}}-<br />{{end date|YYYY|MM|DD}} -->
| time          = 
| timezone      = 
| type          = 
| fatalities    = 
| injuries      = 
| victims       = <!-- or | victim = -->
| perpetrators  = <!-- or | perpetrator = --> <!-- alias: | perps = or | perp = -->
| assailants    = <!-- or | assailant = -->
| weapons       = 
| numparts      = <!-- or | numpart = -->
| dfens         = <!-- or | dfen = -->
| motive        = 
| inquiry       = 
| coroner       = 
| accused       = 
| convicted     = 
| verdict       = 
| convictions   = 
| charges       = 
| litigation    = 
| judge         = 
| website       = <!-- {{URL|example.com}} -->
| module        =
| notes         =
}}

Example

edit
{{Infobox civilian attack
| title = 1993 World Trade Center bombing
| image = WTC 1993 ATF Commons.jpg
| caption = Underground damage after the bombing
| ___location = [[World Trade Center (1973–2001)|World Trade Center]], New York City, United States
| coordinates = {{coord|40.711452|N|74.011919|W|region:US-NY_type:event|display=title,inline}}
| target = [[World Trade Center (1973–2001)|World Trade Center]]
| date = February 26, 1993
| time = 12:17:37 p.m.
| timezone = [[UTC−05:00]]
| type = [[Car bomb|Truck bombing]], [[mass murder]]
| fatalities = 6
| injuries = 1,042
| perp = [[al-Qaeda]]
| assailants = [[Ramzi Yousef]], [[Eyad Ismoil]], and co-conspirators
| motive = [[Islamic fundamentalism]], [[American foreign policy]], [[Israel–United States military relations#Military aid and procurement|U.S. support for Israel]]
}}

For all fields, no wikilinks are automatically incorporated into the infobox. Therefore, if you want anything to be linked to something else, they must be added when including the template.

Required fields

edit
  • title – A title for the attack; most likely this will match the article title, but you can change it to something slightly different if the title is a little over-descriptive
  • ___location – The physical place, perhaps a specific airplane or building (multiple targets are allowed, of course), including the city, where the attack occurred; including the country is preferred for cities; including the province or state is discouraged unless necessary or well-known:
Will be fetched from Wikidata (___location (P276), if available) if not locally set
  • date – The date of the attack; use {{start date}} to allow for users' date preferences to go into effect and include the date in the hCalendar microformat (see below; use {{end date}} for multi-day events). Will be fetched from Wikidata (point in time (P585), if available) if not locally set

Optional fields

edit
  • native_name – the native name of the event, if different
  • native_name_langISO 639-1 code for the native name e.g. 'fr' for French. For an event with more than one native name, use {{lang|XX|...}} for each name with {{plainlist}} or {{unbulleted list}} separating the names.
  • partof – a violent campaign containing the civilian attack event described in the article.
  • image – An image associated with the event; do not precede the image name with Image: or File:. Will be fetched from Wikidata (image (P18), if available) if not locally set
  • image_size – Size of main image in pixels (Do not include "px"). Default 250. Example format — image_size = 150. For most cases, image_upright should be used instead, per WP:IMGSIZE.
  • image_upright – Scales the image thumbnail from its default size by the given factor. Values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%).
  • alt – Alt text for the image, for visually impaired readers. See WP:ALT. This should be specified if image is specified.
  • caption – A caption for the image. Will be fetched from Wikidata (media legend (P2096), if available) if not locally set
  • map – A {{___location map}} or map image
  • map_caption – A caption for the map
  • mapframe – An {{infobox mapframe}}, see #Mapframe maps for more information
  • target – The target and/or purpose of the attack
  • coordinates – geographical coordinates. Use {{coord}} with |display=inline,title. Will be fetched from Wikidata (coordinate ___location (P625), if available) if not locally set
  • time – The time of the attack, or of multiple attacks if they all occurred at the same time (do not use this along with time-begin and time-end)
  • time-begin and time-end – The start and end times, respectively, if a series of attacks (do not use this along with time)
  • timezone – The timezone of the ___location of the attack(s); UTC+X, UTC−X, or UTC (i.e. offset from UTC) preferred
  • type – The type of attack (e.g. suicide bombing, mass shooting, etc.)
  • weapons – Weapons used in attacks (this field should not be over-used)
  • fatalities – Number of people killed during attack(s); optionally, you can split this into different types of people (e.g. 121 passengers, 21 crew or 3 soldiers, 1 civilian)
  • injuries – Number of people injured (excludes those killed) during attack(s)
  • victims – i.e. hostages, etc. (use victim in case of a single person)
  • perpetrators – The groups that bring about or carries out a harmful, illegal, or immoral act (use perpetrator in case of a single group). Aliases: perp and perps. (Per WP:BLPCRIME, accused should usually be used if there is no conviction)
  • assailants – Those responsible for physically attacking others. (use assailant in case of a single person)
  • numparts – Number of participants in the attack on the part of the perps (use numpart in case of a single person)
  • dfens – Those who defended or repelled the attack, or were responsible for the immediate aftermath (use defen in case of a single person)
  • motive – The motive, the reason why the attack was carried out
  • website – Official websites (e.g. inquests/ inquiries) only. Use {{URL}}
  • module – See Embedding other templates
  • inquiry - May be an inquest or other official inquiry
  • coroner - The coroner appointed to determine the official causes of death
  • accused – Number of perpetrators charged. Do not list names of people, per WP:BLPCRIME.
  • convicted – Number of perpetrators convicted
  • verdict – Guilty, not guilty, or similar
  • convictions – Crimes perpetrators were convicted of
  • charges – Charges that were filed
  • litigation – Civil action that resulted from the attack, if any
  • judge

Mapframe maps

edit
  • Basic 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 |map= is set
    • 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, the subsequent 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-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g. |coord={{Coord|12.34|N|56.78|E}}. Default: coordinates from Wikidata
    • mapframe-wikidata – Set to yes to show shape/line features from the wikidata item, if any, when |coord= is set. Default: not specified
  • 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 to on. Default: not specified
    • mapframe-shape – Turn off display of shape feature by setting to none. Force display of shape by setting to on. Use an inverse shape (geomask) instead of a regular shape by setting to inverse. Default: not specified
    • mapframe-line – Turn off display of line feature by setting to none. Force display of line by setting to on. 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. P17 for country (P17), P131 for located in the administrative territorial entity (P131)). Default: not specified
    • mapframe-switcher – set to auto or geomasks or zooms to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
      • 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.
      • geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter
      • 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
  • Other optional parameters:
    • mapframe-frame-width or mapframe-width – Frame width. Default: 250
    • 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.5
    • mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
    • mapframe-stroke-width – Width of line features, and outlines of shape features; default is "5". 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 blank to override any default marker symbol
    • 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: 2
    • 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.5
    • 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
    • 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


Coordinates

edit

For coordinates, use {{coord}} with display=inline,title. Please do not be overly precise.

Embedding other templates

edit

The module= parameter can be used for embedding other templates into this infobox (see Wikipedia:Infobox modules):

{{Infobox civilian attack
| name = 
...
| module = {{Infobox ABC
 | embed = yes <!-- or 'child=yes' or 'subbox=yes' -->
 ...
 }}
}}

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox civilian attack in articles based on its TemplateData.

TemplateData for Infobox civilian attack

Infobox for an attack on civilians

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

The title of the attack. Most likely the same as article title, but can be different if necessary.

Lineoptional
Location___location

The physical place, perhaps a specific aircraft or building (multiple targets are allowed, of course), including the city, where the attack occurred; including the country is preferred for cities; including the province or state is discouraged unless necessary or well-known.

Stringrequired
Datedate

The date of the attack; use {{start date}} to allow for users' date preferences to go into effect and include the date in the hCalendar microformat (see below; use {{end date}} for multi-day events). Will be fetched from Wikidata (point in time (P585), if available) if not locally set.

Linerequired
Part ofpartof

A violent campaign containing the civilian attack event described in the article

Stringoptional
Imageimage

An image associated with the event; do not precede the image name with Image: or File:. Will be fetched from Wikidata (image (P18), if available) if not locally set.

Fileoptional
Image sizeimage_size

Size of main image in pixels (do not include \"px\"). For most cases, image_upright should be used instead, per WP:IMGSIZE.

Default
250
Example
150
Numberoptional
Image uprightimage_upright

Scales the image thumbnail from its default size by the given factor. Values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%).

Numberoptional
Altalt

Alt text for the image, for visually impaired readers. See WP:ALT. This should be specified if image is specified.

Stringoptional
Captioncaption

A caption for the image. Will be fetched from Wikidata (media legend (P2096), if available) if not locally set.

Stringoptional
Mapmap

A {{___location map}} or map image

Stringoptional
Map sizemap_size

Size of map in pixels (do not include \"px\"). For most cases, map_upright should be used instead, per WP:IMGSIZE.

Default
250
Example
150
Auto value
Numberoptional
Map uprightmap_upright

Scales the map thumbnail from its default size by the given factor. Values less than 1 scale the map down (0.9 = 90%) and values greater than 1 scale the map up (1.15 = 115%).

Numberoptional
Map altmap_alt

Alt text for the map, for visually impaired readers. See WP:ALT. This should be specified if map is specified.

Stringoptional
Map captionmap_caption

A caption for the map

Stringoptional
Subheadersubheader

Additional title field that fits below {{{title}}} but before images

Stringoptional
Native namenative_name

The native name of the event, if different

Stringoptional
Native name languagenative_name_lang

ISO 639-2 code for the native name, e.g. 'fr' for French. For an event with more than one native name, use {{lang|XX|...}} for each name, with {{plainlist}} or {{unbulleted list}} separating the names.

Stringoptional
Suppress fieldssuppressfields

Suppress fields

Stringoptional
Fetch wiki datafetchwikidata

Fetch wiki data

Stringoptional
Only sourcedonlysourced

Only sourced

Stringoptional
Coordinatescoordinates

Geographical coordinates. Use {{coord}} with |display=inline,title. Will be fetched from Wikidata (coordinate ___location (P625), if available) if not locally set.

Stringoptional
Timetime

The time of the attack or multiple attacks if they all occurred at the same time (do not use this along with time-begin and time-end).

Stringoptional
Time begintime-begin

The start time, if a series of attacks (do not use this along with time).

Stringoptional
Time endtime-end

The end time, if a series of attacks (do not use this along with time).

Stringoptional
Timezonetimezone

The timezone of the ___location of the attack(s); UTC+X, UTC−X or UTC (i.e., offset from UTC) preferred.

Stringoptional
Targettarget

The target and/or purpose of the attack

Stringoptional
Type of attacktype

The type of attack (e.g., suicide bombing, mass shooting, etc.)

Stringoptional
Weaponweapon

Weapon used in the attack(s) if singular (this field should not be overused). Use \"weapons\" for multiple.

Stringoptional
Weaponsweapons

Weapons used in the attack(s) if multiple (this field should not be overused). Use \"weapon\" for singular.

Stringoptional
Fatalitiesfatalities

Number of people killed during the attack(s); optionally, you can split this into different types of people (e.g., 121 passengers, 21 crew or 3 soldiers, 1 civilian)

Stringoptional
Injuriesinjuries

Number of people injured (excludes those killed) during the attack(s)

Stringoptional
Victimsvictims

I.e. hostages, etc. (use victim in case of a single person)

Stringoptional
Victimvictim

I.e. hostage, etc. (use victims in case of multiple people)

Stringoptional
Perpetratorsperpetrators perps

The persons or groups that brought about the attack (use perpetrator in case of a single person or group).

Stringoptional
Perpetratorperpetrator perp

The person or a single group that brought about the attack (use perpetrators in case of multiple people or groups).

Stringoptional
Assailantsassailants

Those responsible for physically attacking others (use assailant in case of a single person).

Stringoptional
Assailantassailant

The person responsible for physically attacking others (use assailants in case of multiple people).

Stringoptional
Number of participantsnumparts

Number of participants in the attack on the part of the perps (use numpart in case of a single person).

Stringoptional
Number of participants (singular)numpart

Number of participants in the attack on the part of the perps (use numparts in case of multiple people).

Stringoptional
Defendersdfens

Those who defended or repelled the attack or were responsible for the immediate aftermath (use defen in case of a single person).

Stringoptional
Defenderdfen

Someone who defended or repelled the attack or was responsible for the immediate aftermath (use dfens in case of multiple people)

Stringoptional
Motivemotive

The motive; the reason why the attack was carried out

Stringoptional
Inquiriesinquiries

May be an inquest or other official inquiry (use \"inquiry\" for singular inquiry)

Stringoptional
Inquiryinquiry

May be an inquest or other official inquiry (use \"inquiries\" for multiple inquiries)

Stringoptional
Coronerscoroners

Where coronial, the coroners appointed (use \"coroner\" for a singular person)

Stringoptional
Coronerscoroner

Where coronial, the coroner appointed (use \"coroners\" for multiple people)

Stringoptional
Accusedaccused

Number of perpetrators charged.

Stringoptional
Convictedconvicted

Number of perpetrators convicted

Stringoptional
Verdictverdict

Guilty, not guilty, or similar

Stringoptional
Convictionsconvictions

Crimes perpetrators were convicted of

Stringoptional
Chargescharges

Charges that were filed

Stringoptional
Litigationlitigation

Civil action that resulted from the attack, if any

Stringoptional
Judgejudge

Judge presiding over the trial

Stringoptional
Websitewebsite

Official websites (e.g. inquests/ inquiries, trials, commemoration or memorials) only.

URLoptional
Modulemodule

Used for embedding other templates into this infobox

Unknownoptional
Notesnotes

Additional notes on the attack

Stringoptional
Show mapframe mapmapframe

Specify yes or no to show or hide the map, overriding the default

Default
no
Example
yes
Stringsuggested
Mapframe captionmapframe-caption

Caption for the map. If mapframe-geomask is set, then the default is "Location in <<geomask's label>>"

Stringoptional
Custom mapframemapframe-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.

Templateoptional
Mapframe Wikidata itemmapframe-id id qid

Id (Q-number) of Wikidata item to use.

Default
(item for current page)
Stringoptional
Mapframe coordinates mapframe-coordinates mapframe-coord coordinates coord

Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.

Default
(coordinates from Wikidata)
Example
{{Coord|12.34|N|56.78|E}}
Templateoptional
Mapframe shapes from Wikidatamapframe-wikidata

et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter

Example
yes
Stringoptional
Mapframe point featuremapframe-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"

Stringoptional
Mapframe shape featuremapframe-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"

Stringoptional
Mapframe widthmapframe-frame-width mapframe-width

Frame width in pixels

Default
270
Numberoptional
Mapframe heightmapframe-frame-height mapframe-height

Frame height in pixels

Default
200
Numberoptional
Mapframe shape fillmapframe-shape-fill

Color used to fill shape features

Default
#606060
Stringoptional
Mapframe shape fill opacitymapframe-shape-fill-opacity

Opacity level of shape fill, a number between 0 and 1

Default
0.5
Numberoptional
Mapframe stroke colormapframe-stroke-color mapframe-stroke-colour

Color of line features, and outlines of shape features

Default
#ff0000
Stringoptional
Mapframe stroke widthmapframe-stroke-width

Width of line features, and outlines of shape features

Default
5
Numberoptional
Mapframe markermapframe-marker

Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options

Example
museum
Stringoptional
Mapframe marker colormapframe-marker-color mapframe-marker-colour

Background color for the marker

Default
#5E74F3
Stringoptional
Mapframe geomaskmapframe-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)

Example
Q100
Page nameoptional
Mapframe geomask stroke colormapframe-geomask-stroke-color mapframe-geomask-stroke-colour

Color of outline of geomask shape

Default
#555555
Stringoptional
Mapframe geomask stroke widthmapframe-geomask-stroke-width

Width of outline of geomask shape

Default
2
Numberoptional
Mapframe geomask fillmapframe-geomask-fill

Color used to fill outside geomask features

Default
#606060
Stringoptional
Mapframe geomask fill opacitymapframe-geomask-fill-opacity

Opacity level of fill outside geomask features, a number between 0 and 1

Default
0.5
Numberoptional
Mapframe zoommapframe-zoom

Set the zoom level, from "1" to "18", to used if the zoom level cannot be determined automatically from object length or area

Default
10
Example
12
Numberoptional
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

Numberoptional
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

Numberoptional
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

Numberoptional
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

Numberoptional
Mapframe frame coordinatesmapframe-frame-coordinates mapframe-frame-coord

Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}

Example
{{Coord|12.35|N|56.71|E}}
Templateoptional
Mapframe switchermapframe-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.

Stringoptional
mapframe-linemapframe-line

no description

Unknownoptional
Mapframe typemapframe-type

Type of the object rendered in the mapframe, like with {{coord}}.

Stringoptional

Microformats

edit

The HTML markup produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. Within the hCalendar is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Dates will only be included if you use {{Start date}} or {{End date}} (use the former for single dates, but do not use any of these if the date is before 1583 CE). {{End date}} requires that a time be specified, but display of this time may be suppressed by adding |nodate=yes to the end.

To include a URL, use {{URL}}.

hCalendar uses HTML classes including:

  • attendee
  • dtend
  • dtstart
  • ___location
  • summary
  • url
  • vevent

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.
Also, when giving coordinates, please don't be overly precise.


Tracking category

edit

See also

edit