Jump to content

Wikipedia:Timeline syntax

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by AlanM1 (talk | contribs) at 18:07, 3 February 2020 (See also: Remove defunct external tool). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The timeline syntax is available on Mediawiki.

For an example of the <timeline></timeline> syntax in use, see Template:Timeline geological timescale.

Available commands

The script commands define:

  • Overall layout: ImageSize, PlotArea, Colors, BackgroundColors, AlignBars
  • Interpretation and presentation of dates and periods: DateFormat, Period, ScaleMajor, ScaleMinor, TimeAxis
  • Events, periods and descriptive texts: PlotData, TextData
  • How to order, divide, and name groups of events and periods: BarData, Legend, LineData
  • Shorthands for pieces of script code that occur multiple times: Define

The following commands are mandatory: ImageSize, PlotArea, Period and TimeAxis. At least one of the following commands is required: PlotData and/or TextData. Either or both can occur multiple times. All other commands are optional.

See also