Template:Graphical timeline/doc#Development

{{Documentation subpage}}

{{nutshell|

  • This template constructs a vertically arranged timeline. The editor defines 2D rectangles (bars) and optional annotations (notes).
  • The header is customizable. A scale appears on the left, and annotations appear on the right. An optional legend appears at the foot.
  • Has built-in compatibility for geological divisions.
  • Use {{tl|Include timeline}} in the main article for assisted generation.
  • Type {{Graphical timeline|help=on}} into a page, then press preview for a ready-to-go template.}}

{{Lua|Module:Graphical timeline}}

The easy way

Type {{tlx|include timeline}} in your article, press preview, and follow the link generated. You'll be presented with a ready-to-go template; once this is finished, return to your article, and { {include timeline} } will display your timeline.

Development

As of May 2021, the template has been converted to Lua and is now implemented at Module:Graphical timeline. New features include:

  • Unlimited numbered parameters --- use note435, note34234532, whatever is convenient
  • HTML size, memory, and run-time are all proportional to the number of items, not the number of potential items
  • Incorrect HTML and fragile CSS now cleaned up
  • Annotation text now automatically aligned with arrows ({{para|disable-arrow-align|true}} to turn off)
  • Box text now automatically centered ({{para|disable-box-align|true}} to turn off)

Template function

This template provides an intuitive, user-friendly and flexible way to insert timelines into articles. It's designed to require the minimum number of variables, and to generate an HTML table.

Why use this template?

The alternative to this template is m:EasyTimeline, using the