Template:Infobox rail accident/doc

From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
This is a documentation subpage for Template:Infobox rail accident.
It contains usage information, categories and other content that is not part of the original template page.

This template renders a compact infobox for railway accidents and incidents (collisions, derailments, level-crossing crashes). It is dependency-light (no Lua, no TemplateStyles) and suppresses empty rows automatically.

Usage

Place this at the top of the article:

{{Infobox rail accident
| title        = 
| image        = 
| image_alt    = 
| image_caption= 
| date         = 
| time         = 
| timezone     = 
| location     = 
| country      = 
| coordinates  = {{coord|…|…|display=inline}}
| line         = 
| operator     = 
| type         = 
| trains       = 
| vehicles     = 
| cause        = 
| summary      = 
| deaths       = 
| injuries     = 
| missing      = 
| damage       = 
| participants = 
| notes        = 
}}

Parameters

title
Custom title. Defaults to the page name if omitted.
image
File name only, for example Example.jpg (no File: prefix needed inside the template call).
image_alt
Concise alt text for accessibility.
image_caption
Short caption displayed under the image.
date
Event date, for example 5 July 2025.
time
Local time, for example 09:00.
timezone
Time zone, for example CAT (UTC+2).
location
Crossing/site plus district and province.
country
Country name (e.g., Zambia).
coordinates
Use {{coord}} with display=inline.
line
Railway line (e.g., Tanzania–Zambia Railway).
operator
Operating authority (e.g., TAZARA).
type
Incident type (e.g., Level-crossing collision, Derailment).
trains
Number/description of trains involved.
vehicles
Road vehicles involved, if any (e.g., 1 (Toyota Noah)).
cause
Proximate cause when reliably reported.
summary
One-line summary if needed.
deaths / fatalities
Number of deaths (either field works).
injuries / injured
Number of injuries (either field works).
missing
Number missing, if applicable.
damage
Rolling stock or infrastructure damage; estimate if known.
participants
Free text, e.g., “TAZARA train; Toyota Noah (13 occupants)”.
notes
Any brief extra notes.

Notes

  • This template’s internal code uses {{!}} to safely emit pipe characters inside parser functions. On this wiki, ensure {{!}} exists with the content |.
  • Empty parameters produce no rows.
  • If you don’t need rail-specific fields, {{Infobox event}} is a simpler alternative.

Example

{{Infobox rail accident
| title        = Mpika minivan–train crash
| date         = 5 July 2025
| time         = ~09:00
| timezone     = CAT (UTC+2)
| location     = Kasenga Rail Crossing, Mpika District, Muchinga Province
| country      = Zambia
| coordinates  = {{coord|−11.834|31.452|display=inline}}
| line         = Tanzania–Zambia Railway (TAZARA)
| operator     = Tanzania–Zambia Railway Authority (TAZARA)
| type         = Level-crossing collision
| trains       = 1
| vehicles     = 1 (Toyota Noah minivan; 13 occupants)
| cause        = Minivan failed to stop at crossing (reported)
| deaths       = 9
| injuries     = 5
| participants = TAZARA train; Toyota Noah minivan
}}

TemplateData

Infobox for railway accidents/incidents (collisions, derailments, level-crossing crashes). Dependency-light and suppresses empty rows.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Custom infobox title (defaults to page name).

Stringoptional
Imageimage

File name only, e.g., Example.jpg

Stringoptional
Image altimage_alt

Alt text for accessibility.

Stringoptional
Image captionimage_caption

Caption under the image.

Stringoptional
Datedate

Event date, e.g., 5 July 2025.

Stringoptional
Timetime

Local time, e.g., 09:00.

Stringoptional
Time zonetimezone

Time zone label, e.g., CAT (UTC+2).

Stringoptional
Locationlocation

Crossing/site and district/province.

Stringoptional
Countrycountry

Country name.

Stringoptional
Coordinatescoordinates

Use {{coord|...|display=inline}}.

Stringoptional
Lineline

Railway line.

Stringoptional
Operatoroperator

Operating authority/company.

Stringoptional
Incident typetype

e.g., Level-crossing collision, Derailment.

Stringoptional
Trainstrains

Number/description of trains involved.

Stringoptional
Road vehiclesvehicles

Road vehicles involved.

Stringoptional
Causecause

Proximate cause when reliably reported.

Stringoptional
Summarysummary

One-line description.

Stringoptional
Deathsdeaths fatalities

Number of deaths.

Numberoptional
Injuriesinjuries injured

Number of injuries.

Numberoptional
Missingmissing

Number missing, if applicable.

Numberoptional
Damagedamage

Equipment/infrastructure damage or estimate.

Stringoptional
Participantsparticipants

Actors involved (free text).

Stringoptional
Notesnotes

Any brief extra notes.

Stringoptional


Category:Infobox templates