Jump to content

Template:Railway accidents and incidents/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This template is the parent template of the Railway accidents and incidents in xxxx templates, and should not be transcluded directly into articles; its child templates should.

A child template for a given year, for example {{Railway accidents and incidents in 2010}}, has the following structure:

{{Template:Railway accidents and incidents
| year = 2010
| listwidth = 25em
| list =
}}

The list parameter should be populated with a bullet list of relevant entries using vertically-aligned dates thus:

list =
* {{vad|align=left|Jan  3}}   [[Bilecik train collision|Bilecik train collision, Turkey]]
* {{vad|align=left|Feb 15}}   [[Halle train collision|Halle train collision, Belgium]]

Only events with their own article about it (i.e. not list articles) are eligible for inclusion in this template.

The listwidth parameter, normally set to 25em, can be increased to accommodate particularly long entries that would otherwise overlap with adjacent text, assuming it is not appropriate to shorten the entry in the first place. Bear in mind that when an entry is rendered in boldface (which happens on the entry's own page), it will take up more space than normal.

In the child template, custom previous and next years or time periods (instead of the default years displayed at the bottom of the box next to the navigation arrows, which are based on the year parameter) can be specified by setting the parameters custom_prev_year and custom_next_year. For example:

custom_prev_year = 1800s
custom_next_year = 1900s

Microformat

[edit]

The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.

Classes used

The HTML classes of this microformat include:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent
Please do not rename or remove these classes
nor collapse nested elements which use them.

Tracking category

[edit]