The timeline syntax is available on Mediawiki.
For an example of the <timeline>...</timeline>
syntax in use, see Template:Timeline geological timescale.
The script commands 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.